Message ID | 20200715150632.409077-14-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 v4csp703153ilg; Wed, 15 Jul 2020 08:07:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyN8B/L22PPrB07jouW0Wxy6E8YFO/HiUrEiYk0reFyQbSJX34OL7wAmiCrisZDhTl3y8P X-Received: by 2002:a05:6402:319b:: with SMTP id di27mr50306edb.133.1594825648868; Wed, 15 Jul 2020 08:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594825648; cv=none; d=google.com; s=arc-20160816; b=Zu0MVI6YLjiHy6vKWVjN2IJQykJGC2Avg8OpA8mdZQlF/SuJaP4Fv7/STVbOd5Oq3w Riic1l9HQlEtFIRu9CjXY/SWypMlJiZxFyhv52GsyxfTK8XQOJlSLahu8CL17CoSGTN+ sYFjANXVyigYmmZF+64Dm+0+iIYVQCG/uQLWcoWK3mqyrsXVtyB3zwNByUjvUOypxkN4 PMgsraGnbTlXmOjeXyZmxb2svKuQFwIf2QvhfgcUHt3FmjcnQQYvoygRRITX5Bv816TJ ME4OJ66p+lO9L5Cuon+Anb56FZWgCPEpG74+MPmco5EJBlQK2ofoJZc42Fxr/W6dtIFI oMKg== 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=AI7c50J2x+3VkfEYyAsOrnfGhBXfcF4lm0Ws/hDguDo=; b=tDN4yyq2EXkK2IuCwSsw9usvADI91/HOQf0bGda0eC7wt4GyjVsFSuDqr2yhEj//Fo veArUxg1R57YSnYWR/1DneGOFU5hUufvVgYzYlYS7tTrnOdJkq26bc8iCc1rK3pKy8fe z/n04cAXOrHRxrlccrIyZsGx+KB6JTqPTeBo16ke3TGO5dNyogWF6QjS1rsys+D6t8bw GUSAdlq1906JyBseELwWcA6NbDsFLWR2Ky/oInxaoRkkU9L7FP/8U5gcFwQx9aJvH0q7 sZkMOkslgJmKfW+C0sfaBSuTLNI5M7PlN1XpSyiRMOln5nqbd7C9EkesLGKTVhz5Ht0a OKuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OeStQ676; 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.28; Wed, 15 Jul 2020 08:07:28 -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=OeStQ676; 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 S1728140AbgGOPHO (ORCPT <rfc822;patch@linaro.org> + 2 others); Wed, 15 Jul 2020 11:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbgGOPGx (ORCPT <rfc822; linux-spi@vger.kernel.org>); Wed, 15 Jul 2020 11:06:53 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 564CCC08C5DB for <linux-spi@vger.kernel.org>; Wed, 15 Jul 2020 08:06:53 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g75so5921805wme.5 for <linux-spi@vger.kernel.org>; Wed, 15 Jul 2020 08:06:53 -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=AI7c50J2x+3VkfEYyAsOrnfGhBXfcF4lm0Ws/hDguDo=; b=OeStQ676gkLJC9flvx8uGog1ZO5sbiMnJMlr05Al3vZvFQRZHCm9sU16b+mHbGjiu/ zQLROHGqy978gbiKFEpIyBMkOKofeVQ/0xUFfYH39mKo7Q/YCUXT4fDwvOGve9NdyaIX 9oBji0BeVTVDE0SHHoemYV6TVo+WjAKxrdNhNHqSd/H/p+j3DHSbgYtsByjsXwlwg6yh B90amTbQ+xuUjsIMEaeQTQ5v1qC2Q60Kfs8TTa513agQ2PQASIWFW+QdgHaZlhk4wKge XgSqUFE8pvon3wcWLfW14C76/b7c1rRSMvGnEnSCton+69Vj+u/y5VG7MA4JQqEPS5Xd Ycwg== 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=AI7c50J2x+3VkfEYyAsOrnfGhBXfcF4lm0Ws/hDguDo=; b=JBesWAtC1FiyInXitv+oQDht8Z9RX2KVfqI4BhFM6mGD3/+dAfXBaoN9z1t6q99iRz TWC5o0IaNIf2KDSjpughDiXvpObUFInCakya5g56jDzfErd6/Zv/mSX2U3IFKAOlwmDD nWJ+gtl77BL1VyGe9VaMQ1j056uci72HLZ2Onu8X1TTvO/1qn8TyFkpog/yboMKm1ccV 2rz2YIxYC+VubOCO53b1axt1qus2Lp3iwZSX9hKvftF1mWTdo1daAbboWKYXKiKseKTN OrrISJwxfr6iHj5zFiKYbhZHN1Uco5k2jrQqtu8yX6gs+6cL08D3NM0XXXt5iFMAPYdN C/dA== X-Gm-Message-State: AOAM533naY34KSYDxMq7FnlgYvFys6EhFSlJcysS4619BmR7PoqokE9I sCzPUnFjJsLD1ekuWlGTE3VOUQ== X-Received: by 2002:a1c:a557:: with SMTP id o84mr9230410wme.42.1594825612087; Wed, 15 Jul 2020 08:06:52 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id w2sm3906140wrs.77.2020.07.15.08.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 08:06:51 -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>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr> Subject: [PATCH 13/14] spi: spi-pxa2xx: Do not define 'struct acpi_device_id' when Date: Wed, 15 Jul 2020 16:06:31 +0100 Message-Id: <20200715150632.409077-14-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-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 0040362b71622..814268405ab0b 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1432,6 +1432,7 @@ static void cleanup(struct spi_device *spi) kfree(chip); } +#ifdef CONFIG_ACPI static const struct acpi_device_id pxa2xx_spi_acpi_match[] = { { "INT33C0", LPSS_LPT_SSP }, { "INT33C1", LPSS_LPT_SSP }, @@ -1442,6 +1443,7 @@ static const struct acpi_device_id pxa2xx_spi_acpi_match[] = { { }, }; MODULE_DEVICE_TABLE(acpi, pxa2xx_spi_acpi_match); +#endif /* * PCI IDs of compound devices that integrate both host controller and private
Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, struct 'pxa2xx_spi_acpi_match' becomes defined but unused. Fixes the following W=1 kernel build warning(s): drivers/spi/spi-pxa2xx.c:1435:36: warning: ‘pxa2xx_spi_acpi_match’ defined but not used [-Wunused-const-variable=] 1435 | static const struct acpi_device_id pxa2xx_spi_acpi_match[] = { | ^~~~~~~~~~~~~~~~~~~~~ Cc: Daniel Mack <daniel@zonque.org> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/spi/spi-pxa2xx.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1