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 <[email protected]> Fixes: 0fcb708 ("Makefile.extrawarn: turn on missing-prototypes globally") Reviewed-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> # build-tested Cc: Andreas Larsson <[email protected]> Cc: "David S. Miller" <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Acked-by: Miquel Raynal <[email protected]> Signed-off-by: Andreas Larsson <[email protected]> Link: https://lore.kernel.org/r/20240224-sam-fix-sparc32-all-builds-v2-3-1f186603c5c4@ravnborg.org
1 parent 7bfba2c commit 6892982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)