Skip to contentSkip to conversation

drivers: dca: Mark the function dca_common_get_tag() as static in dca-core.c

PATCH In review Rashika Kheria 2 participants 2 messages Dec 14, 2013

lore
Share & tools
lore
#0 lore raw

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]

---
 drivers/dca/dca-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dca/dca-core.c +1 -1
index 819dfda..9096e59 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Rashika Kheria

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]

Quoted 19 lines
 drivers/dca/dca-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dca/dca-core.c +1 -1
index 819dfda..9096e59 100644
@@ -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