Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp477780pxm; Fri, 25 Feb 2022 11:49:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK6N1lyuETtFjNLDih59z+r+tvsJEboCN/DtsbKIUTSYXsMEHCvyH4e6ZXfdvgqpLi4qi+ X-Received: by 2002:a05:6a00:13a4:b0:4ce:118f:a822 with SMTP id t36-20020a056a0013a400b004ce118fa822mr9195408pfg.33.1645818592467; Fri, 25 Feb 2022 11:49:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645818592; cv=none; d=google.com; s=arc-20160816; b=cLKCBfU1/D+w25bay6voRAAZqbb2RmguXVTQYyYJ6dySoFlmSLQvqeOBb99fxNAhOu rPJn1exPEjo/0aQqYVjpo2m/jDryv1P6iOpP4/ejhjrDW7fcxxg0dAOgk4SW7THRiVbn u5yqqaMX2jEA4bjEh3Wm36CN/Og686uNkNFFz/Jef6WLhBapYyyyScHYawzthDE7WyGL apy7/VZxPcL4mF8tF+/AoY5mWe5l4RMQ8zs8oxLvs2KI45u3zKu3JJFD22xKPupcNcTR OZyzPyKkjiEc17oz0NgrsZszApaF7HTnukILbofifrY8RRzH+w4KLFdKNG/M/nEmAPEO stfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=TMc1aLeSvLUW9Q6PJZCnvwn8m1uacpQ0WBS9kTBwjyQ=; b=N/S85TyJjVNLzV1xex3zLBw9CJOqIGI65E/FQ9Jeofbq1KUSuBCZjOiDtYl8esGW8q UyxMbtbiNme/1xLMYkdWyokZgYDEWsF7PWSz38GTkAt2us2l/UowZYNs5BFtcojYSQrq EdBuFHwfaeGttwnysArC0up8QgXBZWljDaiJvG0WWVvTmoFpguxQUeMzxNreWcU0y/nc lQX90xxA8WzjMF5qGF7dVKezHKZoS09KUPGpO09EUP0A9mdOEzJUTAe9wXmrX37Htco0 sIp61bet7RCYTzSXr50FpozZu9uLFXQPrqgK6diOppXGXyvHjpQfx+b+enFd67SNk3Xq bv9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bGXKNU9b; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020a056a001d1800b004e1da0265c0si2277742pfx.265.2022.02.25.11.49.35; Fri, 25 Feb 2022 11:49:52 -0800 (PST) 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=@google.com header.s=20210112 header.b=bGXKNU9b; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239347AbiBYKQD (ORCPT + 99 others); Fri, 25 Feb 2022 05:16:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbiBYKQB (ORCPT ); Fri, 25 Feb 2022 05:16:01 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58CA41C2DAD for ; Fri, 25 Feb 2022 02:15:27 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id k10-20020a056902070a00b0062469b00335so2769706ybt.14 for ; Fri, 25 Feb 2022 02:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=TMc1aLeSvLUW9Q6PJZCnvwn8m1uacpQ0WBS9kTBwjyQ=; b=bGXKNU9bb9JweWEkdjzqQzDk8+ztQWRpC2gfebrn0Gdn0ETQfRAQK2apC6JCRdjFPJ O8wsQRiJcaR5IQAWymEuH02lmGt3qBwda2aMfatI1ArJ2FgqmdOuthNnZXVw2ZffMaYf SbhyiNVOalyrbgRitmjdP7sT0SSROcvAcAIi2gXph450X17MIcs8fIIzpDlrAujuP/2w /B0XkEO10Kcr8k6w6YHN8XSwWKIXryruQe8YN6BVkAHQnDdC2vGNGNmApxgIZT6H+tgQ mx7EzZCoOpAfYGFpBdA9R12jki6ywp8U/P5WSijGfOvY6jHLKGS4xgaOslSXElGht8cd SUwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=TMc1aLeSvLUW9Q6PJZCnvwn8m1uacpQ0WBS9kTBwjyQ=; b=2xuIlRlOjlObQqlbS9Ai4SFNSo8/rr0ZnsVACgDfmw5pCx+fS6tef0bC1u0QbuTuZA XsgxpdYoP14hbUtw5NLHMzuMN+Po8R2SGAP7rvgyD9bFzpkGvHPl3aTD7dVc5fDRpkFV mOH3bdr4M88vutgutx0oGETovmjEnvW/5o2ddI3yDSH74OQk3tcwXH+vd9aXUvJbj81S 0DYQ9qMkWVYTtSoPFuU9lD9H2FSkiCKonsmZgNvMofhI/dp8AperU2HUBcAsv/bRbygF RVn0dct/rEeazyaOW3xT3rkjxRxFowizdgjFndJrZfzadVGnThyKWvQvQ00uETofhtl4 Rj4g== X-Gm-Message-State: AOAM5326ma4XXVgA6BGtTtpJD/zqvmSZUFNeZA/dXpY0AG32Z/eHW3yX h1AUpWr7F5caKyeNu0SMfjwA7LfA1GBS X-Received: from ezekiel.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:108e]) (user=shraash job=sendgmr) by 2002:a81:a14d:0:b0:2d6:8052:31b9 with SMTP id y74-20020a81a14d000000b002d6805231b9mr6617561ywg.241.1645784126564; Fri, 25 Feb 2022 02:15:26 -0800 (PST) Date: Fri, 25 Feb 2022 15:45:20 +0530 Message-Id: <20220225101520.3188373-1-shraash@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog Subject: [PATCH] mfd: Avoid unused variable 'atmel_flexcom_pm_ops' warning From: Aashish Sharma To: Lee Jones , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, groeck@chromium.org, Aashish Sharma Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 Fix this kernel test robot warning: drivers/mfd/atmel-flexcom.c:108:32: warning: unused variable 'atmel_flexcom_pm_ops' [-Wunused-const-variable] The variable atmel_flexcom_pm_ops is unused when CONFIG_PM is not selected, so marking it as __maybe_unsed. Signed-off-by: Aashish Sharma --- drivers/mfd/atmel-flexcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c index 559eb4d352b6..33caa4fba6af 100644 --- a/drivers/mfd/atmel-flexcom.c +++ b/drivers/mfd/atmel-flexcom.c @@ -105,7 +105,7 @@ static int __maybe_unused atmel_flexcom_resume_noirq(struct device *dev) return 0; } -static const struct dev_pm_ops atmel_flexcom_pm_ops = { +static const struct dev_pm_ops __maybe_unused atmel_flexcom_pm_ops = { .resume_noirq = atmel_flexcom_resume_noirq, }; -- 2.35.1.574.g5d30c73bfb-goog