Skip to contentSkip to conversation

video: mb862xx-i2c: 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: mb862xx-i2c: 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_i2c_stop' was not declared. Should it be static?

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

---

drivers/video/mb862xx/mb862xx-i2c.c +1 -1
index 273769b..c87e17a 100644
@@ -68,7 +68,7 @@ static int mb862xx_i2c_read_byte(struct i2c_adapter *adap, u8 *byte, int last)
 	return 1;
 }
 
-void mb862xx_i2c_stop(struct i2c_adapter *adap)
+static void mb862xx_i2c_stop(struct i2c_adapter *adap)
 {
 	struct mb862xxfb_par *par = adap->algo_data;
 
#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_i2c_stop' 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/mb862xx-i2c.c +1 -1
index 273769b..c87e17a 100644
@@ -68,7 +68,7 @@ static int mb862xx_i2c_read_byte(struct i2c_adapter *adap, u8 *byte, int last)
 	return 1;
 }
 
-void mb862xx_i2c_stop(struct i2c_adapter *adap)
+static void mb862xx_i2c_stop(struct i2c_adapter *adap)
 {
 	struct mb862xxfb_par *par = adap->algo_data;