Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp781735pxb; Wed, 13 Apr 2022 12:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy20rZ28/Q9/HwBLM8jgYzXI+b69qSvkz4Jl+QeylLYEesZh++DAzoM+4HhJAY4GOyMT9FL X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr42719873ejc.554.1649877178481; Wed, 13 Apr 2022 12:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649877178; cv=none; d=google.com; s=arc-20160816; b=iIM4iYxTkXYA55bidvwaPCgIYbH0xtWooTR4loW/LciSNPw1Sk2bAOkdIBxMpuuy3g Vuhgby52xm2mFEwE1fNClsCEcdflhF2B/DZFi5MWGTAAOHasX2UyP644uAPa8qrhNCGj gZfwUor3iarDwVzQWlsF+gNbLpomlrlLl5yEqEI9yepJY3doZJBNa8LHKSjuIC39JHE2 P11bINZDSrgORQPoCB+zteLfgvmnsK2cTSvEQT5t2KNbN5G/R7BskutAX/qFQ22f+MZj Y/2+D0W1a70KvZxKkV6dctrOmYMz5Aq3jvnrNt7gmu3HtO1AyI0eYjCjePAyGAD85FS/ PRZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ptB7Et3S8M5pQI4f73IBKmqdfhVlV4XPQTx3bIRJiBE=; b=YpUA0oaCczlapntlhqHHLWooYc8r9rOPjaePgCXseuRBjx6ZPcbEEV8EiXku7XVWbf vy1lzB72n7rBNV7D7tM3wWjGJHgm7x9SSqbAFdLJQl5EpTtlmCSPYtAmled6fj7OF9Gh KdtDLr4+/NzTsvlIBlA+tlRUhUSNMWkLRULMGJq0WXmZU82s+EKEATdutnhDHj6ufo86 oiAT17EDvcDJdx+jWhCVnf+5SxD11+0gJhopJuNG+O6TXC0gEgG4oF3hN/tAwrzihHfX qB0LQfUZcXZGUW0Zmpe/OhnBt02bgfimYO5xrJbbJJ5nj7AG7xxzuRQm2jnM7YMBeQGu P+Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AJI/9cjH"; 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 q23-20020a170906361700b006e83fe14ac1si456328ejb.554.2022.04.13.12.12.33; Wed, 13 Apr 2022 12:12:58 -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="AJI/9cjH"; 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 S233197AbiDMMVe (ORCPT + 99 others); Wed, 13 Apr 2022 08:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbiDMMVb (ORCPT ); Wed, 13 Apr 2022 08:21:31 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3083C5881F for ; Wed, 13 Apr 2022 05:19:09 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id c7so2410012wrd.0 for ; Wed, 13 Apr 2022 05:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=ptB7Et3S8M5pQI4f73IBKmqdfhVlV4XPQTx3bIRJiBE=; b=AJI/9cjHAbde8bnYgwv9cRDJd6s56GsTEXVvU2OeQIbopkNK21mIiIwZycpgttLCRc Qow/SmpiPY27f+UMHiQj7vRv5Nk1/TEtYvCiy50MGeS/Zvv0P8f/w9Tl+xoldF7sZzRp oBHPG9q8DeAw2wfqcIvA5Wuo9Zz7pzZfGv1TamGeruF0ErHrYgAO7K0+lyQ0PfdscCjH otFGWP/5MMr5zn1zQ9ADOaGTARx0e8+MbNzLRJ1RqCRlNUeanGuU6+yjNZ/m97/q0BUq sS5Fv6UaK6K2SQGOxdZjKyjxxaxZMgRNSRJe/o0ObAlOfqGnPO9xzcmzDKqoSXuUZ69M Q2yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ptB7Et3S8M5pQI4f73IBKmqdfhVlV4XPQTx3bIRJiBE=; b=C2bYzyjj1sJSRyPxIz4kajN4UNFaJTFTSylcaK9JezQcWde7M1mPwVHoGIBZgzH6i8 2hTkhN3o2cMOIXkDVwinJomNEsVao+m7sAThxWnbJqigWCLYeWQKO/bncXLjUP4KGH74 FnFmh708YagKqu6eaRkcAeGVZp68IF/5GkfSEaX50gbTe+X2yQuybmJ9nxkFNp9Nioaq y9POJaiOatasPoG0BzYlQZpmSCL3IqLO7qmeyfwNVGgohe0rZU4WkjpwB3z1d7dvxnar qZTQ+5G4lyUhd5eB24lAc6i9DYTwPKyu1c0PL5NMn/bIBqfo/1V7F55W6WZi8QiRPBeG UaIQ== X-Gm-Message-State: AOAM5339w6jZ0OP1iwnmxOC91WDk6hOgnJM/ZKLn0t7mAZ7b/f1b5aSh s3g6XTp1QuYbZYuk3YtFO71Rtg== X-Received: by 2002:a05:6000:178c:b0:204:648:b4c4 with SMTP id e12-20020a056000178c00b002040648b4c4mr31444922wrg.219.1649852347667; Wed, 13 Apr 2022 05:19:07 -0700 (PDT) Received: from [192.168.86.34] (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.googlemail.com with ESMTPSA id f9-20020a05600c154900b0038cb98076d6sm2650963wmg.10.2022.04.13.05.19.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Apr 2022 05:19:07 -0700 (PDT) Message-ID: Date: Wed, 13 Apr 2022 13:19:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RESEND PATCH 1/3] nvmem: bcm-ocotp: mark ACPI device ID table as maybe unused Content-Language: en-US To: Krzysztof Kozlowski , Vincent Shih , linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski References: <20220413113809.243288-1-krzysztof.kozlowski@linaro.org> From: Srinivas Kandagatla In-Reply-To: <20220413113809.243288-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 13/04/2022 12:38, Krzysztof Kozlowski wrote: > 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 Applied all thanks, --srini > --- > 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 */ }