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] [thread-next>] [day] [month] [year] [list]
Message-ID: <56261E0D.7080804@ahsoftware.de>
Date:	Tue, 20 Oct 2015 12:57:17 +0200
From:	Alexander Holler <holler@...oftware.de>
To:	Mark Brown <broonie@...nel.org>
Cc:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	linux-kernel@...r.kernel.org,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Russell King <linux@....linux.org.uk>,
	Grant Likely <grant.likely@...aro.org>
Subject: Re: [PATCH 10/14] init: deps: IDs for annotated initcalls

Am 20.10.2015 um 12:42 schrieb Alexander Holler:

>> Another idea to split this one file into multiple ones would be to
>> reserve blocks of IDs. E.g. use 10000-20000 for networking stuff,
>> 1000-1200 for I2C and so on.
>
> In detail it could look like
>
> driver_ids_base.h:
>
> enum {
>      drvid_i2c_base = 1000,
>      drvid_networking_base = 1200,
>      drvid_usb_base = 3000,
> };
>
> driver_ids_i2c.h:
>
> # include "driver_ids_base.h"
>
> enum {
>      drvid_i2c_start = drvid_i2c_base,
>
>      /* drivers/i2c */
>      drvid_i2c,
>      drvid_i2c_dev,
>      drvid_i2c_busses_start,
>      /* drivers/i2c/busses */
>      drvid_i2c_gpio,
>      (...)
>
>      drvid_i2c_end
> };

Which, of course, should be enhanced with a compile time error if 
drvid_i2c_end >= drvid_networking_base.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ