Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp420004ybt; Wed, 1 Jul 2020 01:33:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAppjle//MqBZrKDNDlczMR05dLazNvYoPXjCXfxsjuNziSi+h173bhZBYDhg5EzZNwlEP X-Received: by 2002:aa7:cdca:: with SMTP id h10mr14225365edw.285.1593592401178; Wed, 01 Jul 2020 01:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593592401; cv=none; d=google.com; s=arc-20160816; b=SnxC1+tjE2dQOszkRf32QGTBrOYFWYhnyKSWgQuj+mwtkQWFDLvfMZyZXOKCIhNFJ6 Ek6NdpTa6pSpPi/qm2ufZfN7koBHufX39nm0qBqjjIrCB5XFhieZC32JkqsbVxxNPiLm M9R7RrPP2pr1DEhLn6ZPH670riPerHPSzVw6gkiSIH3CGJiw5TGoxa/1tf3wFBMvoYI/ OdFfW+lFu8D65000j7wTQNIb8h934SVAq4VONnLs6+mAelslYVlKfa+4a1OPk5t2RcQl LQ0wE8ikfQ8E9bJIW+CfZCei8cgOVtFonsp7IqGljro6Qr+nPuRvhsCE4j/a8V1TS+KD RRFw== 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=XHXWFB9CtCq3ogRoTXjYaAYG+vDjtwvgXpZpFIdOYUs=; b=I1u14njw6VmLWw9vUTDNXUsDwX/FYq3MnM2Wnyyj90Ag6nhGkfsqMMbNA6bcvgW23a 7Ok8RdUO0k12joVorJU6VyVIMoXFL3uLuFoKeHxiFzQTE/YAxzp/VwI/mQwIBk+veBUq U2+4V+6PtHVC/PBK66axuDPl1heU7u//3ZustbcAcgpjOHFwK7UumJprKR/ZCPZ/JZqU 4hQsqxNvU35Pkez8HUrKvaoWeI/1VL8LOV3KggOskwWhDUp/SUCjK8zYClR1t84rUPYJ u8PfEuHdkmr1NBN5Fg1DdgmGDh7x0YyD8eSO9JdNWVSptdDx7wSms8Hs9eaeeLwbSNjp 19dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tjX3JnTQ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si3528438ejh.592.2020.07.01.01.32.58; Wed, 01 Jul 2020 01:33:21 -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=@linaro.org header.s=google header.b=tjX3JnTQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728979AbgGAIcG (ORCPT + 99 others); Wed, 1 Jul 2020 04:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728930AbgGAIbz (ORCPT ); Wed, 1 Jul 2020 04:31:55 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 756EFC061755 for ; Wed, 1 Jul 2020 01:31:55 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z15so11619833wrl.8 for ; Wed, 01 Jul 2020 01:31:55 -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=XHXWFB9CtCq3ogRoTXjYaAYG+vDjtwvgXpZpFIdOYUs=; b=tjX3JnTQ8DKxNZq+JrN4OfxZ/6mnhHpUFoNYOp7TeW6DqIScMdFFjiqZ8KOcntMoFQ JIxBBiO0WG2Ndg4SU7ORNyxXC2D4Mg6SXT+FRiVTV133sBh7VGrm0xMksPARXncP4tHG s3g3jJYwnSTaRdqTCfsBV9M1k9uFe/8zKXzQF9jtkvD0OpyviD31vD8P0GTjawnffocT l67SsjE3A6N06w9fUcUowmCWXefk/+F07cZEXiT738yw+WXHk+09FAIO9nxj435U74IV QnT4JDQEhlOiG2vdaectNNWukK/ilgsYwVCxP2nLl5lW/j/OLPeWruuQgnU2ZlHibvLe qn2w== 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=XHXWFB9CtCq3ogRoTXjYaAYG+vDjtwvgXpZpFIdOYUs=; b=Xb1RPLubcK98RqgMEidj068M1R+JH3m+Ir9wdj4VGqlENQFn9zCaBEhHnmIS9IQ41D BFkvD+agRYwD5kULW7Ox9V8PHfHLSevSxc4MbbdYLe3nAPFKvEB4QstzlKqPIM5a/5Ya SG+kWIBPBw8Bv/C2aFdXkY5k8ymKP0c6uPsqH/iubc016jQW/0NNmgciYvLOGmIqj2xr eJmvtPIldRyj4sVK2nD6TGkQqY6L1YAikoc6cHT+ca1KNXwisRvVaGAmR/swHXS+rnj3 mTJ4njxHs2dPSSGEZ/Lx7z678xWmNZIulwFdex2A3jBmd2Y4QTpyxaoDMEsahNd0ia2A 8ghA== X-Gm-Message-State: AOAM530ywTXbD75BfbHNNxMBgA/d0RqcHa1y1MX0y3nUGJdBTtYs7vqX BX1capgxg13i6qnXR/xISeaSHQ== X-Received: by 2002:adf:84e2:: with SMTP id 89mr26772538wrg.139.1593592314190; Wed, 01 Jul 2020 01:31:54 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id 59sm6717816wrj.37.2020.07.01.01.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 01:31:53 -0700 (PDT) From: Lee Jones To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Wolfram Sang Subject: [PATCH v2 26/30] misc: eeprom: at24: Tell the compiler that ACPI functions may not be used Date: Wed, 1 Jul 2020 09:31:14 +0100 Message-Id: <20200701083118.45744-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701083118.45744-1-lee.jones@linaro.org> References: <20200701083118.45744-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ... as is the case when !CONFIG_ACPI. Fixes the following W=1 kernel build warning: drivers/misc/eeprom/at24.c:228:36: warning: ‘at24_acpi_ids’ defined but not used [-Wunused-const-variable=] Cc: Wolfram Sang Signed-off-by: Lee Jones --- drivers/misc/eeprom/at24.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 9ff18d4961ceb..2591c21b2b5d8 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -225,7 +225,7 @@ static const struct of_device_id at24_of_match[] = { }; MODULE_DEVICE_TABLE(of, at24_of_match); -static const struct acpi_device_id at24_acpi_ids[] = { +static const struct acpi_device_id __maybe_unused at24_acpi_ids[] = { { "INT3499", (kernel_ulong_t)&at24_data_INT3499 }, { "TPF0001", (kernel_ulong_t)&at24_data_24c1024 }, { /* END OF LIST */ } -- 2.25.1