Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2143959pxb; Mon, 11 Oct 2021 23:33:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAAPsMxrRAqCdJPSNc0Ppg8NgX6PokHuz83Un4kI33tPk0832hBD+4zbyO/cXXiZvbAw9o X-Received: by 2002:a17:90b:1c02:: with SMTP id oc2mr4033800pjb.52.1634020400817; Mon, 11 Oct 2021 23:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634020400; cv=none; d=google.com; s=arc-20160816; b=iC9fytPr6+oxr2FxkBY2T2yGHYtMF3f8xXSu9RrYo8icdoD8YKVlCxH/qwBkcWQLgK Yu+/pEJwKjbzlqodjwGqjA4WVOiOz/908cEC4iBHIW8kcFfPtS4wcvux9StmCbgKP5wJ icdQt6ThHEHgOENVY1+cBvEO9a87WPRye1Gyq/kPedkly6p2hEAgI/grfR3jpOWg1VNt /E/KbP6vMH6iRVBKMNHoekaGh1nsPrVygapkmTg+blQi6PrJAjRaFS3tqUNjYSr4DD0T QE5DBsb2MXlgdFsyXzyvRcbRdY5x4vFeOmN51ygdGMxywNGx6WUaW1FK6OQtWqNhga7W ECcw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=/yaxBYLNhr7azLryClYJJw40Q60DIU/cT3EkSFMT5MM=; b=kTD/PFRpZYCcyAmuu9mC9zARbwBlsFXiwmPCFrIhPcApaYQ7YhFZLo5mAs+wDskFQM dKolJvnK2xkHuvm/Kghj505pvbLEHZj4hzMk0P4JzfaEVFGnk7FRDUDSAhyOyr6J6VTM 3a8/UJAgT9RuCue1PgIniWvCTLhmsidetg8jtUfNtH0diyEoawTgoQ9xkmSdtWj4VhFk lZQZwAi5/1wgo2SliR3DiG9/v5my5ITpYqVhaGTll4A6R0k8n6mgxUM8m4QHgKA+5vZS 13qCZmXXzmJPJ3HhD6T+PyYsm9VbUclBvmkkv/oA57h8utKSWZmHgNjIR1514L8Qf5j8 K2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qQRc0Uwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si13708720pfh.36.2021.10.11.23.33.07; Mon, 11 Oct 2021 23:33:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qQRc0Uwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbhJLGdv (ORCPT + 99 others); Tue, 12 Oct 2021 02:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbhJLGdu (ORCPT ); Tue, 12 Oct 2021 02:33:50 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C18DC061570; Mon, 11 Oct 2021 23:31:49 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id t2so63458132wrb.8; Mon, 11 Oct 2021 23:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=/yaxBYLNhr7azLryClYJJw40Q60DIU/cT3EkSFMT5MM=; b=qQRc0UwaV8VLr0DEw01f0PmT9KCjNZpa00ePp36vo8oS1rtQHqKVOU1QztCFviyXET 6gNNJnUymP29rqgdHCSW1Ik11sY9sympmwQbPLZrFSkHKBZImIDt3TLfOvrHDbvlIp3y 0N723Xjz/DoaZa4QtqC59sJhr5SefFzwcnhJKuBfMtvILCXIiCrSH35PIp8g+QlGxil3 DbOe4sRaRSF1QEw7IC/fRrqVoQi92ZLlLk52wbquIuEG9q/PIRDY2ceUDQ9cgFH73w6J fozbJ9FPsCoG6Fmx9GXMGn+WwxD9TIY8wyOxk0gyh35If2zkD3y5Favl5nHGlVUK1Ce8 +lAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=/yaxBYLNhr7azLryClYJJw40Q60DIU/cT3EkSFMT5MM=; b=KooleRSU1MmpSuFYzFc4lRsflgoB4faXclR1ak1Y/64nybOm3TqsXmOO+M0fjJndXn ivTQOSMOyn8Gk/kdD5t2Au7MXSvR8LajehWpfyGoQaBGf1goYLXXfu7iEaDUT7FWzVJm HQk2xznq2wo/L0bCqzMkXFcDrcRqY9KIw5kJqLgEqXHnvo2cIZc/wIFss3BKKCKYW+XJ pBbd+oTAdCjFzMmWhqRLun1JiJQGskj2Qzjaxwa923DONg6Xsp0Mo+LvkAtXRoxb2NpT Y6DG40TtM19HheEnmKjOqhmg08xp/d4u1lDnwvQ6Z890ssD2acf5AFhi907lzip0P9Hx DNpQ== X-Gm-Message-State: AOAM530f2GVX6wHipUgq33KmWCxOzyMSzMJoKrpbC0H6ITt42mbQiACo QYZQrig5WYfSc/9vz5A0xc4= X-Received: by 2002:adf:e390:: with SMTP id e16mr29259610wrm.217.1634020308024; Mon, 11 Oct 2021 23:31:48 -0700 (PDT) Received: from [192.168.1.21] ([195.245.16.219]) by smtp.gmail.com with ESMTPSA id z133sm1592231wmc.45.2021.10.11.23.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 23:31:47 -0700 (PDT) Message-ID: <0659a1c0088e573eb04caa87e6673ebc1ce79702.camel@gmail.com> Subject: Re: [PATCH 1/4] Input: ep93xx_keypad - annotate suspend/resume as __maybe_unused From: Alexander Sverdlin To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Tue, 12 Oct 2021 08:31:46 +0200 In-Reply-To: <20211012013735.3523140-1-dmitry.torokhov@gmail.com> References: <20211012013735.3523140-1-dmitry.torokhov@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Mon, 2021-10-11 at 18:37 -0700, Dmitry Torokhov wrote: > Instead of guarding suspend/resume methods with #ifdef CONFIG_PM > let's mark them as __maybe_unused as this allows better compile > coverage. > > Signed-off-by: Dmitry Torokhov Acked-by: Alexander Sverdlin > --- >  drivers/input/keyboard/ep93xx_keypad.c | 6 ++---- >  1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/input/keyboard/ep93xx_keypad.c b/drivers/input/keyboard/ep93xx_keypad.c > index e0e931e796fa..a0c6cdf8e0d3 100644 > --- a/drivers/input/keyboard/ep93xx_keypad.c > +++ b/drivers/input/keyboard/ep93xx_keypad.c > @@ -175,8 +175,7 @@ static void ep93xx_keypad_close(struct input_dev *pdev) >  } >   >   > -#ifdef CONFIG_PM_SLEEP > -static int ep93xx_keypad_suspend(struct device *dev) > +static int __maybe_unused ep93xx_keypad_suspend(struct device *dev) >  { >         struct platform_device *pdev = to_platform_device(dev); >         struct ep93xx_keypad *keypad = platform_get_drvdata(pdev); > @@ -197,7 +196,7 @@ static int ep93xx_keypad_suspend(struct device *dev) >         return 0; >  } >   > -static int ep93xx_keypad_resume(struct device *dev) > +static int __maybe_unused ep93xx_keypad_resume(struct device *dev) >  { >         struct platform_device *pdev = to_platform_device(dev); >         struct ep93xx_keypad *keypad = platform_get_drvdata(pdev); > @@ -220,7 +219,6 @@ static int ep93xx_keypad_resume(struct device *dev) >   >         return 0; >  } > -#endif >   >  static SIMPLE_DEV_PM_OPS(ep93xx_keypad_pm_ops, >                          ep93xx_keypad_suspend, ep93xx_keypad_resume); -- Alexander Sverdlin.