Skip to content

Commit 269fd61

Browse files
sudeep-hollawilldeacon
authored andcommitted
firmware: smccc: Fix missing prototype warning for arm_smccc_version_init
Commit f2ae970 ("firmware: smccc: Refactor SMCCC specific bits into separate file") introduced the following build warning: drivers/firmware/smccc/smccc.c:14:13: warning: no previous prototype for function 'arm_smccc_version_init' [-Wmissing-prototypes] void __init arm_smccc_version_init(u32 version, enum arm_smccc_conduit conduit) ^~~~~~~~~~~~~~~~~~~~~~ Fix the same by adding the missing prototype in arm-smccc.h Reported-by: kbuild test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent a4fb174 commit 269fd61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/firmware/psci/psci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ static u32 psci_function_id[PSCI_FN_MAX];
7979

8080
static u32 psci_cpu_suspend_feature;
8181
static bool psci_system_reset2_supported;
82-
void __init arm_smccc_version_init(u32 version, enum arm_smccc_conduit conduit);
8382

8483
static inline bool psci_has_ext_power_state(void)
8584
{

include/linux/arm-smccc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef __LINUX_ARM_SMCCC_H
66
#define __LINUX_ARM_SMCCC_H
77

8+
#include <linux/init.h>
89
#include <uapi/linux/const.h>
910

1011
/*
@@ -111,6 +112,8 @@ enum arm_smccc_conduit arm_smccc_1_1_get_conduit(void);
111112
*/
112113
u32 arm_smccc_get_version(void);
113114

115+
void __init arm_smccc_version_init(u32 version, enum arm_smccc_conduit conduit);
116+
114117
/**
115118
* struct arm_smccc_res - Result from SMC/HVC call
116119
* @a0-a3 result values from registers 0 to 3

0 commit comments

Comments
 (0)