* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
[not found] ` <46040e2776a4848add06126ce1cb8f846709294f.camel@perches.com>
@ 2020-10-01 10:15 ` Miguel Ojeda
2020-10-01 19:05 ` Joe Perches
2020-10-01 19:39 ` Segher Boessenkool
0 siblings, 2 replies; 8+ messages in thread
From: Miguel Ojeda @ 2020-10-01 10:15 UTC (permalink / raw)
To: Joe Perches
Cc: Kees Cook, Paul E . McKenney, Nick Desaulniers, Lai Jiangshan,
Josh Triplett, Steven Rostedt, LKML, rcu, Clang-Built-Linux ML,
Mathieu Desnoyers, Sedat Dilek, Paul Mackerras, linuxppc-dev
Hi Joe,
On Thu, Oct 1, 2020 at 12:56 AM Joe Perches <joe@perches.com> wrote:
>
> So I installed the powerpc cross compiler, and
> nope, that doesn't work, it makes a mess.
Thanks a lot for reviving the script and sending the treewide cleanup!
> So it looks like the best option is to exclude these
> 2 files from conversion.
Agreed. Nevertheless, is there any reason arch/powerpc/* should not be
compiling cleanly with compiler.h? (CC'ing the rest of the PowerPC
reviewers and ML).
Cheers,
Miguel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-01 10:15 ` [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo") Miguel Ojeda
@ 2020-10-01 19:05 ` Joe Perches
2020-10-01 19:39 ` Segher Boessenkool
1 sibling, 0 replies; 8+ messages in thread
From: Joe Perches @ 2020-10-01 19:05 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Kees Cook, Paul E . McKenney, Nick Desaulniers, Lai Jiangshan,
Josh Triplett, Steven Rostedt, LKML, rcu, Clang-Built-Linux ML,
Mathieu Desnoyers, Sedat Dilek, Paul Mackerras, linuxppc-dev
On Thu, 2020-10-01 at 12:15 +0200, Miguel Ojeda wrote:
> Hi Joe,
Buenas Miguel.
> On Thu, Oct 1, 2020 at 12:56 AM Joe Perches <joe@perches.com> wrote:
> > So I installed the powerpc cross compiler, and
> > nope, that doesn't work, it makes a mess.
>
> Thanks a lot for reviving the script and sending the treewide cleanup!
No charge...
I think the end result is cleaner and more obvious.
> > So it looks like the best option is to exclude these
> > 2 files from conversion.
>
> Agreed. Nevertheless, is there any reason arch/powerpc/* should not be
> compiling cleanly with compiler.h? (CC'ing the rest of the PowerPC
> reviewers and ML).
That's not a can of worms I care to open.
Perhaps the powerpc folk can do some fishing.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-01 10:15 ` [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo") Miguel Ojeda
2020-10-01 19:05 ` Joe Perches
@ 2020-10-01 19:39 ` Segher Boessenkool
2020-10-01 20:19 ` Joe Perches
1 sibling, 1 reply; 8+ messages in thread
From: Segher Boessenkool @ 2020-10-01 19:39 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Kees Cook, Paul E . McKenney, Sedat Dilek, Nick Desaulniers,
Lai Jiangshan, Josh Triplett, Steven Rostedt, LKML, rcu,
Clang-Built-Linux ML, Mathieu Desnoyers, Joe Perches,
Paul Mackerras, linuxppc-dev
Hi!
On Thu, Oct 01, 2020 at 12:15:39PM +0200, Miguel Ojeda wrote:
> > So it looks like the best option is to exclude these
> > 2 files from conversion.
>
> Agreed. Nevertheless, is there any reason arch/powerpc/* should not be
> compiling cleanly with compiler.h? (CC'ing the rest of the PowerPC
> reviewers and ML).
You need to #include compiler_types.h to get this #define?
(The twice-defined thing is a warning, not an error. It should be fixed
of course, but it is less important; although it may be pointing to a
deeper problem.)
Segher
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-01 19:39 ` Segher Boessenkool
@ 2020-10-01 20:19 ` Joe Perches
2020-10-05 18:36 ` Nick Desaulniers
2020-10-06 0:34 ` Joel Stanley
0 siblings, 2 replies; 8+ messages in thread
From: Joe Perches @ 2020-10-01 20:19 UTC (permalink / raw)
To: Segher Boessenkool, Miguel Ojeda
Cc: Kees Cook, Paul E . McKenney, Nick Desaulniers, Lai Jiangshan,
Josh Triplett, Steven Rostedt, LKML, rcu, Clang-Built-Linux ML,
Mathieu Desnoyers, Sedat Dilek, Paul Mackerras, linuxppc-dev
On Thu, 2020-10-01 at 14:39 -0500, Segher Boessenkool wrch/ote:
> Hi!
>
> On Thu, Oct 01, 2020 at 12:15:39PM +0200, Miguel Ojeda wrote:
> > > So it looks like the best option is to exclude these
> > > 2 files from conversion.
> >
> > Agreed. Nevertheless, is there any reason arch/powerpc/* should not be
> > compiling cleanly with compiler.h? (CC'ing the rest of the PowerPC
> > reviewers and ML).
>
> You need to #include compiler_types.h to get this #define?
Actually no, you need to add
#include <linux/compiler_attributes.h>
to both files and then it builds properly.
Ideally though nothing should include this file directly.
> (The twice-defined thing is a warning, not an error. It should be fixed
> of course, but it is less important; although it may be pointing to a
> deeper problem.)
>
>
> Segher
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-01 20:19 ` Joe Perches
@ 2020-10-05 18:36 ` Nick Desaulniers
2020-10-05 18:46 ` Joe Perches
2020-10-06 0:34 ` Joel Stanley
1 sibling, 1 reply; 8+ messages in thread
From: Nick Desaulniers @ 2020-10-05 18:36 UTC (permalink / raw)
To: Joe Perches
Cc: Kees Cook, Paul E . McKenney, Clang-Built-Linux ML, LKML,
Lai Jiangshan, Josh Triplett, Steven Rostedt, rcu, Miguel Ojeda,
Mathieu Desnoyers, Sedat Dilek, Paul Mackerras, linuxppc-dev
On Thu, Oct 1, 2020 at 1:19 PM Joe Perches <joe@perches.com> wrote:
>
> On Thu, 2020-10-01 at 14:39 -0500, Segher Boessenkool wrch/ote:
> > Hi!
> >
> > On Thu, Oct 01, 2020 at 12:15:39PM +0200, Miguel Ojeda wrote:
> > > > So it looks like the best option is to exclude these
> > > > 2 files from conversion.
> > >
> > > Agreed. Nevertheless, is there any reason arch/powerpc/* should not be
> > > compiling cleanly with compiler.h? (CC'ing the rest of the PowerPC
> > > reviewers and ML).
> >
> > You need to #include compiler_types.h to get this #define?
>
> Actually no, you need to add
>
> #include <linux/compiler_attributes.h>
>
> to both files and then it builds properly.
>
> Ideally though nothing should include this file directly.
That's because Kbuild injects it via command line flag `-include`.
(Well, it injects compiler_types.h which includes this). If part of
the tree reset KBUILD_CFLAGS, that `-include` gets dropped. I don't
think there's anything wrong with manually including it and adding `-I
<path>` (capital i) if needed.
>
> > (The twice-defined thing is a warning, not an error. It should be fixed
> > of course, but it is less important; although it may be pointing to a
> > deeper problem.)
> >
> >
> > Segher
>
--
Thanks,
~Nick Desaulniers
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-05 18:36 ` Nick Desaulniers
@ 2020-10-05 18:46 ` Joe Perches
0 siblings, 0 replies; 8+ messages in thread
From: Joe Perches @ 2020-10-05 18:46 UTC (permalink / raw)
To: Nick Desaulniers
Cc: Kees Cook, Paul E . McKenney, Clang-Built-Linux ML, LKML,
Lai Jiangshan, Josh Triplett, Steven Rostedt, rcu, Miguel Ojeda,
Mathieu Desnoyers, Sedat Dilek, Paul Mackerras, linuxppc-dev
On Mon, 2020-10-05 at 11:36 -0700, Nick Desaulniers wrote:
> I don't think there's anything wrong with manually including it and adding `-I
> <path>` (capital i) if needed.
All of this is secondary to the actual change to use
quoted __section("foo") rather than __section(foo)
I'd rather get that done first and then figure out if
additional changes could be done later.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-01 20:19 ` Joe Perches
2020-10-05 18:36 ` Nick Desaulniers
@ 2020-10-06 0:34 ` Joel Stanley
2020-10-06 3:22 ` Joe Perches
1 sibling, 1 reply; 8+ messages in thread
From: Joel Stanley @ 2020-10-06 0:34 UTC (permalink / raw)
To: Joe Perches, Michael Ellerman
Cc: Kees Cook, Paul E . McKenney, Clang-Built-Linux ML,
Nick Desaulniers, Lai Jiangshan, Josh Triplett, Steven Rostedt,
rcu, Miguel Ojeda, Mathieu Desnoyers, Sedat Dilek, Paul Mackerras,
linuxppc-dev, LKML
On Thu, 1 Oct 2020 at 20:19, Joe Perches <joe@perches.com> wrote:
>
> On Thu, 2020-10-01 at 14:39 -0500, Segher Boessenkool wrch/ote:
> > Hi!
> >
> > On Thu, Oct 01, 2020 at 12:15:39PM +0200, Miguel Ojeda wrote:
> > > > So it looks like the best option is to exclude these
> > > > 2 files from conversion.
> > >
> > > Agreed. Nevertheless, is there any reason arch/powerpc/* should not be
> > > compiling cleanly with compiler.h? (CC'ing the rest of the PowerPC
> > > reviewers and ML).
> >
> > You need to #include compiler_types.h to get this #define?
>
> Actually no, you need to add
>
> #include <linux/compiler_attributes.h>
>
> to both files and then it builds properly.
>
> Ideally though nothing should include this file directly.
arch/powerpc/boot is the powerpc wrapper, and it's not built with the
same includes or flags as the rest of the kernel. It doesn't include
any of the headers in the top level include/ directory for hysterical
raisins.
The straightforward fix would be to exclude this directory from your script.
Cheers,
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")
2020-10-06 0:34 ` Joel Stanley
@ 2020-10-06 3:22 ` Joe Perches
0 siblings, 0 replies; 8+ messages in thread
From: Joe Perches @ 2020-10-06 3:22 UTC (permalink / raw)
To: Joel Stanley, Michael Ellerman
Cc: Kees Cook, Paul E . McKenney, Clang-Built-Linux ML,
Nick Desaulniers, Lai Jiangshan, Josh Triplett, Steven Rostedt,
rcu, Miguel Ojeda, Mathieu Desnoyers, Sedat Dilek, Paul Mackerras,
linuxppc-dev, LKML
On Tue, 2020-10-06 at 00:34 +0000, Joel Stanley wrote:
> arch/powerpc/boot is the powerpc wrapper, and it's not built with the
> same includes or flags as the rest of the kernel. It doesn't include
> any of the headers in the top level include/ directory for hysterical
> raisins.
>
> The straightforward fix would be to exclude this directory from your script.
I agree and that's why I submitted another script
that does just that.
https://lore.kernel.org/lkml/75393e5ddc272dc7403de74d645e6c6e0f4e70eb.camel@perches.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-10-06 3:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAKwvOd=s+N4+X94sTams_hKn8uV5Hc6QyCc7OHyOGC-JFesS8A@mail.gmail.com>
[not found] ` <20200929192549.501516-1-ndesaulniers@google.com>
[not found] ` <CA+icZUVgfnVQ1=zjUGhGKnJAs9g3Q06sWN3ffNdrfZMZLCEkbA@mail.gmail.com>
[not found] ` <133589afbe999347454dfcc46ae782897bf9e3a2.camel@perches.com>
[not found] ` <46f69161e60b802488ba8c8f3f8bbf922aa3b49b.camel@perches.com>
[not found] ` <CAKwvOdkhyvTpY6pHT+CLSsBFuKRWsXucjbwN_tyJAsryZXvG1A@mail.gmail.com>
[not found] ` <417ffa3fd3fba5d4a481db6a0b0c9b48cbbb17c4.camel@perches.com>
[not found] ` <CAKwvOd=P+j0RaQfHsXPfB0EL3oRgAu8Q0+spUOn_v-p2+3=3pw@mail.gmail.com>
[not found] ` <aefe941251d5d58062d06099afb58dea1d1d4e17.camel@perches.com>
[not found] ` <46040e2776a4848add06126ce1cb8f846709294f.camel@perches.com>
2020-10-01 10:15 ` [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo") Miguel Ojeda
2020-10-01 19:05 ` Joe Perches
2020-10-01 19:39 ` Segher Boessenkool
2020-10-01 20:19 ` Joe Perches
2020-10-05 18:36 ` Nick Desaulniers
2020-10-05 18:46 ` Joe Perches
2020-10-06 0:34 ` Joel Stanley
2020-10-06 3:22 ` Joe Perches
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).