Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2233723pxp; Mon, 21 Mar 2022 14:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyphhA2dnKpntYrW6mZ0XgaB3dzU1E8UsWi1uLgjKj8FEgIyH6dsn9eYmOOtao9CE7yogob X-Received: by 2002:a17:90b:388c:b0:1bf:4080:a1cd with SMTP id mu12-20020a17090b388c00b001bf4080a1cdmr1212842pjb.170.1647898324713; Mon, 21 Mar 2022 14:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647898324; cv=none; d=google.com; s=arc-20160816; b=oMTtTjTwZk/nmf2n/CdcE+/AFlRaaYQeW0IDw5MbyTq6cXkC8gX9F1Sdn76ti5Kaqg D/Wj4j6+JO7Ob32sS1l7dAzulkoVd2bEd4e9zlZwysJWPDCQmPLXFWEDL9WgLXi/mYMq GgsnYPUt3ES4JZUi2z6tn8Z1QqG52LEbIfatq3m91Qv3QKiDL9BanF4panHEh0WlmK7E HZpilpCC3EHmki8ZiCNtKr5Mpc2TjMcJqMGD+0XTCIyMTdl5DnP3Abm4BfDoef+WT184 Lo5yn5m9kd13ABROgsB4Y9ar+quSilk3bLTotSpYLi5fWlOS4fStdpnXI6TAU0hp+vF+ wrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aJ0qIAeCF/TQveR8LIPdrw1sBoP8NDozwMraOJtoQqA=; b=arYBo8ZhentCxf3FIzqQMLixG1MxY0itmY/fZ8n/GgT4opD3LMBgz3GzR6vhm9hnv7 EisoElLJwDl2bPbKh7KXg1B6rcSE0Eadbq+S0iwubrvw0k/54LSgw5A9LKY6bHQ0GU41 9Wo07myXrvDZnx0McSUKkc1bxi/CMTouo50jYDSBqKW+ssCYUXI869doZ4meYuBGbfs2 9VDLKD+hJrxJeiNuAkGhvll6LjF2FpalrwCS6rBY6qoPL/Z1XSfSuKbTwKd+PKBfcnBE EeRS9DDURPTkSl2DbDaPvSI9n3I/eHmYAQ0TTjv3waTeNdMiaOvJU44RSRGcbSX+V/Ef xRyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mqgEbYvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s78-20020a632c51000000b003816043eec0si13485043pgs.181.2022.03.21.14.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mqgEbYvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45583220320; Mon, 21 Mar 2022 14:11:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346638AbiCULFj (ORCPT + 99 others); Mon, 21 Mar 2022 07:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243646AbiCULFe (ORCPT ); Mon, 21 Mar 2022 07:05:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A901B62FC for ; Mon, 21 Mar 2022 04:04:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5489AB81235 for ; Mon, 21 Mar 2022 11:04:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 977F7C340E8; Mon, 21 Mar 2022 11:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647860647; bh=D3oOnJL3ER3AhmHVihwXtjtzCXw5YuehlUnZ0nc5tuo=; h=From:To:Cc:Subject:Date:From; b=mqgEbYvkgcuc5/SpK5BrlryWPa5naquSU1m2uV0mWyqm8k2J0/Lju0XAFBPQD03JK 6GX5hDW1RZeaEAPyduJDXi5S4w2P3ku2XOTwQBksKyQ2gFDyj1mQNesVP78UFhSRR4 A9+AsgDsIKO8aLXHj/Xryt2bNgv9nn3vl2Uj9zRucG1X6MWDH81Jr24qBgUoPBtyAE GHyuBxOcNuhxPnssoXDPDRTcgFMNJ0Rqdd3YXFdQFu5VIkruYp/lRQs4VdSgsPIBRo +cBxHfGcjtlN/nPkwNDc9fF8LXSK/kGyrVoFI9HHSXKoJ6VvIqsam/5sKwNXObN3Yj mTQSabAI0R8Mw== From: Krzysztof Kozlowski To: Srinivas Kandagatla , Vincent Shih , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] nvmem: bcm-ocotp: mark ACPI device ID table as maybe unused Date: Mon, 21 Mar 2022 12:03:24 +0100 Message-Id: <20220321110326.44652-1-krzk@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "bcm_otpc_acpi_ids" is used with ACPI_PTR, so a build with !CONFIG_ACPI has a warning: drivers/nvmem/bcm-ocotp.c:247:36: error: ‘bcm_otpc_acpi_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/nvmem/bcm-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/bcm-ocotp.c b/drivers/nvmem/bcm-ocotp.c index a8097511582a..dfea96c52463 100644 --- a/drivers/nvmem/bcm-ocotp.c +++ b/drivers/nvmem/bcm-ocotp.c @@ -244,7 +244,7 @@ static const struct of_device_id bcm_otpc_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, bcm_otpc_dt_ids); -static const struct acpi_device_id bcm_otpc_acpi_ids[] = { +static const struct acpi_device_id bcm_otpc_acpi_ids[] __maybe_unused = { { .id = "BRCM0700", .driver_data = (kernel_ulong_t)&otp_map }, { .id = "BRCM0701", .driver_data = (kernel_ulong_t)&otp_map_v2 }, { /* sentinel */ } -- 2.32.0