Received: by 10.223.148.5 with SMTP id 5csp7570993wrq; Thu, 18 Jan 2018 07:00:29 -0800 (PST) X-Google-Smtp-Source: ACJfBosDuHc+cVvE8bXVEMMyMiKr2r9kUTjuhJDdXPX3XSnb2zDID45MmAXbgKsbHvNUYROMuGTN X-Received: by 10.101.73.131 with SMTP id r3mr13916809pgs.76.1516287629490; Thu, 18 Jan 2018 07:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516287629; cv=none; d=google.com; s=arc-20160816; b=KcRVlRaUsgcS3MGFJfBoXbmFDVDL5LLU+UWVO6Ye6KDs+R+E/0yUlHMQdFuNlCFOH7 yIym1WPnLVFp4YFIZMdAajZMHniN/cpCw979NDEegn4zUjek3e+30qMn/Oh7tL4LiWHI 9AqD7FCkNEka8VOXzWgRojdXJoHs6EZ0tvXBRhzpU+hOGSqB9TPShyfp6uO2MtatGysH ax8wXC6PN82DQwcXpyZ5TYE6YeWl8qqwdNOhOluSQmQAXEPD9fvr2j7JCI8ledESSiye PJBE+hMOxYEdVvQJypXcA9xbcKeoF1Ues1h+JO8rCSxvNCbqlP1mgC4n1vJ21JZ/8hrD o5Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=M6T6YiJNcT8g+/erMTnZALgqyE8ZVmofBElOZebZo4Y=; b=j/aP8XOw4CqTxUZqZ3wrBp+qwJkb0xCTBj9spMwVV3ierDk19UgPKCFGSzxI+V2MtT Q/1HDq4EpXZoLMrMcVRAAEoFsO/Gkmsa8/XHhAqVBImWW1dBtGTOR2h2rN6oJIM6IcW/ LVP+oyQi/CUiOPZKOaFR5ccULj4O4cG4txd2713JyseS0rbdaL16uuzY+JKZVtEeDZk5 uZvzNH1myQbCIWaGwr6mvi3i3mEaM60pSj9O5JCVRUtm8uC/0N4nQkobhz1VZE4DQJl/ Nuxc/Xzm2LxZ95/aIxUGyXTk6FLxbT7toHa3471rB5VLtSdHwbQms9ebTrg/5qZSec/f J1+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si6936643pfz.415.2018.01.18.07.00.15; Thu, 18 Jan 2018 07:00:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756176AbeARNRG (ORCPT + 99 others); Thu, 18 Jan 2018 08:17:06 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:38497 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756028AbeARNRF (ORCPT ); Thu, 18 Jan 2018 08:17:05 -0500 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ecA3x-00039Y-5Q; Thu, 18 Jan 2018 14:17:01 +0100 Received: from [IPv6:2001:470:7eea:1122:dc84:99c1:396c:9792] (unknown [IPv6:2001:470:7eea:1122:dc84:99c1:396c:9792]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mkl@blackshift.org", Issuer "StartCom Class 1 Client CA" (not verified)) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 31FBD2C9ED8; Thu, 18 Jan 2018 13:16:59 +0000 (UTC) Subject: Re: [PATCH] can: m_can: mark runtime-PM handlers as __maybe_unused To: Arnd Bergmann , Wolfgang Grandegger Cc: Mario Huettel , Faiz Abbas , Oliver Hartkopp , Quentin Schulz , Franklin S Cooper Jr , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180118130513.506569-1-arnd@arndb.de> From: Marc Kleine-Budde Message-ID: <54b08b88-493f-a39e-db00-194ba91dcedf@pengutronix.de> Date: Thu, 18 Jan 2018 14:16:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180118130513.506569-1-arnd@arndb.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QsoqBId3iOzhTL4wJEBBVEJNArre4yqYv" X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QsoqBId3iOzhTL4wJEBBVEJNArre4yqYv Content-Type: multipart/mixed; boundary="7NirtgnNqJA2XJZe6PpVrbzWvFiL1WfUB"; protected-headers="v1" From: Marc Kleine-Budde To: Arnd Bergmann , Wolfgang Grandegger Cc: Mario Huettel , Faiz Abbas , Oliver Hartkopp , Quentin Schulz , Franklin S Cooper Jr , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <54b08b88-493f-a39e-db00-194ba91dcedf@pengutronix.de> Subject: Re: [PATCH] can: m_can: mark runtime-PM handlers as __maybe_unused References: <20180118130513.506569-1-arnd@arndb.de> In-Reply-To: <20180118130513.506569-1-arnd@arndb.de> --7NirtgnNqJA2XJZe6PpVrbzWvFiL1WfUB Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable On 01/18/2018 02:04 PM, Arnd Bergmann wrote: > Building without CONFIG_PM results in a harmless warning: >=20 > drivers/net/can/m_can/m_can.c:1763:12: error: 'm_can_runtime_resume' de= fined but not used [-Werror=3Dunused-function] > drivers/net/can/m_can/m_can.c:1752:12: error: 'm_can_runtime_suspend' d= efined but not used [-Werror=3Dunused-function] >=20 > Marking the functions as __maybe_unused lets the compiler > silently drop them instead. >=20 > Fixes: cdf8259d6573 ("can: m_can: Add PM Support") > Signed-off-by: Arnd Bergmann Tnx - applied. However all archs using this driver have mandatory PM support and the driver depends on it. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --7NirtgnNqJA2XJZe6PpVrbzWvFiL1WfUB-- --QsoqBId3iOzhTL4wJEBBVEJNArre4yqYv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE4bay/IylYqM/npjQHv7KIOw4HPYFAlpgnjUACgkQHv7KIOw4 HPZJEgf/cm/hMOFlCr4NTbfn2Wtol4AKxUVBxfIiP2+0KJXgOsNUrS44GWoO1kuO Fr/BEf+rXsVg/ev74GhE4nPrab09OgZQfzdbRe4LjCG1lwA0en4XlYXYiIrtbH2w DDmdu+9ZwBYNxmz6iE19lti0l+HAt+BMmJk2bL+mS2NFtjTyg7QOGYkCsGjPnbJH O1GwPwI9uMbUGDHTglvNWyo6nzcpwBi2OM246Ko7oiabrH+AtsPSmVk6SIVgj4R8 0dunRZY9jH+q1Y0mKAYvKh7Czo0Zpej1jRyqAKNuo7ygW8xIOD1s8UVFjjWS9i1W 7Tw/JstkCwGd/ZyfTguaDMdl347Nhw== =22xJ -----END PGP SIGNATURE----- --QsoqBId3iOzhTL4wJEBBVEJNArre4yqYv--