From: Arnd Bergmann <arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org Cc: "Kalle Valo" <kvalo@codeaurora.org>, linux-mips@linux-mips.org, "Hauke Mehrtens" <hauke@hauke-m.de>, "Rafał Miłecki" <zajec5@gmail.com>, linux-kernel@vger.kernel.org, "Michael Buesch" <m@bues.ch>, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused Date: Mon, 18 Jan 2016 20:39:56 +0100 [thread overview] Message-ID: <6063400.39vor3soEb@wuerfel> (raw) In-Reply-To: <8760ywd5fe.fsf@kamboji.qca.qualcomm.com> The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning: drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function] This annotates the ssb_bus_register function as __maybe_unused to shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code") Acked-by: Michael Buesch <m@bues.ch> --- Resent to linux-wireless as requested diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index cde5ff7529eb..d1a750760cf3 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -613,9 +613,10 @@ out: return err; } -static int ssb_bus_register(struct ssb_bus *bus, - ssb_invariants_func_t get_invariants, - unsigned long baseaddr) +static int __maybe_unused +ssb_bus_register(struct ssb_bus *bus, + ssb_invariants_func_t get_invariants, + unsigned long baseaddr) { int err;
WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused Date: Mon, 18 Jan 2016 20:39:56 +0100 [thread overview] Message-ID: <6063400.39vor3soEb@wuerfel> (raw) In-Reply-To: <8760ywd5fe.fsf@kamboji.qca.qualcomm.com> The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning: drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function] This annotates the ssb_bus_register function as __maybe_unused to shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code") Acked-by: Michael Buesch <m@bues.ch> --- Resent to linux-wireless as requested diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index cde5ff7529eb..d1a750760cf3 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -613,9 +613,10 @@ out: return err; } -static int ssb_bus_register(struct ssb_bus *bus, - ssb_invariants_func_t get_invariants, - unsigned long baseaddr) +static int __maybe_unused +ssb_bus_register(struct ssb_bus *bus, + ssb_invariants_func_t get_invariants, + unsigned long baseaddr) { int err;
next prev parent reply other threads:[~2016-01-18 19:40 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-01-13 22:51 [PATCH] ssb: host_soc depends on sprom Arnd Bergmann 2016-01-13 22:51 ` Arnd Bergmann 2016-01-14 6:46 ` Kalle Valo 2016-01-14 6:46 ` Kalle Valo 2016-01-14 21:46 ` David Miller 2016-01-14 21:46 ` David Miller 2016-01-14 23:13 ` [PATCH, RESEND] ssb: mark ssb_bus_register as __maybe_unused Arnd Bergmann 2016-01-14 23:13 ` Arnd Bergmann 2016-01-16 12:10 ` Kalle Valo 2016-01-16 12:10 ` Kalle Valo 2016-01-16 14:44 ` Rafał Miłecki 2016-01-16 14:44 ` Rafał Miłecki 2016-01-16 14:44 ` Rafał Miłecki 2016-01-18 8:26 ` Kalle Valo 2016-01-18 8:26 ` Kalle Valo 2016-01-18 8:26 ` Kalle Valo 2016-01-18 8:26 ` Kalle Valo 2016-01-18 16:53 ` ssb: Set linux-wireless as MAINTAINERS list Michael Büsch 2016-01-18 19:09 ` Rafał Miłecki 2016-01-18 19:09 ` Rafał Miłecki 2016-01-18 19:09 ` Rafał Miłecki 2016-01-19 13:04 ` Kalle Valo 2016-01-19 13:04 ` Kalle Valo 2016-01-19 19:25 ` Kalle Valo 2016-01-19 19:25 ` Kalle Valo 2016-01-19 19:25 ` Kalle Valo 2016-01-19 19:25 ` Kalle Valo 2016-01-18 19:39 ` Arnd Bergmann [this message] 2016-01-18 19:39 ` [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused Arnd Bergmann 2016-01-19 13:03 ` Kalle Valo 2016-01-19 13:03 ` Kalle Valo 2016-01-19 13:03 ` Kalle Valo 2016-01-19 19:26 ` [RESEND^2] " Kalle Valo 2016-01-19 19:26 ` Kalle Valo 2016-01-19 19:26 ` Kalle Valo 2016-01-19 19:26 ` Kalle Valo 2016-01-14 8:45 ` [PATCH] ssb: host_soc depends on sprom Rafał Miłecki 2016-01-14 8:45 ` Rafał Miłecki 2016-01-14 8:45 ` Rafał Miłecki
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=6063400.39vor3soEb@wuerfel \ --to=arnd@arndb.de \ --cc=hauke@hauke-m.de \ --cc=kvalo@codeaurora.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mips@linux-mips.org \ --cc=linux-wireless@vger.kernel.org \ --cc=m@bues.ch \ --cc=netdev@vger.kernel.org \ --cc=zajec5@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.