Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8060258rwp; Wed, 19 Jul 2023 04:50:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVr1xeo8sSmIb6ZLWy+9AfPXrCl+LviIsk2rKFrpb6NBSTWoAtKzPq2m1GaznG71KG+VzJ X-Received: by 2002:a05:6a21:7899:b0:131:f3a:4020 with SMTP id bf25-20020a056a21789900b001310f3a4020mr2404268pzc.33.1689767449048; Wed, 19 Jul 2023 04:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689767449; cv=none; d=google.com; s=arc-20160816; b=CJy1hkpdW4XLdWUSLwo7wGW+9AEUHZtLTmvkKleuCPun9BeatzMeSXas3eisInj1mI Jk9TVvUoP6c4jHk3NUbU/j8EXE2fyMqFBClj7RlaZKfUVkWSh6pJcIiw4/xxxdiKLsBd 18trlxd6zF+GSdHtfKUo4R78HbM62jg/sWIBwlIuG4h6guY5DkfOVSr7FPUr4D5Ef5pB EeS567LSrVJSgB/TyV2H8/TnByrSne//8ExkqCkrn21RKV9e4Fqjvhk274l0k8F12nnN H1xc44otwr4nKQBgbvPGej7ICHPpSI/yRptC8Un7dQVgmwFV+57OraNVU//I/llJyYgY 0kTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=E/5iUbGiXzAaS9O8/8KimlUeTindwAnoLDM1OEOMMDI=; fh=+LZMx99eKdZnSCUsG36abv/JBBaAnqx3Kaq4Xkn45tA=; b=TujngQj/TCd0Qoh7yZ5h/Qz+B7LBhtbK39I0hxmmSsfwN1NuEHXP4CpM6+qU9X3ejR 97NuuOVeKgzyatoqelRqI1KWPHrzgxIbglJpvL8pknl9LnYA/3gxPTwjwNoxMYMIS7Bg PlHMnZmumrOjbbfKFDRECuGs5jCOq2Y/Sw/avuvj9TdjsvguROrCNCATtPFArbim4SXK LUNLWJbw5eeKHrUdkZFd/gXybQXUV0mSTgMBD99lU2qGt76gY6RmQxKXW4dAfMNv+t/x VeR0hn8rf4cA37vBWFD/AUJGowsuFUxhNgTKzaIxzrZpmNh8RZ7MxK2UmAtmSRVdxYcj VRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t+IJmrMi; 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 d10-20020a056a00198a00b00675807330bfsi3291700pfl.194.2023.07.19.04.50.37; Wed, 19 Jul 2023 04:50:49 -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=t+IJmrMi; 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 S229732AbjGSLa7 (ORCPT + 99 others); Wed, 19 Jul 2023 07:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbjGSLa6 (ORCPT ); Wed, 19 Jul 2023 07:30:58 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 839F610D4 for ; Wed, 19 Jul 2023 04:30:57 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbea14706eso62609875e9.2 for ; Wed, 19 Jul 2023 04:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689766256; x=1690371056; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=E/5iUbGiXzAaS9O8/8KimlUeTindwAnoLDM1OEOMMDI=; b=t+IJmrMiM2UFEWyJB5fnofKgUagsM41Iejeg2bBq3bG+3nK0y7Hc1nADQgafszFH6F b+xkMU/Fj4d0CBnyAg3HZREkKKJQa5t1ylx5De/EGJ2Ma2eVf+EI0bBLTpZfGue0KDn8 TAmiAtts3UFBGAeK9I0P8w4rw7iE5joD4i+qU6iKap3O3v1euGPWScsDZeMfuz4Oehah UGF9asLpKlPso8fOrNe5vjfTSNqE2vXC5ee/cDkZd6P+V+x/zuU5b2yS6BM5ivNfG095 HkogoD1uEe4dhA0cxlxenb4Ee78RG+lV/keowM621njeNSHVViCLi7WhePwHPrXp0wxD Vhtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689766256; x=1690371056; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=E/5iUbGiXzAaS9O8/8KimlUeTindwAnoLDM1OEOMMDI=; b=CNt9ruPcUtE27EZWrlDEoGX2+HxKXnMEF86dlSJf9jYNOxJ24ko5i4wuhExjMSqyHZ l55ahW37JD4HGUAKZtgRWWK/lwfH2lBFmusIdjoBN5hxLM6lpmCL4Cr1CrY3zeb/j8gN HZdTY1qvBUB59RQSCS7ZEgnH9Yealau25v8HTCsHM50AScjdJ0PrvwNu5LYd/yVKJjeG PjJnRUHPGx3V3JEcbbO0PhKnRAFiCM3/+2rdI8CoknpV9yurZHb2+42GnLfOXhRzy94s BvG246+gv+ubeiqTKU/GKwivNQ8gfTbfnuKfmUDjgt2U095Dr6ll9ALPiSH4a5cWFRQi njUA== X-Gm-Message-State: ABy/qLbfDC7+ci5NwUGYkWW8MadnpDH4oykQHCU4YRG3Hc6W8PAhX7Dx Hcx9AG/lr4TFiMtyB69VEakjaQ== X-Received: by 2002:a5d:4bcc:0:b0:314:11ab:11a0 with SMTP id l12-20020a5d4bcc000000b0031411ab11a0mr13312036wrt.34.1689766255929; Wed, 19 Jul 2023 04:30:55 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id b7-20020a5d5507000000b003142ea7a661sm5039716wrv.21.2023.07.19.04.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 04:30:54 -0700 (PDT) Date: Wed, 19 Jul 2023 14:30:51 +0300 From: Dan Carpenter To: Arnd Bergmann Cc: Arnd Bergmann , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Shenwei Wang , Andy Shevchenko , Marek Vasut , Marc Zyngier , Dan Carpenter , "open list:GPIO SUBSYSTEM" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpio: mxc: fix unused function warnings Message-ID: References: <20230718193913.3578660-1-arnd@kernel.org> <319ee5f7-2dbd-430d-8ab1-a7b072ac7a9f@kadam.mountain> <3e7dbbf3-351c-430e-9bfe-a9e9e9cb895c@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e7dbbf3-351c-430e-9bfe-a9e9e9cb895c@app.fastmail.com> 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Wed, Jul 19, 2023 at 01:26:06PM +0200, Arnd Bergmann wrote: > Adding __maybe_unused to both mxc_gpio_runtime_resume and > mxc_gpio_runtime_suspend would avoid the warning, and that is > what we used to do in the past before we had the new macros, > including for the mxc_gpio_noirq_suspend/mxc_gpio_noirq_resume > functions in this driver. > > Since I'm moving the driver to the new method, it's best to > do it for both pairs of PM functions at the same time, so > the __maybe_unused annotation becomes redundant. Ah, sorry. I misread the patch. regards, dan carpenter