* [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
@ 2019-06-17 16:21 Masahiro Yamada
2019-08-01 2:30 ` Masahiro Yamada
0 siblings, 1 reply; 9+ messages in thread
From: Masahiro Yamada @ 2019-06-17 16:21 UTC (permalink / raw)
To: Rob Herring, Frank Rowand, devicetree
Cc: Masahiro Yamada, linux-kernel, Rob Herring
Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX.
<linux/kernel.h> pulls in a lots of broat.
Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN
macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with
<linux/limits.h>.
This saves including dozens of headers.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
include/linux/libfdt_env.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
index edb0f0c30904..2231eb855e8f 100644
--- a/include/linux/libfdt_env.h
+++ b/include/linux/libfdt_env.h
@@ -2,7 +2,7 @@
#ifndef LIBFDT_ENV_H
#define LIBFDT_ENV_H
-#include <linux/kernel.h> /* For INT_MAX */
+#include <linux/limits.h> /* For INT_MAX */
#include <linux/string.h>
#include <asm/byteorder.h>
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-06-17 16:21 [PATCH] libfdt: reduce the number of headers included from libfdt_env.h Masahiro Yamada
@ 2019-08-01 2:30 ` Masahiro Yamada
2019-08-19 4:36 ` Masahiro Yamada
0 siblings, 1 reply; 9+ messages in thread
From: Masahiro Yamada @ 2019-08-01 2:30 UTC (permalink / raw)
To: Rob Herring, Frank Rowand, DTML; +Cc: Linux Kernel Mailing List, Rob Herring
On Tue, Jun 18, 2019 at 1:21 AM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>
> Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX.
>
> <linux/kernel.h> pulls in a lots of broat.
>
> Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN
> macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with
> <linux/limits.h>.
>
> This saves including dozens of headers.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
ping?
> include/linux/libfdt_env.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
> index edb0f0c30904..2231eb855e8f 100644
> --- a/include/linux/libfdt_env.h
> +++ b/include/linux/libfdt_env.h
> @@ -2,7 +2,7 @@
> #ifndef LIBFDT_ENV_H
> #define LIBFDT_ENV_H
>
> -#include <linux/kernel.h> /* For INT_MAX */
> +#include <linux/limits.h> /* For INT_MAX */
> #include <linux/string.h>
>
> #include <asm/byteorder.h>
> --
> 2.17.1
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-08-01 2:30 ` Masahiro Yamada
@ 2019-08-19 4:36 ` Masahiro Yamada
2019-10-16 11:01 ` Masahiro Yamada
0 siblings, 1 reply; 9+ messages in thread
From: Masahiro Yamada @ 2019-08-19 4:36 UTC (permalink / raw)
To: Rob Herring, Frank Rowand, DTML; +Cc: Linux Kernel Mailing List, Rob Herring
On Thu, Aug 1, 2019 at 11:30 AM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>
> On Tue, Jun 18, 2019 at 1:21 AM Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
> >
> > Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX.
> >
> > <linux/kernel.h> pulls in a lots of broat.
> >
> > Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN
> > macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with
> > <linux/limits.h>.
> >
> > This saves including dozens of headers.
> >
> > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> > ---
>
> ping?
ping x2.
>
>
> > include/linux/libfdt_env.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
> > index edb0f0c30904..2231eb855e8f 100644
> > --- a/include/linux/libfdt_env.h
> > +++ b/include/linux/libfdt_env.h
> > @@ -2,7 +2,7 @@
> > #ifndef LIBFDT_ENV_H
> > #define LIBFDT_ENV_H
> >
> > -#include <linux/kernel.h> /* For INT_MAX */
> > +#include <linux/limits.h> /* For INT_MAX */
> > #include <linux/string.h>
> >
> > #include <asm/byteorder.h>
> > --
> > 2.17.1
> >
>
>
> --
> Best Regards
> Masahiro Yamada
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-08-19 4:36 ` Masahiro Yamada
@ 2019-10-16 11:01 ` Masahiro Yamada
2019-10-17 16:34 ` Rob Herring
2019-10-17 17:23 ` Frank Rowand
0 siblings, 2 replies; 9+ messages in thread
From: Masahiro Yamada @ 2019-10-16 11:01 UTC (permalink / raw)
To: Andrew Morton
Cc: Linux Kernel Mailing List, Rob Herring, Rob Herring, Frank Rowand, DTML
Hi Andrew,
Could you pick up this to akpm tree?
https://lore.kernel.org/patchwork/patch/1089856/
I believe this is correct, and a good clean-up.
I pinged the DT maintainers, but they did not respond.
Thanks.
On Mon, Aug 19, 2019 at 1:36 PM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>
> On Thu, Aug 1, 2019 at 11:30 AM Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
> >
> > On Tue, Jun 18, 2019 at 1:21 AM Masahiro Yamada
> > <yamada.masahiro@socionext.com> wrote:
> > >
> > > Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX.
> > >
> > > <linux/kernel.h> pulls in a lots of broat.
> > >
> > > Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN
> > > macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with
> > > <linux/limits.h>.
> > >
> > > This saves including dozens of headers.
> > >
> > > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> > > ---
> >
> > ping?
>
> ping x2.
>
>
>
>
> >
> >
> > > include/linux/libfdt_env.h | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
> > > index edb0f0c30904..2231eb855e8f 100644
> > > --- a/include/linux/libfdt_env.h
> > > +++ b/include/linux/libfdt_env.h
> > > @@ -2,7 +2,7 @@
> > > #ifndef LIBFDT_ENV_H
> > > #define LIBFDT_ENV_H
> > >
> > > -#include <linux/kernel.h> /* For INT_MAX */
> > > +#include <linux/limits.h> /* For INT_MAX */
> > > #include <linux/string.h>
> > >
> > > #include <asm/byteorder.h>
> > > --
> > > 2.17.1
> > >
> >
> >
> > --
> > Best Regards
> > Masahiro Yamada
>
>
>
> --
> Best Regards
> Masahiro Yamada
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-10-16 11:01 ` Masahiro Yamada
@ 2019-10-17 16:34 ` Rob Herring
2019-10-17 17:25 ` Frank Rowand
2019-10-17 17:23 ` Frank Rowand
1 sibling, 1 reply; 9+ messages in thread
From: Rob Herring @ 2019-10-17 16:34 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Andrew Morton, Linux Kernel Mailing List, Frank Rowand, DTML
On Wed, Oct 16, 2019 at 08:01:46PM +0900, Masahiro Yamada wrote:
> Hi Andrew,
>
> Could you pick up this to akpm tree?
> https://lore.kernel.org/patchwork/patch/1089856/
>
> I believe this is correct, and a good clean-up.
>
> I pinged the DT maintainers, but they did not respond.
Sorry I missed this. Things outside my normal paths fall thru the
cracks.
I'll apply it now.
Rob
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-10-17 16:34 ` Rob Herring
@ 2019-10-17 17:25 ` Frank Rowand
2019-10-17 17:52 ` Rob Herring
0 siblings, 1 reply; 9+ messages in thread
From: Frank Rowand @ 2019-10-17 17:25 UTC (permalink / raw)
To: Rob Herring, Masahiro Yamada
Cc: Andrew Morton, Linux Kernel Mailing List, DTML
On 10/17/2019 11:34, Rob Herring wrote:
> On Wed, Oct 16, 2019 at 08:01:46PM +0900, Masahiro Yamada wrote:
>> Hi Andrew,
>>
>> Could you pick up this to akpm tree?
>> https://lore.kernel.org/patchwork/patch/1089856/
>>
>> I believe this is correct, and a good clean-up.
>>
>> I pinged the DT maintainers, but they did not respond.
>
> Sorry I missed this. Things outside my normal paths fall thru the
> cracks.
>
> I'll apply it now.
>
> Rob
>
Looks like my reply crossed with Rob's. Rob, shouldn't
scripts/dtc/update-dtc-source.sh make this change?
-Frank
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-10-17 17:25 ` Frank Rowand
@ 2019-10-17 17:52 ` Rob Herring
2019-10-17 18:46 ` Frank Rowand
0 siblings, 1 reply; 9+ messages in thread
From: Rob Herring @ 2019-10-17 17:52 UTC (permalink / raw)
To: Frank Rowand
Cc: Masahiro Yamada, Andrew Morton, Linux Kernel Mailing List, DTML
On Thu, Oct 17, 2019 at 12:25 PM Frank Rowand <frowand.list@gmail.com> wrote:
>
> On 10/17/2019 11:34, Rob Herring wrote:
> > On Wed, Oct 16, 2019 at 08:01:46PM +0900, Masahiro Yamada wrote:
> >> Hi Andrew,
> >>
> >> Could you pick up this to akpm tree?
> >> https://lore.kernel.org/patchwork/patch/1089856/
> >>
> >> I believe this is correct, and a good clean-up.
> >>
> >> I pinged the DT maintainers, but they did not respond.
> >
> > Sorry I missed this. Things outside my normal paths fall thru the
> > cracks.
> >
> > I'll apply it now.
> >
> > Rob
> >
>
> Looks like my reply crossed with Rob's. Rob, shouldn't
> scripts/dtc/update-dtc-source.sh make this change?
No, the includes in include/linux are kernel files which wrap/replace
the upstream ones.
Rob
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-10-17 17:52 ` Rob Herring
@ 2019-10-17 18:46 ` Frank Rowand
0 siblings, 0 replies; 9+ messages in thread
From: Frank Rowand @ 2019-10-17 18:46 UTC (permalink / raw)
To: Rob Herring
Cc: Masahiro Yamada, Andrew Morton, Linux Kernel Mailing List, DTML,
Frank Rowand
On 10/17/2019 12:52, Rob Herring wrote:
> On Thu, Oct 17, 2019 at 12:25 PM Frank Rowand <frowand.list@gmail.com> wrote:
>>
>> On 10/17/2019 11:34, Rob Herring wrote:
>>> On Wed, Oct 16, 2019 at 08:01:46PM +0900, Masahiro Yamada wrote:
>>>> Hi Andrew,
>>>>
>>>> Could you pick up this to akpm tree?
>>>> https://lore.kernel.org/patchwork/patch/1089856/
>>>>
>>>> I believe this is correct, and a good clean-up.
>>>>
>>>> I pinged the DT maintainers, but they did not respond.
>>>
>>> Sorry I missed this. Things outside my normal paths fall thru the
>>> cracks.
>>>
>>> I'll apply it now.
>>>
>>> Rob
>>>
>>
>> Looks like my reply crossed with Rob's. Rob, shouldn't
>> scripts/dtc/update-dtc-source.sh make this change?
>
> No, the includes in include/linux are kernel files which wrap/replace
> the upstream ones.
>
> Rob
>
Right you are, I overlooked the "include/linux" in the file name
instead of "scripts/dtc/libfdt/".
-Frank
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h
2019-10-16 11:01 ` Masahiro Yamada
2019-10-17 16:34 ` Rob Herring
@ 2019-10-17 17:23 ` Frank Rowand
1 sibling, 0 replies; 9+ messages in thread
From: Frank Rowand @ 2019-10-17 17:23 UTC (permalink / raw)
To: Masahiro Yamada, Andrew Morton
Cc: Linux Kernel Mailing List, Rob Herring, Rob Herring, DTML
On 10/16/2019 06:01, Masahiro Yamada wrote:
> Hi Andrew,
>
> Could you pick up this to akpm tree?
> https://lore.kernel.org/patchwork/patch/1089856/
>
> I believe this is correct, and a good clean-up.
>
> I pinged the DT maintainers, but they did not respond.
Sorry for the delay in responding.
libfdt_env.h is imported from an upstream project, using
the script scripts/dtc/update-dtc-source.sh. Inside
that script are some 'sed' commands to modify the
imported files before committing them. Please add
a sed command to make the change that the proposed
patch makes.
Thanks,
Frank
>
> Thanks.
>
>
>
>
> On Mon, Aug 19, 2019 at 1:36 PM Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
>>
>> On Thu, Aug 1, 2019 at 11:30 AM Masahiro Yamada
>> <yamada.masahiro@socionext.com> wrote:
>>>
>>> On Tue, Jun 18, 2019 at 1:21 AM Masahiro Yamada
>>> <yamada.masahiro@socionext.com> wrote:
>>>>
>>>> Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX.
>>>>
>>>> <linux/kernel.h> pulls in a lots of broat.
>>>>
>>>> Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN
>>>> macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with
>>>> <linux/limits.h>.
>>>>
>>>> This saves including dozens of headers.
>>>>
>>>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>>>> ---
>>>
>>> ping?
>>
>> ping x2.
>>
>>
>>
>>
>>>
>>>
>>>> include/linux/libfdt_env.h | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
>>>> index edb0f0c30904..2231eb855e8f 100644
>>>> --- a/include/linux/libfdt_env.h
>>>> +++ b/include/linux/libfdt_env.h
>>>> @@ -2,7 +2,7 @@
>>>> #ifndef LIBFDT_ENV_H
>>>> #define LIBFDT_ENV_H
>>>>
>>>> -#include <linux/kernel.h> /* For INT_MAX */
>>>> +#include <linux/limits.h> /* For INT_MAX */
>>>> #include <linux/string.h>
>>>>
>>>> #include <asm/byteorder.h>
>>>> --
>>>> 2.17.1
>>>>
>>>
>>>
>>> --
>>> Best Regards
>>> Masahiro Yamada
>>
>>
>>
>> --
>> Best Regards
>> Masahiro Yamada
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-10-17 18:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-17 16:21 [PATCH] libfdt: reduce the number of headers included from libfdt_env.h Masahiro Yamada
2019-08-01 2:30 ` Masahiro Yamada
2019-08-19 4:36 ` Masahiro Yamada
2019-10-16 11:01 ` Masahiro Yamada
2019-10-17 16:34 ` Rob Herring
2019-10-17 17:25 ` Frank Rowand
2019-10-17 17:52 ` Rob Herring
2019-10-17 18:46 ` Frank Rowand
2019-10-17 17:23 ` Frank Rowand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).