Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1028438ybj; Thu, 7 May 2020 13:05:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJPUbjzQ66kFhWBlRMuXu/m53FZBVz/ie3EpD66fcEc+mvdKxlrjKprua/ZG2GAAThupijO X-Received: by 2002:a50:9f23:: with SMTP id b32mr12604677edf.183.1588881936265; Thu, 07 May 2020 13:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588881934; cv=none; d=google.com; s=arc-20160816; b=S9iUWKxZHYlkcl6zellQX+DmPlG4hg7EpC6OK4IWRpH+ahUVlmf/lOCQesinnAiEi6 Zkglx65QP6omA58oVoNAaN27O0iLOg4YZtSp+rPMqU7DGTx2a00kfVV9GHVcLOGRHvhI VZL1uJG2IovonUkxVjDEdnplZ0iDng2hQiXubjXalXlp+pLHdRJvG8SkCxgOPet5DW/T 2AfEhqtYnQncgAL9NX3/ti4DB7kyaU/ysJOGC+crXrYXcmBLe1Z6j8Q1/Re/M++xAbxr oCTuei2bFS4b05HYP53sRRmPjehtb1E3k6QkaFz8isZ1vO8XHkDsUPBQtTyyhVgbs7HI hY/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VAjjagUIED4AtWW/kvDiQTKteVZtsEvk40+7qXQuD8o=; b=I6b71becY9yhb/1ZpuL9R2v5SKGoWO6lE9Ivq0OQdA6uRq95/GVG52dIy7CWKhCwQB EHNdju4f2fOYCXf/MenpuFUnsRSBFzZRNvduvaI3TYVSb424DPSFwLXm+SkHPfDh40WZ 7cHARqhk741NCQ3evV8HFGQeE7bRBWYzsBntLZU5zFa/0QCLSic82Pp05p0aSj8+4KqU aYDqskh5gp6dVkPrM10wWfMCFGiFKt8pd2uSs0/81h3RBihXnXJTQms6qxWkqP2FQe6X 8/A4X1xny/HIC3jMULVQGjIKFrfCev8P/GoybSzOHcThckwcOSLYtL1qI5XLjYESa/QY pGzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MnIAbXnc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si3774574eju.123.2020.05.07.13.05.08; Thu, 07 May 2020 13:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MnIAbXnc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728238AbgEGUCo (ORCPT + 99 others); Thu, 7 May 2020 16:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726320AbgEGUCo (ORCPT ); Thu, 7 May 2020 16:02:44 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36F9C05BD43; Thu, 7 May 2020 13:02:43 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id e16so7890201wra.7; Thu, 07 May 2020 13:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VAjjagUIED4AtWW/kvDiQTKteVZtsEvk40+7qXQuD8o=; b=MnIAbXnc+k4yZvtOe8rJ3kc7H1BzlG2+54F3qKz/Vgklw08oyxR4nImID0g7aMwKUE rvvghPTdsyzr2WqXEMvSlSX4+lsY8P+L9QFY9BywTIsqlyy2AsE6Osk9rRzxGxZ591SG 14/wlPmv4C+gHtk3YgW4eX8ZpnYcJW+3qvw/0bazCqclWbKCe3VKIz5aMOXZWW3cwbNR FYssSJ6CERRLoeT1aD0RaE29B41HMmsbNWxJ2aYKiU32lCX7OTNKRDfjt8oqzxtagTyY fiVAes92mbgF2h5H6K7ks6taNGrpP5SGzEjAw0j/z49QzZDtniaUeFYBnUBRoJTos1yP UAMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VAjjagUIED4AtWW/kvDiQTKteVZtsEvk40+7qXQuD8o=; b=gbjCxiPLvTDIBYVpbyxaq4r299ZyMk2aC8NuBlKxU6RseKsJYg/VMWuFGZzcq10Ryn jmXAKm5Awd0O3tsvcDXyZpCVRFOO5m4wEjK8daUxC/2MpKIZr0YPEzshdUxgH8dkpOHv VTi+2+TsQpFKx4galeT0WGB/SngRERBBkToWeqt8kRFRksLzkeZU0KoIASrRwmX0hdzk +uovab7tIztSMbhRQJfpUbLUJHs9+xNZGUSaXVfABIeQLN2Ouupy3LIBKPjDmOLC65Q+ c+rPUK/HSpGGB2dT1uIpi61jOkJZHn/ETvvciAj8i8geYLsJfHNemVkfDfPItdkca+Lo mJJA== X-Gm-Message-State: AGi0PuY2DRmiPfG5+M24kfp7qKH9IT8ym9hWmYVSv5U5nOyGRh+IAaKd 5d13fdaTATPYcZRABzlCSni7UMZKXTk= X-Received: by 2002:adf:8b45:: with SMTP id v5mr19024913wra.175.1588881762418; Thu, 07 May 2020 13:02:42 -0700 (PDT) Received: from localhost (p2E5BE57B.dip0.t-ipconnect.de. [46.91.229.123]) by smtp.gmail.com with ESMTPSA id n6sm9111679wmc.28.2020.05.07.13.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 13:02:40 -0700 (PDT) Date: Thu, 7 May 2020 22:02:40 +0200 From: Thierry Reding To: Arnd Bergmann Cc: Jonathan Hunter , Thierry Reding , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memory: tegra: avoid unused function warnings Message-ID: <20200507200240.GA2981633@ulmo> References: <20200408190043.532711-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20200408190043.532711-1-arnd@arndb.de> User-Agent: Mutt/1.13.1 (2019-12-14) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 08, 2020 at 09:00:30PM +0200, Arnd Bergmann wrote: > The suspend/resume functions have no callers depending on > configuration, so they must be marked __maybe_unused to > avoid these harmless warnings: >=20 > drivers/memory/tegra/tegra186.c:1578:12: error: 'tegra186_mc_resume' defi= ned but not used [-Werror=3Dunused-function] > 1578 | static int tegra186_mc_resume(struct device *dev) > | ^~~~~~~~~~~~~~~~~~ > drivers/memory/tegra/tegra186.c:1573:12: error: 'tegra186_mc_suspend' def= ined but not used [-Werror=3Dunused-function] > 1573 | static int tegra186_mc_suspend(struct device *dev) > | ^~~~~~~~~~~~~~~~~~~ >=20 > Fixes: 177602b00641 ("memory: tegra: Add system sleep support") > Signed-off-by: Arnd Bergmann > --- > drivers/memory/tegra/tegra186.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied to for-5.8/memory, thanks. Thierry --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl60aV4ACgkQ3SOs138+ s6HB4xAAtc0jHXbJjHqyz+xVNP+KreaFGVRf3w9YmnJhAFFOhWaUf0/5UUOKwzp9 5XwyYYa5cSzJtk/AOGPgfEtGF4pBx7KJKF+Sxhg8jVJXMfRwYc4q2wqoKsfbT42h fslFVb7sGWUiUtCvvkCFlDLw+8QhmbTqnG4zCSL4d/YdNqTPKAZIFrivP5LU9UZT m+VSSrSegwekwvHN1oWtoXIrO7j8tCoXHHjzvHH457ijv/s7QXW2GycnNstPOOIj KqLLCyrY7UPxJykiGBsO+tCmT8bo/xZKEFOTtxsZNFAmA6Ckzx5s1KA5EX8Gf/G6 zg/+9t1DATutn+USPq3yTznqN+OnN8R6xohhC5CjsxHSWsxmQwtaYH4rtr49sRp8 TaMtA3Rz4bD+8MUoT69fXC7xnj7fmXDZh2NwK4AnxlDvV+YFsz7Fj614IqOucDzj b/vXJkT4VwHjmUg9yIAKDiTVSeT/y25xWtI8uEbEJKHNCRv9ybfZOqi7gnAIsa9M oSCrBL8W8aDsze4kpbWnOvadFWEOFErhWShPTA5I+sgYCvstY9OXg+75/0QBa/1L +YooiDJWhAjlM+o/f+2Unb/DB2VQsIToYTTu6VkKe66+9xZ3ki2qt149sEKu4piQ VTGmTotNkWBSKivcBqU10+rJPbNmeJYFNGfWiLC+Jz2SkNaeU+g= =xt3U -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--