Skip to content

Commit d79a27e

Browse files
Bartosz Golaszewskiandersson
authored andcommitted
firmware: qcom: scm: remove unneeded 'extern' specifiers
'extern' specifiers do nothing for function declarations. Remove them from the private qcom-scm header. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andrew Halaney <[email protected]> Tested-by: Andrew Halaney <[email protected]> # sc8280xp-lenovo-thinkpad-x13s Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 3294d01 commit d79a27e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

drivers/firmware/qcom/qcom_scm.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,17 @@ int qcom_scm_wait_for_wq_completion(u32 wq_ctx);
6666
int scm_get_wq_ctx(u32 *wq_ctx, u32 *flags, u32 *more_pending);
6767

6868
#define SCM_SMC_FNID(s, c) ((((s) & 0xFF) << 8) | ((c) & 0xFF))
69-
extern int __scm_smc_call(struct device *dev, const struct qcom_scm_desc *desc,
70-
enum qcom_scm_convention qcom_convention,
71-
struct qcom_scm_res *res, bool atomic);
69+
int __scm_smc_call(struct device *dev, const struct qcom_scm_desc *desc,
70+
enum qcom_scm_convention qcom_convention,
71+
struct qcom_scm_res *res, bool atomic);
7272
#define scm_smc_call(dev, desc, res, atomic) \
7373
__scm_smc_call((dev), (desc), qcom_scm_convention, (res), (atomic))
7474

7575
#define SCM_LEGACY_FNID(s, c) (((s) << 10) | ((c) & 0x3ff))
76-
extern int scm_legacy_call_atomic(struct device *dev,
77-
const struct qcom_scm_desc *desc,
78-
struct qcom_scm_res *res);
79-
extern int scm_legacy_call(struct device *dev, const struct qcom_scm_desc *desc,
76+
int scm_legacy_call_atomic(struct device *dev, const struct qcom_scm_desc *desc,
8077
struct qcom_scm_res *res);
78+
int scm_legacy_call(struct device *dev, const struct qcom_scm_desc *desc,
79+
struct qcom_scm_res *res);
8180

8281
#define QCOM_SCM_SVC_BOOT 0x01
8382
#define QCOM_SCM_BOOT_SET_ADDR 0x01

0 commit comments

Comments
 (0)