Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4155611pxb; Mon, 27 Sep 2021 10:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgiMniabIYEh8kmKbmZi6Bm92SfCxaVxtgJbiuXgMRFchauOSD3j/a4V/gOUoHNwshuntj X-Received: by 2002:aa7:94aa:0:b0:43e:2cf:d326 with SMTP id a10-20020aa794aa000000b0043e02cfd326mr836845pfl.62.1632763871728; Mon, 27 Sep 2021 10:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763871; cv=none; d=google.com; s=arc-20160816; b=SUcue3QiswvWQoXaV6wJjAjVxnB1nf2J4ZVlLaXdjkly93Ns/Ii+/O1czUuWGPyIk8 KiIBqbZTOuVAzTsqwkGD+R+dzD/FjESI9ZrbKXpA9Z4EW2qLQZ7mt1ouScWCqJLrqqIa osfu510eP+3n/cBqU4WQpRBFFHF5PnlEjHpZO/q9ltNhxPnXrTO2nF0Y1C61RerBeB9Q LOMiwBCgPBMUKgFRkX7FJrzgx09VY1gTKwWf0lmiQ9EK0ZXACgcLgSfi7ordTAXWWeuO bZwZYLt/XvZ4j1vJ953MBTViNqMnsD4okj1dvjzj6O2dDPks+3KHzc1Y8XrI1VV7FGZR yD6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gF/CAlxwck4RLVG1Zo3UUg9fCMxNWC9bNNnHSzcLdmY=; b=q7q7J+O5+B8aiIEJTm3wZDu/uaGtl1ZwvshW90o7mtBQJHAg2EmMz0HRB8rjOhoODV 0XA/E2BMf4ds7ZI5XmEg2VEcHO5uUNVvWsKLh+eRUlJFspQNjh3m/uAKPKvTjFw3fmm6 fWMN8Z2evqdFQQN4vsYMSjAQUrn1eESYVSA4yUfov11t92rA/Jed7w2DxVvyH2/h7+K9 1wsRbfRTslessGvtQXuc64QjT1ii2JDx73+hUJcR4ev8zK7H8JJL4GQZtKChTowgi0CQ 1KPNy+yBj/PLD/SpMSdeB6uHXsYjWnPWsv4PbLEutlE5sXCwiyx4TJboo7NHUvHJaAe/ PH5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1T9PJRGF; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y71si22204198pgd.311.2021.09.27.10.30.54; Mon, 27 Sep 2021 10:31:11 -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=@linuxfoundation.org header.s=korg header.b=1T9PJRGF; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237325AbhI0Rbq (ORCPT + 99 others); Mon, 27 Sep 2021 13:31:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:41016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237799AbhI0R2P (ORCPT ); Mon, 27 Sep 2021 13:28:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8E9061244; Mon, 27 Sep 2021 17:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632763047; bh=hEtB7/NWNhg/U6fpfGCSf5n7LdhTcBNm1sN4XdlKG1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1T9PJRGFFNS0UUPZoihZKLDEqwCccmAfGmLr7S+S+qhGqiKaC24gyT8gb34/qYM3w p/odMn07sb4hUD8da+rws4gL3miACYwY39m97oqCh/LEt1XUF7EGWifgmjM++DJfA8 NcD7TvYVtPYsKhDiXHC06kQgvPycDwOxw5GTYHMI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Linus Torvalds , Sasha Levin Subject: [PATCH 5.14 147/162] spi: Fix tegra20 build with CONFIG_PM=n Date: Mon, 27 Sep 2021 19:03:13 +0200 Message-Id: <20210927170238.524745234@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210927170233.453060397@linuxfoundation.org> References: <20210927170233.453060397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds [ Upstream commit efafec27c5658ed987e720130772f8933c685e87 ] Without CONFIG_PM enabled, the SET_RUNTIME_PM_OPS() macro ends up being empty, and the only use of tegra_slink_runtime_{resume,suspend} goes away, resulting in drivers/spi/spi-tegra20-slink.c:1200:12: error: ‘tegra_slink_runtime_resume’ defined but not used [-Werror=unused-function] 1200 | static int tegra_slink_runtime_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/spi/spi-tegra20-slink.c:1188:12: error: ‘tegra_slink_runtime_suspend’ defined but not used [-Werror=unused-function] 1188 | static int tegra_slink_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mark the functions __maybe_unused to make the build happy. This hits the alpha allmodconfig build (and others). Reported-by: Guenter Roeck Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- drivers/spi/spi-tegra20-slink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 6a726c95ac7a..dc1a6899ba3b 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1206,7 +1206,7 @@ static int tegra_slink_resume(struct device *dev) } #endif -static int tegra_slink_runtime_suspend(struct device *dev) +static int __maybe_unused tegra_slink_runtime_suspend(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct tegra_slink_data *tspi = spi_master_get_devdata(master); @@ -1218,7 +1218,7 @@ static int tegra_slink_runtime_suspend(struct device *dev) return 0; } -static int tegra_slink_runtime_resume(struct device *dev) +static int __maybe_unused tegra_slink_runtime_resume(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct tegra_slink_data *tspi = spi_master_get_devdata(master); -- 2.33.0