lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ