device-dax: make dev_dax_kmem_probe() static
PATCH 1/1 device-dax: make dev_dax_kmem_probe() static
This eliminates the following sparse warning:
drivers/dax/kmem.c:38:5: warning: symbol 'dev_dax_kmem_probe' was not declared. Should it be static?
Reported-by Hulk Robot <[email protected]>
Signed-off-by Jason Yan <[email protected]>
--- drivers/dax/kmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dax/kmem.c +1 -1
@@ -35,7 +35,7 @@ static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r)return 0 ; } -int dev_dax_kmem_probe (struct dev_dax *dev_dax) +static int dev_dax_kmem_probe (struct dev_dax *dev_dax) {int numa_node = dev_dax->target_node;struct device *dev = &dev_dax->dev;
Signature · 4 lines
2.25.4 _______________________________________________ Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]
Quoted 7 lines · Jason Yan
This eliminates the following sparse warning:
drivers/dax/kmem.c:38:5: warning: symbol 'dev_dax_kmem_probe' was not declared. Should it be static?Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>
Reviewed-by Ira Weiny <[email protected]>
Quoted 22 lines
--- drivers/dax/kmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dax/kmem.c +1
-1@@ -35,7 +35,7 @@ static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r)return 0 ; } -int dev_dax_kmem_probe (struct dev_dax *dev_dax) +static int dev_dax_kmem_probe (struct dev_dax *dev_dax) {int numa_node = dev_dax->target_node;struct device *dev = &dev_dax->dev;Signature · 4 lines
2.25.4 _______________________________________________ Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]
_______________________________________________
Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]