Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1340815
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3] ARM: omap2: mark unused functions as __maybe_unused |
| Date | 2016-02-23 17:10 +0100 |
| Message-ID | <r5nHb-7N8-13@gated-at.bofh.it> (permalink) |
| References | <r5lFo-6dV-25@gated-at.bofh.it> <r5lFo-6dV-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Arnd Bergmann <arnd@arndb.de> [160223 05:58]: > The omap_generic_init() and omap_hwmod_init_postsetup() functions are > used in the initialization for all OMAP2+ SoC types, but in the > extreme case that those are all disabled, we get a warning about > unused code: > > arch/arm/mach-omap2/io.c:412:123: error: 'omap_hwmod_init_postsetup' defined but not used [-Werror=unused-function] > arch/arm/mach-omap2/board-generic.c:30:123: error: 'omap_generic_init' defined but not used [-Werror=unused-function] > > This annotates both as __maybe_unused to shut up that warning. Looks OK to me: Acked-by: Tony Lindgren <tony@atomide.com>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/3] ARM: omap2: mark unused functions as __maybe_unused Arnd Bergmann <arnd@arndb.de> - 2016-02-23 15:00 +0100 Re: [PATCH 1/3] ARM: omap2: mark unused functions as __maybe_unused Tony Lindgren <tony@atomide.com> - 2016-02-23 17:10 +0100
csiph-web