Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp757423pxb; Wed, 13 Apr 2022 11:39:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJnSTYfXyXJCVMiri31ZODAG6uEppeAYq4lzFK7dvonmpmHsvYuf+ijGNDYzb67Hl4/zQ8 X-Received: by 2002:a17:907:eab:b0:6dd:e8fe:3dc with SMTP id ho43-20020a1709070eab00b006dde8fe03dcmr38821520ejc.165.1649875167993; Wed, 13 Apr 2022 11:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649875167; cv=none; d=google.com; s=arc-20160816; b=tJ/n5VSu6VzOxhV8a2+diWrO+E/PeEw1kpjA6f3CZDkAq0qMMLVYFNvh3nTv6pMVd4 KVPaJr+nW8pTYQnAThx4Zl8CQtOsWFcoMoDOokwbXyxfsJhWidrfyMR7xl3ca8fNGmM6 IX2CGjXnpVz6fVPqhZt4iIhelRibfNuwnu8/vAJgPADtQIei/gRKHysdRhhb2F5+eY0t q1qj4KaXI/oKStCA52kTXmKgwj2aBSe6+KYl1YNKTt+OwDT6UjB2pK0l1t1y/4v9hrLU p4F+MrQwgI8BZT2oKZcKry9bdoF1PBjfzQS2CptKYRS98TYnhACTBpumnmnZOHsrZZNy yV1w== 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=5RsCT0+H3Evp2pw/6AUGDU0mA0FIE163HBKTFYOpVTk=; b=BdCvkoHb29gRJv1ISd7X4OZYCo1jBFniVLYyMuVyBzZ9rWJFUqFwatmfeetgmwAG7Z p+V63XZYQZObRquN6lcCE7MWlBthPnRI0UQKfKS44ZRLIInSXbdH3vI0cua1NervvjjC 6BgGHeFy8uSdSsXaE49fWfR2CSk5+C2H6KFh/0FQB8pifCcez8lK04FNBnoyIjCsk5yy 20RVGFO1ykTzDFGksiV/I5xFrI6ump1cUDdyRThy6SpvE2wf43sdh3iDP0OzGG71+MV+ 6AjkJcqOYMLdV/yUEC580qExwOoxQfFuL/KUOPlMgVQiBSW5DgQiRndTKvRlEMrS3SZ4 5eOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YTex7apl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a17090602c900b006e895dec42asi481906ejk.198.2022.04.13.11.39.01; Wed, 13 Apr 2022 11:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YTex7apl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235205AbiDMLkg (ORCPT + 99 others); Wed, 13 Apr 2022 07:40:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232568AbiDMLke (ORCPT ); Wed, 13 Apr 2022 07:40:34 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F3D558822 for ; Wed, 13 Apr 2022 04:38:13 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id v15so1970100edb.12 for ; Wed, 13 Apr 2022 04:38:13 -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:mime-version :content-transfer-encoding; bh=5RsCT0+H3Evp2pw/6AUGDU0mA0FIE163HBKTFYOpVTk=; b=YTex7apl5fRj0QTFhN8XZ8gjLXHbYSuxxG7QpUKzu4EszwI1I3vWKugOKEdiJMCruP JWEylSK18hobJ8LloQXX4j57PRR8cPz+Ess9N4XGVzXowMulwyjet20sWAefzXLsNOnh ECVn/umamp/CZtpvx428GuQcW7vEypQTJAM0kJXunmq9Zq2b2V7TJeQavZEi/pZXEpON LI6uAexxMTE6OH1p27vqtofgDgPTRt2yQplrBeT1TbskkPQKbptcgVAiDMEJsNHzvzF5 F4UcelCOK+buy8ikGKdccsqH+1y1WXqxXMmL31eEphLu2Yy/XzSShlKOWEJ9/eD7PH2Z iz8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5RsCT0+H3Evp2pw/6AUGDU0mA0FIE163HBKTFYOpVTk=; b=l/2V2LT9C1383g82WgmuHfQOhxb+dm3FB0nV5UvulSKliC3uCF0ZBqiw3RJnUJcFg3 APrgQTb2ADn3fFgm8X5sJoJHdcBg4Dv6xn2nTGZFD19gIOEkrVbZkRCQJPVQqDjLMxzO YZA9BnWQoeTUD+2erz0+IQ4jihq1801j+KM03i4y9Yj09U7uiTybFu7S1KndmB49DvQK fU8p3Ici/vKwDUX6HR10L/lMxp+Xdbjn1CPaIPFfXmsBdS4eja6Gp3ccokrOtLp6uI// HntrNvQhgF8f6/m72xmki6KzOGRTe83bg/7rHnNf0idm3F/OXURT64zTSbbHvGUvdwFR +RvA== X-Gm-Message-State: AOAM533iR05Q9prMTqhES27KPf32oWRD9hNGADn6SLG4ExlDQbWDMxcD XhPLwT+UuBOOhXuvXj50/osXXg== X-Received: by 2002:a05:6402:3489:b0:419:88f0:4bcd with SMTP id v9-20020a056402348900b0041988f04bcdmr43677265edc.401.1649849892211; Wed, 13 Apr 2022 04:38:12 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id cb25-20020a170906a45900b006e87e5f9c4asm4452783ejb.140.2022.04.13.04.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 04:38:11 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Vincent Shih , linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH 1/3] nvmem: bcm-ocotp: mark ACPI device ID table as maybe unused Date: Wed, 13 Apr 2022 13:38:07 +0200 Message-Id: <20220413113809.243288-1-krzysztof.kozlowski@linaro.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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Krzysztof Kozlowski "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