From patchwork Fri Jul 17 13:54:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235698 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1724555ilg; Fri, 17 Jul 2020 06:54:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEL7O09fEJnJ8W+StIGprSgj/91IZpuIEA8JYIFuiG3GOSngH8zdp1YCjSKKCK+owjVhFc X-Received: by 2002:a50:cf09:: with SMTP id c9mr9641790edk.90.1594994094319; Fri, 17 Jul 2020 06:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594994094; cv=none; d=google.com; s=arc-20160816; b=hEU7buvuYYM7aSG3bzIfXqZEzAm7RNfAA2a3U+Mlsy+PP3Ghw7p5vpKdCj9pPn8tzZ d1eyVOnkm8JoZXGYrCuBbfwoZ4umLdNoVpjbG3TwdEkUdDNcXQa7gHphgEaJ3c1uP3AX 8Num2mb//rBDdqRqOw9cpHbJb9jlBJZzaCKl2HmQx8U03tQfQgVbclH4dVnTH2UefmmC LPUvVUKIv6b6889ViKOw4jawrzx3eMmqKFDOdgQQTqY7G1qoD18cvZAnjW1Qq/uekC1m OUOSGz8/CaPkUcO6b4hxOx32q8uYSElhSUOjoaautpRUW2kYNy/zssE2fEnN2TC0G58J 1+XA== 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=wFd/vgln9b6qSpWIYxWOhJHoUmyeZQpP4jc3caSbG9FLLHUeyg8AUibYzMND48YDpB eLw19fAoR3ThWM5m8/0QU9gyXkSgLPKu4Rw1aNIE02xTisB0WyPtQev1sX6x5FvlOXl+ Th7cP5WQkUV1nAtdnWbzpmoCTWUI9+HgdakER81aKc510oxl6sM4QMS/TaCZAZLx0ZoD +GhC/63R7sGCgzm0OI4iGg1leNFeZb1jLscwXt92T1/Tx3Fri7fx3a1zoTWP1LqqkfN2 dM5igYurKuBXe4klE1d+WaKixjZJ/EG8x7g6qwdZD6pLjkGhmyE2z30sEmf2D2Vo4AyS Lt1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BJWYGXYq; 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: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si5336427edw.359.2020.07.17.06.54.54; Fri, 17 Jul 2020 06:54:54 -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=BJWYGXYq; 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 S1726205AbgGQNyw (ORCPT + 2 others); Fri, 17 Jul 2020 09:54:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgGQNyl (ORCPT ); Fri, 17 Jul 2020 09:54:41 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19D18C0619D4 for ; Fri, 17 Jul 2020 06:54:42 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f2so11205565wrp.7 for ; Fri, 17 Jul 2020 06:54:42 -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=BJWYGXYq1pgsO4ivqCiR82eR35O7gSNMT6QzlxPG0J5WFo7f9l9ct2/Tj5hbius4wJ Z3Nj9oYaqBKMg1Xoi6M4UZkmmfrLIkOblh0TJcSGnmWoWrAo6+546QwFRUIZFYt0uk9F P4n6sI1WeB+yEJLGruWOY5oFh5vAAwBE0sSKpokIUpMVYM0U5mlq0hoKOTFrP6pj1ogt qBVxuMuEOaLVOwxwyszj1rDIl05cV1teNU20ANvSq5UID796wEmfuWiVh9kq+r3ORgD1 CKk+4gQ6lc1SCsduPRjx9fMiZ8f6nvrTSL7uHPXLrhtjK2mTSQcMBXQMTJfGqOP5i/M3 qjLQ== 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=B2F0kofOwNPuPZegVOA3XfoBVvdKA4GSGI5UgkbniZgJ6juHDIG/iVDENFSFvQuP38 cweAqnv8mJf/MTgkmtH/Cg9tqAZSRGUXh/+zmP843gvFq6/5uE2cAAgLzrLJdmolS6wX uX2Z+9p9nwZUFUanx1Nd11AJ4bx4GQCeaP4rCTwCvinIb72e22lLSzqtS3qfmNglOkAZ BO4wGfNkfqz8sUDmblnL1EWEU5cK8tBBS2Xg11i2yY5/truZ3eDePiDAgt/tJlWUI7lD aV0UeQM7B7GYGulvsVtdvPQVQnxiVhNJceDrrChY3cXbcnByMdQ6JzyK/UkpznzPGixC ItbQ== X-Gm-Message-State: AOAM530mlgwOOEnpCT2KCImwIiCkqFEivgBgWVgELJYjGUMtvZ9ktRcP q7zVe5NFkxuQ5Re/eUmjgn7I5Q== X-Received: by 2002:adf:f104:: with SMTP id r4mr10951860wro.90.1594994080427; Fri, 17 Jul 2020 06:54:40 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id w128sm16118356wmb.19.2020.07.17.06.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 06:54:39 -0700 (PDT) From: Lee Jones To: broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Lee Jones , Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH v2 13/14] spi: spi-pxa2xx: Do not define 'struct acpi_device_id' when !CONFIG_ACPI Date: Fri, 17 Jul 2020 14:54:23 +0100 Message-Id: <20200717135424.2442271-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200717135424.2442271-1-lee.jones@linaro.org> References: <20200717135424.2442271-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 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 Cc: Haojian Zhuang Cc: Robert Jarzmik Signed-off-by: Lee Jones --- drivers/spi/spi-pxa2xx.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 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