From patchwork Tue Jun 30 13:51:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11634129 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 450A5138C for ; Tue, 30 Jun 2020 14:01:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DEE7B206BE for ; Tue, 30 Jun 2020 14:01:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AnbrF1Ey"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hvqllLl1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DEE7B206BE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9SI9D2wTIeQDoPz8Fimv8K1fOMwi2ZqpfPsVlDXIxSk=; b=AnbrF1EyVFpWT7UzqdFOjVUg3 X1449ReVGN1HBZFfLDmH/yLUoPD2A1Zj2gI7hk3HR9Y4I+NTr36VRTVOxwtsBvdYCu5huXdPhChhZ i/NZ52blp7Kf+ZtedjJrOQ//Y5wjAAvVlhzBPn8Zi7bjRingY5ipuYNZAHQVRZSTCk8Clhtgiksui MEi94vKSvlKpk6V0vaNF5ZRsTgapif7pgMHT1OERIanFK4kBhXoqktNvJcgtre6Z3ovtXRYL7yNQc F4BCkMrOSkBDLLdAL/2FavJGlZALH1NtqP21kC/vJSDlIhHi0Ziwg2TwqaKayPcM9gEPIsUxxW+YT li2Kc8e3w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqGmj-0005GQ-2G; Tue, 30 Jun 2020 13:58:53 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqGfm-0001Iq-OL for linux-arm-kernel@lists.infradead.org; Tue, 30 Jun 2020 13:51:44 +0000 Received: by mail-wm1-x344.google.com with SMTP id l2so18192236wmf.0 for ; Tue, 30 Jun 2020 06:51: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=XHXWFB9CtCq3ogRoTXjYaAYG+vDjtwvgXpZpFIdOYUs=; b=hvqllLl1pn0fatf/QsCkR7Paee5bgvm0WeS+Joju1W2knw4rOIxqtF8Wm+Zd5pvEe8 GoX/KnP89+9iW2Xbpy8h8z0bvLxExRdZ9OKDSLwyiSa5DvtS2vVETgmjXcl1ptlC6fRD P8C0LFP3/W8lQl21D8XVlp4UmiRd8MtWlkpo5AtnqcW1mM4cve/yg2D1ZCVTrLUVpv5v fdR9ocabGIPny5c6K3qt/6oPd+jAMIUuq+KD28kCas/xzpPYjmVn1gFcOsLbI23SrPrw 9bqNhAyEzfRXdIb8wLt19KfIIaJL6xolGLI9R988mc1PX0CKEaFHGilGUcVnc4FSRIza oNig== 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=A5cyspHKAjhBRQ14Z4f2/TTS4NcQ9+zWdIZNYyiM54VDspbV1DMnz7DlievwKwJrHW NvvPvSNAITncHm/4bTyL7Mfv8uniaionDfe/mzMVSVtDURVc9nyIAWz6odDIqWms+uS5 BTbaWbyU/OlM/MGnU6EmQkWcQGlML0hs81dfSnf7B5xHYO+WiV+PsZ7d9lz6WlxMjlwy yt4FzurSRgeIJ2K1wyj4L3j+6M4aoIrMn650U4BscjPWnWL7Wmg6YyFPAifRnWUXe0Qn Yz2Tnrp6uhTFoTV6LMeGS23DsZzOUfuqYkmESQpvD4JNYo6puBJUQVaGMkyJVQRUkiE5 R3mg== X-Gm-Message-State: AOAM53081GHRqkw5KUvbX821zVf3RIfo2niNCJVxRBAHnONTRO++g94F hb863b9PVdg5gMc8ZFmUA16SAgfDIFM= X-Google-Smtp-Source: ABdhPJy8971wuT/pclHPRWG3d6DRtSEvF8CePSBrYNq9om1ZWVq5Pob2KizrOYchZ8agKjF2/t3iMQ== X-Received: by 2002:a1c:96ce:: with SMTP id y197mr13876541wmd.86.1593525101687; Tue, 30 Jun 2020 06:51:41 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id t4sm3876746wmf.4.2020.06.30.06.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 06:51:40 -0700 (PDT) From: Lee Jones To: arnd@arndb.de, gregkh@linuxfoundation.org Subject: [PATCH 26/30] misc: eeprom: at24: Tell the compiler that ACPI functions may not be used Date: Tue, 30 Jun 2020 14:51:06 +0100 Message-Id: <20200630135110.2236389-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200630135110.2236389-1-lee.jones@linaro.org> References: <20200630135110.2236389-1-lee.jones@linaro.org> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wolfram Sang , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 */ }