aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2015-08-06 23:18:18 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2015-08-12 00:49:09 -0400
commit3d6b040e73387570521da4aedfd03d2643acdae7 (patch)
treeaae34c5be49d91fab6108dd2ea726cf2654c2106
parentd3d73f4b38a8ece19846b8fa2519cdc8583f35bb (diff)
cxl: sparse: Make declarations static
A few declarations were identified by sparse as needing to be static: drivers/misc/cxl/irq.c:408:6: warning: symbol 'afu_irq_name_free' was not declared. Should it be static? drivers/misc/cxl/irq.c:467:6: warning: symbol 'afu_register_hwirqs' was not declared. Should it be static? drivers/misc/cxl/file.c:254:6: warning: symbol 'afu_compat_ioctl' was not declared. Should it be static? drivers/misc/cxl/file.c:399:30: warning: symbol 'afu_master_fops' was not declared. Should it be static? Make them static. Signed-off-by: Daniel Axtens <dja@axtens.net> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--drivers/misc/cxl/file.c4
-rw-r--r--drivers/misc/cxl/irq.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/cxl/file.c b/drivers/misc/cxl/file.c
index e3f4b69527a9..c8c8bfa2679b 100644
--- a/drivers/misc/cxl/file.c
+++ b/drivers/misc/cxl/file.c
@@ -251,7 +251,7 @@ long afu_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
251 return -EINVAL; 251 return -EINVAL;
252} 252}
253 253
254long afu_compat_ioctl(struct file *file, unsigned int cmd, 254static long afu_compat_ioctl(struct file *file, unsigned int cmd,
255 unsigned long arg) 255 unsigned long arg)
256{ 256{
257 return afu_ioctl(file, cmd, arg); 257 return afu_ioctl(file, cmd, arg);
@@ -396,7 +396,7 @@ const struct file_operations afu_fops = {
396 .mmap = afu_mmap, 396 .mmap = afu_mmap,
397}; 397};
398 398
399const struct file_operations afu_master_fops = { 399static const struct file_operations afu_master_fops = {
400 .owner = THIS_MODULE, 400 .owner = THIS_MODULE,
401 .open = afu_master_open, 401 .open = afu_master_open,
402 .poll = afu_poll, 402 .poll = afu_poll,
diff --git a/drivers/misc/cxl/irq.c b/drivers/misc/cxl/irq.c
index abfce494ca6b..b6b04374c10c 100644
--- a/drivers/misc/cxl/irq.c
+++ b/drivers/misc/cxl/irq.c
@@ -405,7 +405,7 @@ void cxl_release_psl_irq(struct cxl_afu *afu)
405 kfree(afu->psl_irq_name); 405 kfree(afu->psl_irq_name);
406} 406}
407 407
408void afu_irq_name_free(struct cxl_context *ctx) 408static void afu_irq_name_free(struct cxl_context *ctx)
409{ 409{
410 struct cxl_irq_name *irq_name, *tmp; 410 struct cxl_irq_name *irq_name, *tmp;
411 411
@@ -464,7 +464,7 @@ out:
464 return -ENOMEM; 464 return -ENOMEM;
465} 465}
466 466
467void afu_register_hwirqs(struct cxl_context *ctx) 467static void afu_register_hwirqs(struct cxl_context *ctx)
468{ 468{
469 irq_hw_number_t hwirq; 469 irq_hw_number_t hwirq;
470 struct cxl_irq_name *irq_name; 470 struct cxl_irq_name *irq_name;