Skip to contentSkip to conversation

video: mb862xxfbdrv.c: local functions should not be exposed globally

PATCH Applied H Hartley Sweeten 2 participants 2 messages May 3, 2012 – May 10, 2012 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: mb862xxfbdrv.c: local functions should not be exposed globally

Functions not referenced outside of a source file should be marked static to prevent them from being exposed globally.

Quiets the sparse warnings:

warning: symbol 'mb862xx_intr' was not declared. Should it be static?

Cc Florian Tobias Schandinat <[email protected]>
Cc Anatolij Gustschin <[email protected]>

---

drivers/video/mb862xx/mb862xxfbdrv.c +1 -1
index 11a7a33..00ce1f3 100644
@@ -579,7 +579,7 @@ static ssize_t mb862xxfb_show_dispregs(struct device *dev,
 
 static DEVICE_ATTR(dispregs, 0444, mb862xxfb_show_dispregs, NULL);
 
-irqreturn_t mb862xx_intr(int irq, void *dev_id)
+static irqreturn_t mb862xx_intr(int irq, void *dev_id)
 {
 	struct mb862xxfb_par *par = (struct mb862xxfb_par *) dev_id;
 	unsigned long reg_ist, mask;
#1 lore raw
Quoted 10 lines · H Hartley Sweeten

Functions not referenced outside of a source file should be marked static to prevent them from being exposed globally.

Quiets the sparse warnings:

warning: symbol 'mb862xx_intr' was not declared. Should it be static?

Cc Florian Tobias Schandinat <[email protected]>
Cc Anatolij Gustschin <[email protected]>

Applied.

Thanks,

Florian Tobias Schandinat

Quoted 17 lines

---

drivers/video/mb862xx/mb862xxfbdrv.c +1 -1
index 11a7a33..00ce1f3 100644
@@ -579,7 +579,7 @@ static ssize_t mb862xxfb_show_dispregs(struct device *dev,
 
 static DEVICE_ATTR(dispregs, 0444, mb862xxfb_show_dispregs, NULL);
 
-irqreturn_t mb862xx_intr(int irq, void *dev_id)
+static irqreturn_t mb862xx_intr(int irq, void *dev_id)
 {
 	struct mb862xxfb_par *par = (struct mb862xxfb_par *) dev_id;
 	unsigned long reg_ist, mask;