Skip to content

Commit 6892982

Browse files
sravnborgandreas-gaisler
authored andcommitted
mtd: maps: sun_uflash: Declare uflash_devinit static
This fixes the following warning: sun_uflash.c:50:5: error: no previous prototype for 'uflash_devinit' Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Fixes: 0fcb708 ("Makefile.extrawarn: turn on missing-prototypes globally") Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Cc: Andreas Larsson <andreas@gaisler.com> Cc: "David S. Miller" <davem@davemloft.net> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com> Link: https://lore.kernel.org/r/20240224-sam-fix-sparc32-all-builds-v2-3-1f186603c5c4@ravnborg.org
1 parent 7bfba2c commit 6892982

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/maps/sun_uflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct map_info uflash_map_templ = {
4747
.bankwidth = UFLASH_BUSWIDTH,
4848
};
4949

50-
int uflash_devinit(struct platform_device *op, struct device_node *dp)
50+
static int uflash_devinit(struct platform_device *op, struct device_node *dp)
5151
{
5252
struct uflash_dev *up;
5353

0 commit comments

Comments
 (0)