]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Add __init attribute to eligible functions
authorNick Child <nick.child@ibm.com>
Thu, 16 Dec 2021 22:00:21 +0000 (17:00 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:33:12 +0000 (22:33 +1100)
commit8623d7ceca9e9bb7068cd3915b064c91b40d0595
treebb9c4b81a36ea47b067177a4832de26838de66a5
parent9bd382860e56ef88e5703b9071d6ad3dc7a4e5c1
powerpc/xmon: Add __init attribute to eligible functions

`xmon_register_spus` defined in 'arch/powerpc/xmon' is deserving of an
`__init` macro attribute. This functions is only called by other
initialization functions and therefore should inherit the attribute.
Also, change the function declaration in the header file to include
`__init`.

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-7-nick.child@ibm.com
arch/powerpc/include/asm/xmon.h
arch/powerpc/xmon/xmon.c