ARM: mach-omap2: gpmc: Fix warning when CONFIG_ARM_LPAE=y
Subsystems (5)
PATCH 1/1 ARM: mach-omap2: gpmc: Fix warning when CONFIG_ARM_LPAE=y
From: Fabio Estevam <[email protected]>
When CONFIG_ARM_LPAE=y the following build warning is generated:
arch/arm/mach-omap2/gpmc.c:1495:4: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
According to Documentation/printk-formats.txt '%pa' can be used to properly print 'resource_size_t'.
--- arch/arm/mach-omap2/gpmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/gpmc.c +2 -2
@@ -1491,8 +1491,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,*/ ret =gpmc_cs_remap (cs, res.start);if (ret <0 ) { -dev_err (&pdev->dev,"cannot remap GPMC CS %d to 0x%x\n" , - cs, res.start); +dev_err (&pdev->dev,"cannot remap GPMC CS %d to %pa\n" , + cs, &res.start); goto err; }
Signature · 1 line
1.8.1.2
PATCH 1/1 ARM: mach-omap2: gpmc: Fix warning when CONFIG_ARM_LPAE=y
Quoted 11 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
When
CONFIG_ARM_LPAE=ythe following build warning is generated:
arch/arm/mach-omap2/gpmc.c:1495:4: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]According to
Documentation/printk-formats.txt'%pa' can be used to properly print 'resource_size_t'.Reported-by Kevin Hilman <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
Quoted 18 lines
--- arch/arm/mach-omap2/gpmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-omap2/gpmc.c +2
-2@@ -1491,8 +1491,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,*/ ret =gpmc_cs_remap (cs, res.start);if (ret <0 ) { -dev_err (&pdev->dev,"cannot remap GPMC CS %d to 0x%x\n" , - cs, res.start); +dev_err (&pdev->dev,"cannot remap GPMC CS %d to %pa\n" , + cs, &res.start); goto err; }
Tony Lindgren
maintainerPATCH 1/1 ARM: mach-omap2: gpmc: Fix warning when CONFIG_ARM_LPAE=y
Quoted 8 lines · Kevin Hilman
Quoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
When
CONFIG_ARM_LPAE=ythe following build warning is generated:
arch/arm/mach-omap2/gpmc.c:1495:4: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
Quoted 7 lines
Quoted 5 lines
According to
Documentation/printk-formats.txt'%pa' can be used to properly print 'resource_size_t'.Reported-by Kevin Hilman <[email protected]>Signed-off-by Fabio Estevam <[email protected]>Acked-by Kevin Hilman <[email protected]>
Thanks applying into omap-for-v3.12/fixes.
Tony
Quoted 18 lines
Quoted 18 lines
--- arch/arm/mach-omap2/gpmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-omap2/gpmc.c +2
-2@@ -1491,8 +1491,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,*/ ret =gpmc_cs_remap (cs, res.start);if (ret <0 ) { -dev_err (&pdev->dev,"cannot remap GPMC CS %d to 0x%x\n" , - cs, res.start); +dev_err (&pdev->dev,"cannot remap GPMC CS %d to %pa\n" , + cs, &res.start); goto err; }