Skip to content

Commit

Permalink
mtd: maps: sun_uflash: Declare uflash_devinit static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sravnborg authored and andreas-gaisler committed Mar 8, 2024
1 parent 7bfba2c commit 6892982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/sun_uflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct map_info uflash_map_templ = {
.bankwidth = UFLASH_BUSWIDTH,
};

int uflash_devinit(struct platform_device *op, struct device_node *dp)
static int uflash_devinit(struct platform_device *op, struct device_node *dp)
{
struct uflash_dev *up;

Expand Down

0 comments on commit 6892982

Please sign in to comment.