Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp696775pxm; Fri, 25 Feb 2022 17:33:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGTgDUKe38u1YOI2Zq1ekgKmcjzwxnNdRqYAZX6A75uuPwJ4hzoUE3OtMVjLfkDabwWrEN X-Received: by 2002:a63:c24:0:b0:375:9840:6a97 with SMTP id b36-20020a630c24000000b0037598406a97mr7073338pgl.77.1645839203799; Fri, 25 Feb 2022 17:33:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839203; cv=none; d=google.com; s=arc-20160816; b=FRz6TuUhKE97InDSd44rrPca0E9wOL25wYjEHhbOfsawz3hZgx9ZsUzQE3Bw72TnRy JDFeCvbPAHzCBT0yEdFQYtZkoukhvB1DMtAw5f2UYBDY2lsnKnuehGC8xVWGWekvy2u3 GqBUNeWeuyGBgc5zXtd99rTuCEOFhlR9HCjciew4JyhoIbAnYHtsbcDthzTgKqEWBTWT Kac4rmbpEYIHwpmKKNRo9Q2U6rZVm+2Yck/w0pIThCLHmHeK5Hsl4sD3fpz/npyQMbhd SzBpAoZ9GrFAnvDJSsuIaHtzWV5eLGbi7xgjfcWpNIOHxthudE7cq2p10TU6V+K5NJME 4o/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OuoHZFfe4VhL+9akOtIr8uKsSu1XQ7Boerqjey2wsS8=; b=AH+H4m625rwjxk0AY01oOc9672BP8yCr7s0Gm6xVU20NhZ3eh7plNg7nEjm6vSNOj2 UkDPLDIoBQ6WmKckh7YkmTdin0Eb+fmJdmYOduWiFr2/2XsZhMEcB6lwPRF+mFCWpSX2 XgK3VcKj4ID1IYqZbC8yCcGxI2ro4lBxim01gFxVuIqZQPUN1uU0kGIKIb5nSDpK+XUX oTJo4jS8bXep1a03xmp7iFjj+foQRY0Q7KrjxtUkYjrkMO5TBrKYwp1yTe2zVUOvfsPU 3pnKwDZCKawyPO5xghLuMUv1p6D4T5LUJC4gzhaoRGRN5Qsf4cLwbIIVy0r3ogGtJxHf psSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="F1T2/ffV"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y8-20020a170902864800b0014db0a0280csi2830195plt.607.2022.02.25.17.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:33:23 -0800 (PST) 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=@google.com header.s=20210112 header.b="F1T2/ffV"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14C421F5878; Fri, 25 Feb 2022 17:29:01 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233972AbiBYTBD (ORCPT + 99 others); Fri, 25 Feb 2022 14:01:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233868AbiBYTBC (ORCPT ); Fri, 25 Feb 2022 14:01:02 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC67914A214 for ; Fri, 25 Feb 2022 11:00:29 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id a23so12633991eju.3 for ; Fri, 25 Feb 2022 11:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OuoHZFfe4VhL+9akOtIr8uKsSu1XQ7Boerqjey2wsS8=; b=F1T2/ffVJigokYSZwybQUxcRrHW3LhIlcc53+SXarX+KTYiMbNhjWznF3iQxXyJwxX qGrOJCWxjkL4Bx06YQW68r96u56ExR2i0XwRzZkFhg5Tx1G5PBifPkxBj3FrGfNR9EFK wA5Ye15pi2tpo3OJdpKWdmu3WLXVqrPQ0j2681XrHuQat8IS4CbY3UwKH4kMKTshlnMr D1ozhDGQUA+xqyqBJFHbwS7/wmgd/PLWQ2uMfM3wDjBrfXqBAOaEf59tt3mA2a787gYp hVH33KrOoNWfZN5TrfUAb8EvMRfRGhgvfgvXqINqIRQTmQMIX2++NA7IzB1+ApIN+fa4 XlKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OuoHZFfe4VhL+9akOtIr8uKsSu1XQ7Boerqjey2wsS8=; b=BoB85RSn/xFDbSGvOBMafhTK8Q0gcDXV4NzTVIoX5hneHM27rKEahcyROmLwK5rkg2 oiRbjvQLCidhEqc3rC3iK1hpW2r6W/ecomf7r029D1Gs2JNOGcL8ufwjTCFu3qhRfwJU 4K+iRUxDvFfwbX2B16cLdZyzZlpGAb4v/LlFia7W44wWgu1VvFCnlkewsHfaYWiyTxpx L6WSoamL5gH4LSzXU7CM4BwY6T/6wrtNg8ScB9vxUp0urwxHLKsIDKNVllVXrzRTclaL m8AbDI4eXtqqzNUHNneV2DxVyUZEHWpG8fHFf30Zk3WIDja+B9xf20ARICYkOaoRgLzx FjfA== X-Gm-Message-State: AOAM533vDA+CdsfTlCDaPFLo1HjEcyr1AYmm13FVKkvIn8CWezVJjWK6 +M6IDmn0mU9tMBBavIMUo3DrGeP6eKjcaRNC7ceVIA== X-Received: by 2002:a17:906:2b97:b0:6cd:6d67:ab5d with SMTP id m23-20020a1709062b9700b006cd6d67ab5dmr7244075ejg.723.1645815628341; Fri, 25 Feb 2022 11:00:28 -0800 (PST) MIME-Version: 1.0 References: <20220225101520.3188373-1-shraash@google.com> In-Reply-To: <20220225101520.3188373-1-shraash@google.com> From: Guenter Roeck Date: Fri, 25 Feb 2022 11:00:17 -0800 Message-ID: Subject: Re: [PATCH] mfd: Avoid unused variable 'atmel_flexcom_pm_ops' warning To: Aashish Sharma Cc: Lee Jones , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , "moderated list:ARM PORT" , linux-kernel , Guenter Roeck Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Fri, Feb 25, 2022 at 2:15 AM Aashish Sharma wrote: > > 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 Reviewed-by: Guenter Roeck > --- > 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 >