Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4146245pxb; Mon, 27 Sep 2021 10:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLdrJdpA8W0SRjHP3JkeY6dJV4zX0ZC18zn2bM01/GdzmhdGt1N1OIrYR2mLdEM9tC/5xE X-Received: by 2002:a17:902:aa4a:b0:13d:c88d:4db2 with SMTP id c10-20020a170902aa4a00b0013dc88d4db2mr1048763plr.66.1632763166538; Mon, 27 Sep 2021 10:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763166; cv=none; d=google.com; s=arc-20160816; b=MIAxRSmqrEyTkHiMz6ozg8h/fcOFr1p9seWq6D5zXMT5xBMI4Okznx2uJlLt3zXSz6 Iew12qoJzjCbh10ni3sqgBAYrAj/jJ40W77+xm0gkbCkXhsOZGSURxHCxqe0zOa0vIoh S2RSoKCmAfwNcqCr7OiYzMReYbSeEn+2JFTp/caWYUoWSnZ0bK71wu3noiNXnoKIBPvZ 0zfnZmsyO9fYm57i71awL4JmjcEM9OnAS01SmG3QlrYXptwCprsZiVk9da2B6v4Hc4+e ioMoo4DWgmf+mp8y0Zs1AMJo06Vlli/ak/J57ziOAgrDotBkgaRfUKkxbroJzlJHWu9/ NmDw== 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=i0R50S7YXigKyFwCskqxbh1TL/Tn5q3mkS3i+QYq8cU=; b=WJHfGHNXE2+UHCzp4gvYLY5iFneefSRK/xQmMNdGJL0KE3ySx+7VaTxPt0F3TekIF2 vLhr6c6Hqf9Gw9UeiYf4tjDPmSDxZVaHQTsOJDgJCOzC2jBys45/4nTxgFzyw755MTnO WqGzTseiPL1aUAJj7hYQ88vX4Q6dJgzoCiJVpSTjgVacdGDe+8xnfpWJOCJNJSVJZC54 54yx6LjbsqCgQH/pIbt4VIQBlj3nukKf6WJ+f0oMpVBAhxEjtiLG+ablvvtzLux5E2Zj BrX5p3bbEVS9wqcauzUN2ZEfQzLYxJIS0NAXC6zVqNJRSK0TVuUuK7DnC02XAFn87ny4 L6Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IiTBeyEx; 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 9si20889061pll.311.2021.09.27.10.19.12; Mon, 27 Sep 2021 10:19:26 -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=IiTBeyEx; 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 S236775AbhI0RUC (ORCPT + 99 others); Mon, 27 Sep 2021 13:20:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:53906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235739AbhI0RPb (ORCPT ); Mon, 27 Sep 2021 13:15:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ADC1A6138B; Mon, 27 Sep 2021 17:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632762662; bh=aXLmOY90TRxwWn1nxs/VzEt9fTzOlYxaZvSCB50OY0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IiTBeyEx+5toSdG88jLuA0HWwsOg0A3NO6woDfbTQRMck2eg+sonZECKhuvgcB5jp OVH8UJkKmXqsJZ0bsZISByn787/hh2qQdoPeSYJdFJsCzUrVcGNMIpEay67//R0UeV xcypYloIx/D19dzUGhr06KDh8hxdRQXnaSanWmHE= 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.10 097/103] spi: Fix tegra20 build with CONFIG_PM=n Date: Mon, 27 Sep 2021 19:03:09 +0200 Message-Id: <20210927170229.125778530@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210927170225.702078779@linuxfoundation.org> References: <20210927170225.702078779@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 f7c832fd4003..669fc4286231 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1201,7 +1201,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); @@ -1213,7 +1213,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