From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F3BEC10F13 for ; Tue, 16 Apr 2019 12:42:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6FB64205ED for ; Tue, 16 Apr 2019 12:42:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fE5p0fNX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6FB64205ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eqJAczTlWV6DpeMLPKHJ56c51ZEKEeClSAWLvSFFaNY=; b=fE5p0fNXUsJnjPb/My72242do xd7QTCY5nCQkwxn5hlXTL+Noj9QegftvXbCe7MzHQoRofasORaPAzJ4RZh1U0coevTEI1Z6jnEcfb SkbOz8bR4lfEhBDpxhuPhFzyQaFWEj2tlm0tGY6GsdjpZDkJNdFJGYq5R692REwojmffJwR3Bi+Mf Fvc2k9dPxlcIF8KvaAicMSxNkN7nyqZvr042c7N0ikt5vJBJbxiKTaFgr9nbxEWWxBI1wimnjouV/ uphQBkR/W/No/HKb/CD2DdElcSOybHlNPG+b6M1Q+5dpgoEcrtOeg82XzOOKxGrQdp4DeZT+Z3904 Slm+cbT3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGNPX-0006Ad-7i; Tue, 16 Apr 2019 12:42:03 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGNPO-00060d-Ut for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2019 12:41:56 +0000 X-Originating-IP: 90.88.18.121 Received: from localhost (aaubervilliers-681-1-63-121.w90-88.abo.wanadoo.fr [90.88.18.121]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8E53F60008; Tue, 16 Apr 2019 12:41:52 +0000 (UTC) Date: Tue, 16 Apr 2019 14:41:52 +0200 From: Maxime Ripard To: Arnd Bergmann Subject: Re: [PATCH] mfd: sun6i-prcm: fix build warning for non-OF configurations Message-ID: <20190416124152.374wjfd6nczlkagv@flea> References: <20190416122506.3180853-1-arnd@arndb.de> MIME-Version: 1.0 In-Reply-To: <20190416122506.3180853-1-arnd@arndb.de> User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_054155_249416_EDFCB71D X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chen-Yu Tsai , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============5905772726432819858==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5905772726432819858== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2j6zfcc7locmltwc" Content-Disposition: inline --2j6zfcc7locmltwc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 16, 2019 at 02:24:59PM +0200, Arnd Bergmann wrote: > When CONFIG_OF is disabled, we get a harmless warning about an > unused variable: > > drivers/mfd/sun6i-prcm.c: In function 'sun6i_prcm_probe': > drivers/mfd/sun6i-prcm.c:151:22: error: unused variable 'np' [-Werror=unused-variable] > > Remove the variable and open-code the value in the only place > it is used, so it can get left out as well without CONFIG_OF. > > Fixes: a05a2e7998ab ("mfd: sun6i-prcm: Allow to compile with COMPILE_TEST") > Signed-off-by: Arnd Bergmann Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --2j6zfcc7locmltwc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLXNkAAKCRDj7w1vZxhR xeGSAQC/JAkcxmhcVfD5oZNQ+VOPcb9hPuhhpyamLhzQ3N6ykwD9FTntJhN49Jp2 3Enlorbcx57RfuGQ0gmbbhROHu/HAwU= =4Cnp -----END PGP SIGNATURE----- --2j6zfcc7locmltwc-- --===============5905772726432819858== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5905772726432819858==--