Re: [PATCH 01/35 linux-next] ata: constify of_device_id array

From: Richard Weinberger
Date: Mon Mar 16 2015 - 18:17:10 EST


Fabian,

On Mon, Mar 16, 2015 at 8:17 PM, Fabian Frederick <fabf@xxxxxxxxx> wrote:
> of_device_id is always used as const.
> (See driver.of_match_table and open firmware functions)

Do you know the gcc plugin-system?
You could improve the const plugin in to find more interesting structs
to constify them.
http://grsecurity.net/~ephox/const_plugin/
Please check also the latest grsecurity patch.

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