summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/vas.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-16 17:00:27 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 22:33:15 +1100
commite14ff96d08f0ade9dd33081d909ad65a02a858c1 (patch)
tree545c8528c709c8f4a33518d82bed5342e3ceaf72 /arch/powerpc/platforms/pseries/vas.c
parente5913db1ef22817e128f0a794752f7393205e00b (diff)
downloadlinux-e14ff96d08f0ade9dd33081d909ad65a02a858c1.tar.gz
linux-e14ff96d08f0ade9dd33081d909ad65a02a858c1.tar.bz2
linux-e14ff96d08f0ade9dd33081d909ad65a02a858c1.zip
powerpc/pseries: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/pseries' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files 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-13-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/pseries/vas.c')
-rw-r--r--arch/powerpc/platforms/pseries/vas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/vas.c b/arch/powerpc/platforms/pseries/vas.c
index 734523e2272f..d243ddc58827 100644
--- a/arch/powerpc/platforms/pseries/vas.c
+++ b/arch/powerpc/platforms/pseries/vas.c
@@ -489,7 +489,7 @@ EXPORT_SYMBOL_GPL(vas_unregister_api_pseries);
* Get the specific capabilities based on the feature type.
* Right now supports GZIP default and GZIP QoS capabilities.
*/
-static int get_vas_capabilities(u8 feat, enum vas_cop_feat_type type,
+static int __init get_vas_capabilities(u8 feat, enum vas_cop_feat_type type,
struct hv_vas_cop_feat_caps *hv_caps)
{
struct vas_cop_feat_caps *caps;