drivers: dca: Mark the function dca_common_get_tag() as static in dca-core.c
PATCH 1/1 drivers: dca: Mark the function dca_common_get_tag() as static in dca-core.c
This patch marks the function dca_common_get_tag() as static in dca-core.c because it is not used outside this file.
Thus, it also eliminates the following warning in dca-core.c:drivers/dca/dca-core.c:273:4: warning: no previous prototype for ‘dca_common_get_tag’ [-Wmissing-prototypes]
Signed-off-by Rashika Kheria <[email protected]>
--- drivers/dca/dca-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dca/dca-core.c +1 -1
@@ -270,7 +270,7 @@ EXPORT_SYMBOL_GPL(dca_remove_requester);* @dev - the device that wants dca service * @cpu - the cpuid as returned by get_cpu() */ -u8 dca_common_get_tag (struct device *dev,int cpu) +static u8 dca_common_get_tag (struct device *dev,int cpu) {struct dca_provider *dca;u8 tag;
Signature · 1 line
1.7.9.5
Quoted 7 lines · Rashika Kheria
This patch marks the function
dca_common_get_tag()as static indca-core.cbecause it is not used outside this file.Thus, it also eliminates the following warning in
dca-core.c:drivers/dca/dca-core.c:273:4: warning: no previous prototype for ‘dca_common_get_tag’ [-Wmissing-prototypes]Signed-off-by Rashika Kheria <[email protected]>
Reviewed-by Josh Triplett <[email protected]>
Quoted 19 lines
drivers/dca/dca-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dca/dca-core.c +1
-1@@ -270,7 +270,7 @@ EXPORT_SYMBOL_GPL(dca_remove_requester);* @dev - the device that wants dca service * @cpu - the cpuid as returned by get_cpu() */ -u8 dca_common_get_tag (struct device *dev,int cpu) +static u8 dca_common_get_tag (struct device *dev,int cpu) {struct dca_provider *dca;u8 tag;Signature · 1 line
1.7.9.5