[PATCH v3] powerpc: declare unmodified attribute_group usages const
Michael Ellerman
patch-notifications at ellerman.id.au
Sat Mar 12 21:29:47 AEDT 2022
On Tue, 8 Mar 2022 10:14:14 +1100, Rohan McLure wrote:
> Inspired by (bd75b4ef4977: Constify static attribute_group structs),
> accepted by linux-next, reported:
> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20220210202805.7750-4-rikard.falkeborn@gmail.com/
>
> Nearly all singletons of type struct attribute_group are never
> modified, and so
> are candidates for being const. Declare them as const.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc: declare unmodified attribute_group usages const
https://git.kernel.org/powerpc/c/6b3a3e12f8e6eea47428bb39aaf58832b50bb379
cheers
More information about the Linuxppc-dev
mailing list