Sebastian Andrzej Siewior | 1 Apr 2010 09:05

Re: [PATCH 3/7] powerpc32: pull in libfdt

* Simon Horman | 2010-04-01 09:58:19 [+1100]:

>Hi,
Hi,

>I'm seeing some signed vs unsigned comparison warnings in this code.
>Here is a stab that I took at fixing them. Do they seem reasonable to you?
All but fdt_create() and fdt_strerror() look fine on the first look. The
two mentioned don't have the .c file updated. fdt_strerror() should
remain unsigned as the error code is negative.

>If so, we could either merge them into your patch or just apply them
>as another patch.
I would prefer leaving it as it. It is an external library and the time
we update it, we lose this changes. If you are going to compile this
with -Werror could you add -Wno-sign-compare for the libfdt part? If not
please apply it as a separate patch and I try to forward it upstream if
you don't.

Sebastian
Simon Horman | 6 Apr 2010 08:12
Picon
Gravatar

Re: [PATCH 3/7] powerpc32: pull in libfdt

On Thu, Apr 01, 2010 at 09:05:59AM +0200, Sebastian Andrzej Siewior wrote:
> * Simon Horman | 2010-04-01 09:58:19 [+1100]:
> 
> >Hi,
> Hi,
> 
> >I'm seeing some signed vs unsigned comparison warnings in this code.
> >Here is a stab that I took at fixing them. Do they seem reasonable to you?
> All but fdt_create() and fdt_strerror() look fine on the first look. The
> two mentioned don't have the .c file updated. fdt_strerror() should
> remain unsigned as the error code is negative.
> 
> >If so, we could either merge them into your patch or just apply them
> >as another patch.
> I would prefer leaving it as it. It is an external library and the time
> we update it, we lose this changes. If you are going to compile this
> with -Werror could you add -Wno-sign-compare for the libfdt part? If not
> please apply it as a separate patch and I try to forward it upstream if
> you don't.

Ok, how about we a) merge your changes as is and b) try and get a patch
upstream that we add to kexec-tools later. I understand your reasoning
behind not wanting to diverge from libfdt-upstream, but at the same
time, I'd like to get this fixed if possible.
Sebastian Andrzej Siewior | 6 Apr 2010 09:51

Re: [PATCH 3/7] powerpc32: pull in libfdt

* Simon Horman | 2010-04-06 16:12:52 [+1000]:

>Ok, how about we a) merge your changes as is and b) try and get a patch
>upstream that we add to kexec-tools later. I understand your reasoning
>behind not wanting to diverge from libfdt-upstream, but at the same
>time, I'd like to get this fixed if possible.
Yeah, this sounds good to me. One of your fixes has allready been
applied [0]. There is no newer version of libfdt taged at this time.
Current HEAD of it produces a .so file. Is it okay with you if pull the
lib in and switch to a library once there is a official one?

[0] http://git.jdl.com/gitweb/?p=dtc.git;a=commit;h=b236893fc4bc173877adfa4270b14d7d7209fb10

Sebastian
Simon Horman | 6 Apr 2010 10:41
Picon
Gravatar

Re: [PATCH 3/7] powerpc32: pull in libfdt

On Tue, Apr 06, 2010 at 09:51:08AM +0200, Sebastian Andrzej Siewior wrote:
> * Simon Horman | 2010-04-06 16:12:52 [+1000]:
> 
> >Ok, how about we a) merge your changes as is and b) try and get a patch
> >upstream that we add to kexec-tools later. I understand your reasoning
> >behind not wanting to diverge from libfdt-upstream, but at the same
> >time, I'd like to get this fixed if possible.
> Yeah, this sounds good to me. One of your fixes has allready been
> applied [0]. There is no newer version of libfdt taged at this time.
> Current HEAD of it produces a .so file. Is it okay with you if pull the
> lib in and switch to a library once there is a official one?

Yes, I think that is fine. Do you want me to just take the changes that you
posted last week?
Sebastian Andrzej Siewior | 6 Apr 2010 11:47

Re: [PATCH 3/7] powerpc32: pull in libfdt

* Simon Horman | 2010-04-06 18:41:34 [+1000]:

>Do you want me to just take the changes that you
>posted last week?

Please do it.

Sebastian
Simon Horman | 7 Apr 2010 01:40
Picon
Gravatar

Re: [PATCH 3/7] powerpc32: pull in libfdt

On Tue, Apr 06, 2010 at 11:47:59AM +0200, Sebastian Andrzej Siewior wrote:
> * Simon Horman | 2010-04-06 18:41:34 [+1000]:
> 
> >Do you want me to just take the changes that you
> >posted last week?
> 
> Please do it.

Done :-)
Sebastian Andrzej Siewior | 21 Apr 2010 16:13

Re: [PATCH 3/7] powerpc32: pull in libfdt

* Simon Horman | 2010-04-07 09:40:44 [+1000]:

>Done :-)

I kinda forgot: What is the status on fixing the signed/unsigned things
in here?
Am I looking after it or did you want to push some patches first?

Sebastian
Simon Horman | 22 May 2010 01:20
Picon
Gravatar

Re: [PATCH 3/7] powerpc32: pull in libfdt

On Wed, Apr 21, 2010 at 04:13:58PM +0200, Sebastian Andrzej Siewior wrote:
> * Simon Horman | 2010-04-07 09:40:44 [+1000]:
> 
> >Done :-)
> 
> I kinda forgot: What is the status on fixing the signed/unsigned things
> in here?
> Am I looking after it or did you want to push some patches first?

I was hoping you would forward either my patch of a variant upstream.
I'm happy to send it directly if you think that would be better.

Gmane