powerpc/papr_scm: Mark papr_scm_ndctl() as static
PATCH 1/1 powerpc/papr_scm: Mark papr_scm_ndctl() as static
Function papr_scm_ndctl() is neither exported from the module nor called directly from outside 'papr.c' hence should be marked 'static'.
Signed-off-by Vaibhav Jain <[email protected]>
--- arch/powerpc/platforms/pseries/papr_scm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/powerpc/platforms/pseries/papr_scm.c +3 -2
@@ -246,8 +246,9 @@ static int papr_scm_meta_set(struct papr_scm_priv *p,return 0 ; } -int papr_scm_ndctl (struct nvdimm_bus_descriptor *nd_desc,struct nvdimm *nvdimm, -unsigned int cmd,void *buf,unsigned int buf_len,int *cmd_rc) +static int papr_scm_ndctl (struct nvdimm_bus_descriptor *nd_desc, +struct nvdimm *nvdimm,unsigned int cmd,void *buf, +unsigned int buf_len,int *cmd_rc) {struct nd_cmd_get_config_size *get_size_hdr;struct papr_scm_priv *p;
Signature · 1 line
2.24.1
Michael Ellerman
AppliedQuoted 4 lines · Vaibhav Jain
Function
papr_scm_ndctl()is neither exported from the module nor called directly from outside 'papr.c' hence should be marked 'static'.Signed-off-by Vaibhav Jain <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/72c4ebbac476b8375e69fd09390e6b64c2891716
cheers