Skip to content

Commit a066318

Browse files
committed
ARM: s3c24xx: fix Wunused-variable warning on !MMU
If S3C24xx machine code is build without CONFIG_MMU, the iotable() macros do nothing so annotate structures to get rid of warnings: arch/arm/mach-s3c24xx/common.c:140:24: warning: ‘s3c_iodesc’ defined but not used [-Wunused-variable] arch/arm/mach-s3c24xx/s3c2410.c:49:24: warning: ‘s3c2410_iodesc’ defined but not used [-Wunused-variable] arch/arm/mach-s3c24xx/s3c2412.c:60:24: warning: ‘s3c2412_iodesc’ defined but not used [-Wunused-variable] arch/arm/mach-s3c24xx/s3c2416.c:54:24: warning: ‘s3c2416_iodesc’ defined but not used [-Wunused-variable] arch/arm/mach-s3c24xx/s3c2443.c:45:24: warning: ‘s3c2443_iodesc’ defined but not used [-Wunused-variable] arch/arm/mach-s3c24xx/s3c244x.c:44:24: warning: ‘s3c244x_iodesc’ defined but not used [-Wunused-variable] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20200910154150.3318-2-krzk@kernel.org
1 parent 7be0d19 commit a066318

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

arch/arm/mach-s3c24xx/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static struct cpu_table cpu_ids[] __initdata = {
137137

138138
/* minimal IO mapping */
139139

140-
static struct map_desc s3c_iodesc[] __initdata = {
140+
static struct map_desc s3c_iodesc[] __initdata __maybe_unused = {
141141
IODESC_ENT(GPIO),
142142
IODESC_ENT(IRQ),
143143
IODESC_ENT(MEMCTRL),

arch/arm/mach-s3c24xx/s3c2410.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
/* Initial IO mappings */
4848

49-
static struct map_desc s3c2410_iodesc[] __initdata = {
49+
static struct map_desc s3c2410_iodesc[] __initdata __maybe_unused = {
5050
IODESC_ENT(CLKPWR),
5151
IODESC_ENT(TIMER),
5252
IODESC_ENT(WATCHDOG),

arch/arm/mach-s3c24xx/s3c2412.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static inline void s3c2412_init_gpio2(void)
5757

5858
/* Initial IO mappings */
5959

60-
static struct map_desc s3c2412_iodesc[] __initdata = {
60+
static struct map_desc s3c2412_iodesc[] __initdata __maybe_unused = {
6161
IODESC_ENT(CLKPWR),
6262
IODESC_ENT(TIMER),
6363
IODESC_ENT(WATCHDOG),

arch/arm/mach-s3c24xx/s3c2416.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#include "nand-core.h"
5252
#include "spi-core.h"
5353

54-
static struct map_desc s3c2416_iodesc[] __initdata = {
54+
static struct map_desc s3c2416_iodesc[] __initdata __maybe_unused = {
5555
IODESC_ENT(WATCHDOG),
5656
IODESC_ENT(CLKPWR),
5757
IODESC_ENT(TIMER),

arch/arm/mach-s3c24xx/s3c2443.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "nand-core.h"
4343
#include "spi-core.h"
4444

45-
static struct map_desc s3c2443_iodesc[] __initdata = {
45+
static struct map_desc s3c2443_iodesc[] __initdata __maybe_unused = {
4646
IODESC_ENT(WATCHDOG),
4747
IODESC_ENT(CLKPWR),
4848
IODESC_ENT(TIMER),

arch/arm/mach-s3c24xx/s3c244x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include "nand-core.h"
4242
#include "regs-dsc.h"
4343

44-
static struct map_desc s3c244x_iodesc[] __initdata = {
44+
static struct map_desc s3c244x_iodesc[] __initdata __maybe_unused = {
4545
IODESC_ENT(CLKPWR),
4646
IODESC_ENT(TIMER),
4747
IODESC_ENT(WATCHDOG),

0 commit comments

Comments
 (0)