]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: s3c64xx: mark regulator init data as unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Jan 2016 14:50:37 +0000 (15:50 +0100)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 1 Feb 2016 01:27:26 +0000 (10:27 +0900)
commita113b057615b6ea96dd72262fe1d879f864b8fbf
tree3427d86c0ec5e434b9bfdee493ddf61fbb8291f0
parent8db9a2026db33971dc7e60ffa7d6abee694a3f0c
ARM: s3c64xx: mark regulator init data as unused

The smdk6410 board defines lots of regulator settings, but uses
most of them only in certain configurations, and otherwise leaves
them without any references, so we get lots of randconfig warnings
about them:

mach-s3c64xx/mach-smdk6410.c:303:35: error: 'smdk6410_vddarm' defined but not used [-Werror=unused-variable]
mach-s3c64xx/mach-smdk6410.c:316:35: error: 'smdk6410_vddint' defined but not used [-Werror=unused-variable]
mach-s3c64xx/mach-smdk6410.c:327:35: error: 'smdk6410_vddhi' defined but not used [-Werror=unused-variable]
mach-s3c64xx/mach-smdk6410.c:335:35: error: 'smdk6410_vddpll' defined but not used [-Werror=unused-variable]
mach-s3c64xx/mach-smdk6410.c:343:35: error: 'smdk6410_vdduh_mmc' defined but not used [-Werror=unused-variable]

This marks all regulator_init_data structures in this file as
__maybe_unused, indicating that we don't care whether there
are any references or not in a given configuration.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-s3c64xx/mach-smdk6410.c