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>] [day] [month] [year] [list]
Date:	Fri, 1 Jan 2010 15:44:45 +0800
From:	Eric Miao <eric.y.miao@...il.com>
To:	Kay Sievers <kay.sievers@...y.org>, Greg KH <gregkh@...e.de>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: driver core: make platform_device_id table const

Forget to make linux-kernel CC'ed.

On Fri, Jan 1, 2010 at 3:43 PM, Eric Miao <eric.y.miao@...il.com> wrote:
> The platform ID table is normally const, force that by adding the attribute.
>
>    Signed-off-by: Eric Miao <eric.y.miao@...il.com>
>
> diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
> index 71ff887..f5c1e7b 100644
> --- a/include/linux/platform_device.h
> +++ b/include/linux/platform_device.h
> @@ -21,7 +21,7 @@ struct platform_device {
>        u32             num_resources;
>        struct resource * resource;
>
> -       struct platform_device_id       *id_entry;
> +       const struct platform_device_id *id_entry;
>
>        /* arch specific additions */
>        struct pdev_archdata    archdata;
>
--
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