From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754093AbcASNEI (ORCPT ); Tue, 19 Jan 2016 08:04:08 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:41426 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbcASND5 (ORCPT ); Tue, 19 Jan 2016 08:03:57 -0500 From: Kalle Valo To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, Hauke Mehrtens , =?utf-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , linux-kernel@vger.kernel.org, Michael Buesch , netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused References: <8128014.DbbgBtKY3z@wuerfel> <8760ywd5fe.fsf@kamboji.qca.qualcomm.com> <6063400.39vor3soEb@wuerfel> Date: Tue, 19 Jan 2016 15:03:45 +0200 In-Reply-To: <6063400.39vor3soEb@wuerfel> (Arnd Bergmann's message of "Mon, 18 Jan 2016 20:39:56 +0100") Message-ID: <877fj567ri.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > 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 > Fixes: 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code") > Acked-by: Michael Buesch > --- > Resent to linux-wireless as requested Thanks, and sorry for the hassle. I'm planning to push this to 4.5. -- Kalle Valo