Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/chrp: Add __init attribute to eligible functions

The function `Enable_SRAM` defined in 'arch/powerpc/platforms/chrp' is
deserving of an `__init` macro attribute. This function is only called by
other initialization functions and therefore should inherit the attribute.

Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-9-nick.child@ibm.com

authored by

Nick Child and committed by
Michael Ellerman
d3aa3c5e 7c1ab16b

+1 -1
+1 -1
arch/powerpc/platforms/chrp/pegasos_eth.c
··· 113 113 114 114 static void __iomem *mv643xx_reg_base; 115 115 116 - static int Enable_SRAM(void) 116 + static int __init Enable_SRAM(void) 117 117 { 118 118 u32 ALong; 119 119