[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bec02b84-316b-a41a-91ea-e0957d358ee3@infradead.org>
Date: Wed, 14 Feb 2018 21:24:55 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
Progyan Bhattacharya <bprogyan@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-next@...r.kernel.org,
narmstrong@...libre.com, akpm@...ux-foundation.org,
Arnd Bergmann <arnd@...db.de>,
Daniel Golle <daniel@...rotopia.org>,
Joe Perches <joe@...ches.com>
Subject: Re: [PATCH] Build: Scripts/Makefile: Remove Repeated Lines
On 02/14/2018 09:05 PM, Stephen Rothwell wrote:
> Hi Progyan,
>
> On Thu, 15 Feb 2018 09:50:03 +0530 Progyan Bhattacharya <bprogyan@...il.com> wrote:
>>
>
>> PS: I have another question, Is use of range expression within case
>> statements allowed in Kernel? If not, are we using If-Else ladder for that?
>
> I am not sure if we have a policy on ranges in case labels, but it is
> not standard C (well, C11 at least). If-else ladders are certainly
> common.
I found 964 case ranges in 4.16-rc1.
or you use something like:
switch (val) {
case 5:
case 10:
case 15:
// handle multiples of 5:
break;
default:
}
--
~Randy
Powered by blists - more mailing lists