[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH7mPvhMBubB7uqeohRBL_FpgnAPO5Eh4C+Lzv1MW+-rn2nXVg@mail.gmail.com>
Date: Tue, 31 Oct 2017 21:33:37 -0700
From: Nick Desaulniers <nick.desaulniers@...il.com>
To: Matthias Kaehlcke <mka@...omium.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Shile Zhang <shile.zhang@...ia.com>,
Peter Zijlstra <peterz@...radead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Douglas Anderson <dianders@...omium.org>,
Guenter Roeck <groeck@...omium.org>
Subject: Re: [PATCH v2] sched/sysctl: Fix attributes of some extern declarations
> El Tue, Oct 30, 2017 at 10:57:58AM +0100 Ingo Molnar ha dit:
>> So I hate this change, because it pointlessly duplicates an attribute that should
>> only matter at the definition site.
>
> It's certainly not ideal, and then again essentially the same is done
> in kernel/sched/sched.h, just that here the specific attribute is
> hidden behind const_debug.
>
>> The Clang warning:
>>
>> > kernel/sched/sched.h:1618:33: warning: section attribute is specified on
>> > redeclared variable [-Wsection]
>>
>> suggests that the -Wsection warning can be turned off. The Clang build should
>> probably do that.
Naive question: can these definitions be hoisted to include/linux/sched.h?
Powered by blists - more mailing lists