Message ID | 20200715150632.409077-15-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp703056ilg; Wed, 15 Jul 2020 08:07:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmfxf9ASUV1c2YwwpAW2gEvw5uWG8a0YL2Bu49Ic/iawg1C8OAYifRoKBRutqDw1m/6caX X-Received: by 2002:a17:906:1b45:: with SMTP id p5mr9561097ejg.51.1594825641786; Wed, 15 Jul 2020 08:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594825641; cv=none; d=google.com; s=arc-20160816; b=RltNui/ySgez9nT0R8ZTi2EkqLZ0Qp8i/dEW8zK/FWdh+MmiT3wCju9LkK39/I/c2Y LO659ZuNmNRSQG1Cbj/x1YyXk9RdD1eEGF7zwhzT1XujprfbO7ADKJ9UX6UWsJJr70LZ +wex8SSXiroAmhGv1hUZZLTIGRROUrQnUUjXhWT+ZjyCpyH1B0XipoPzrFDWHU+jXcIZ zB9qayMIMTQj//TUry4KeCsvFblgr77tz7kiAWUbmg8pzFnE/qZCXlH8WwBKkN3q3ntF vrAVoFcMi0AlItuD4BXTev9lK0BIx5H2z/Q6TjnVRdRRE4KfKbDtsitpqed/8mqHvTLx eMOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=St/xAyCtrmRBWfYYcSn7juPr5Poh/NZ3n2rNrUrY394=; b=nzdWK/uho2niiRRHfmSAFxeH0CocS2RZC3oe7SVgAurMUw1jYwOap7SJ02EB5vWJX2 ir06SXWExkxv9pnsOYLmpUutBYMT/BizYqA+LIk8koPnRm0BnYC91a2FUrT0UnISY840 bIw8ILGFQUuGnAu1Y5P0iCn8VCYAf3SxbyLYLmf3xU+19eN6FkNIkAcsSge0DB9+Kg0M 67W4M49AdEkxqiowMzc5+g9yxyvJcHpPLNQYBhewoz+Ow0/me/oPmsnMf03s8raeKeAq 82cQ+FbZVC9LyTFcTkhMGl0csGkSg3vBExjPlmbeD3owXkeL208sNzuiIhFwFaSTF1V8 WfCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BYmhvu/P"; spf=pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-spi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf28si1525471edb.312.2020.07.15.08.07.21; Wed, 15 Jul 2020 08:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-spi-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=@linaro.org header.s=google header.b="BYmhvu/P"; spf=pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728127AbgGOPHM (ORCPT <rfc822;patch@linaro.org> + 2 others); Wed, 15 Jul 2020 11:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728043AbgGOPGz (ORCPT <rfc822; linux-spi@vger.kernel.org>); Wed, 15 Jul 2020 11:06:55 -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 B81C8C08C5DB for <linux-spi@vger.kernel.org>; Wed, 15 Jul 2020 08:06:54 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f2so3064118wrp.7 for <linux-spi@vger.kernel.org>; Wed, 15 Jul 2020 08:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=St/xAyCtrmRBWfYYcSn7juPr5Poh/NZ3n2rNrUrY394=; b=BYmhvu/PhXomekAXRVNla/c/6EiDYkDyIEEP+MnOTHWaO96GdMvSUBbWJS2c9+d7Jk VRcp05/uXtkltdnBCD3P4U/6uWXmTugA1wexZ81oTwI5iXU7B5eDg18v1fmgG2gpnKrY it07272+neTo2ZgSdaMpbMxWIRl/CJYkeFY2bH2Qc3ma0Q8+h02ZtLTMWgAnGuztvZYn ugk+ds7CLMSz5QoMkAHIgg+y7QLjfsXOlV07N2pPDjgbpagdKNJ8+SYYTPvMc5djiWwH 5awGcZaMqjxnB/PtmoiA5Wx4+EdazDc9VX+/311LH/1OaZcHs/cKfKmw2aCAutzqfQJB lAvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=St/xAyCtrmRBWfYYcSn7juPr5Poh/NZ3n2rNrUrY394=; b=PZbkgJntwgcT5VC3nAZVsk3WVGfT90ERwjMbSJfnqfAJw/9QvC2ArF4YJ6rfK/pLqn VwBRniJNnpA1qPY8Ij+BmO41/dXvCThvgP/EympLyiPmZnPfdxJeSc3su/uXML8uqshg uQKP75nKS7b1HxweVATKLRv67X0N4wUYDowuR/0d9rZfiYYtWOL8HkS6mOD02uiFRTZx GjDz/hb1a+HVEkqKCx6Gf/LJQ+SEl/6swrjWWIO5FpM/BlrZkCmX0oAruCRSerWZoCf/ v7whRZaezPj7Bg5lha5NVZrUwdBTLzZ+gZaVZXptFc+RR+ZFxpPVp4Ena+e0+0DwFHIG LLzA== X-Gm-Message-State: AOAM531mJ75Pf5S0rVK2jjS7GE23FiaqcQOfbkwOlE0mXIH2lk6TlN6I wQWmXDmuEhVQqEntZqj3g0HnIQ== X-Received: by 2002:adf:f6cb:: with SMTP id y11mr11810561wrp.100.1594825613486; Wed, 15 Jul 2020 08:06:53 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id w2sm3906140wrs.77.2020.07.15.08.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 08:06:52 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Sanjay R Mehta <sanju.mehta@amd.com> Subject: [PATCH 14/14] spi: spi-amd: Do not define 'struct acpi_device_id' when Date: Wed, 15 Jul 2020 16:06:32 +0100 Message-Id: <20200715150632.409077-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715150632.409077-1-lee.jones@linaro.org> References: <20200715150632.409077-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-spi.vger.kernel.org> X-Mailing-List: linux-spi@vger.kernel.org |
Series |
Rid W=1 warnings in SPI
|
expand
|
diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c index d0aacd4de1b9e..7f629544060db 100644 --- a/drivers/spi/spi-amd.c +++ b/drivers/spi/spi-amd.c @@ -294,11 +294,13 @@ static int amd_spi_probe(struct platform_device *pdev) return err; } +#ifdef CONFIG_ACPI static const struct acpi_device_id spi_acpi_match[] = { { "AMDI0061", 0 }, {}, }; MODULE_DEVICE_TABLE(acpi, spi_acpi_match); +#endif static struct platform_driver amd_spi_driver = { .driver = {
Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, struct 'spi_acpi_match' becomes defined but unused. Fixes the following W=1 kernel build warning(s): drivers/spi/spi-amd.c:297:36: warning: ‘spi_acpi_match’ defined but not used [-Wunused-const-variable=] 297 | static const struct acpi_device_id spi_acpi_match[] = { | ^~~~~~~~~~~~~~ Cc: Sanjay R Mehta <sanju.mehta@amd.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/spi/spi-amd.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1