Skip to contentSkip to conversation

lib: image-sparse: Mark sparse_seek() as static

PATCH Applied Andrey Smirnov 2 participants 2 messages Jan 25, 2019 – Jan 28, 2019 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: image-sparse: Mark sparse_seek() as static

Mark sparse_seek() as static to avoid -Wmissing-prototypes warnings

---
 lib/image-sparse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/image-sparse.c +1 -1
index 7137d15fd..0c31742ab 100644
@@ -60,7 +60,7 @@ struct sparse_image_ctx {
 	uint32_t fill_val;
 };
 
-int sparse_seek(struct sparse_image_ctx *si)
+static int sparse_seek(struct sparse_image_ctx *si)
 {
 	unsigned int chunk_data_sz, payload;
 	loff_t offs;
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 6 lines · Andrey Smirnov

Mark sparse_seek() as static to avoid -Wmissing-prototypes warnings

---
 lib/image-sparse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 23 lines
lib/image-sparse.c +1 -1
index 7137d15fd..0c31742ab 100644
@@ -60,7 +60,7 @@ struct sparse_image_ctx {
 	uint32_t fill_val;
 };
 
-int sparse_seek(struct sparse_image_ctx *si)
+static int sparse_seek(struct sparse_image_ctx *si)
 {
 	unsigned int chunk_data_sz, payload;
 	loff_t offs;
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox