Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5683718rwb; Wed, 21 Sep 2022 10:52:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wSDKoV8e3GDoYSq/S6Jwjmslgw9Zh9P+kFbljYWqZBzuYjVdCK5iM/P/neUqgcjgHq5i/ X-Received: by 2002:a17:907:78d:b0:740:33e1:998 with SMTP id xd13-20020a170907078d00b0074033e10998mr22078379ejb.162.1663782778975; Wed, 21 Sep 2022 10:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663782778; cv=none; d=google.com; s=arc-20160816; b=IvrBE3RfYrmYJd7DVCaleo4OYMi4jjOod1/G4ot4wjXqRJdssSQNhbUg8zHm4fhZjI ZICnFFO3z1qI7p6QyGZhYF0pSuxUw3fdBaBfn0UR2CjgqBHxarYVo94A/6yzBt7+sS4s elXRyxdWA1w7tmDlvwigbRJGT8HK/X2hwpBIUYTOAO+6tE9tVphvbOo/O3o6mplralnw O306ursJLa/NWWq5ONPIXx+IthzUhjejKlhT8+qfkiusIO+ZpykY6qtn7GG5xeaNx5O0 NDsJG/nkJPVGu+8nCF9IkHIn+y/Ep3rJaySZkUVbSnV2CpeCY/O7vMEz1Z8D80n2KmAT ywUg== 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=EQ79eytJ5tBrZDwsUR55R7Jp8lvBWtSTveQmK+o9LbI=; b=1Dpc3aXKI82+hKFpXC4VTGS0rrG7g31bbkxhc3FY0ajg4Snz5ckAGjhIEzoezDKL0B 1N7o/D827rJaZxGp5mbsKPJnv1s+YFY697xkHNhOemAr5qeAGMlswWKs8czu3Atwjufe YxaM+DRs4UNIrfJJ5X9IEDuSxUWF7YxeKlyLgcXxsuvalsCrCPrIpnVjjpo5BTAQ5SbT MuM1vsBp88xKXWA9HuTjsmoha/3raJaNlopJoJSh2gZOeJwJrHh1v1jqXc6wTcbqC2Ki 00HNexFKtZFgWrwxRTehuwdOjsFNOVSPHu9NITR3Dyvj1bPAiU9eLNKijwj9zh7Bwu2S Ky/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZsVCx5+; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a056402128300b004542d6cbc47si2675138edv.521.2022.09.21.10.52.32; Wed, 21 Sep 2022 10:52: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=@kernel.org header.s=k20201202 header.b=sZsVCx5+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbiIUQxO (ORCPT + 99 others); Wed, 21 Sep 2022 12:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbiIUQwk (ORCPT ); Wed, 21 Sep 2022 12:52:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51285322; Wed, 21 Sep 2022 09:48:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E5CC7B831B2; Wed, 21 Sep 2022 16:48:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEEB3C433D6; Wed, 21 Sep 2022 16:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663778929; bh=lrEPP288W1ztvVtKqLc2Qx5zAzNeiXnqsUHoGX4blzA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sZsVCx5+DxjcXTU2UWOzibWtuKlfXVoueVFoDHkj6tx1aVXXjJvbMZIpSfNhzbxPR sutHHAjpQ36zAbpEZ6+cvRg3j5q65wW40eBvkrFAHsxdUKl33LP5Kf5y0Y81ZEyb28 8dRbyIydXTkT3ajVJmYYpe+rFAyjqHVnnFM8zg+u2685rPrQ2uRYME2UfGIxxROwXD 7Ja1AxkK3khqj7enwTtxSfoxi4LZy7D92I5qzDkWEy2xE5sE2wogzqBW1YnbOaFzU1 qptVgQH6AIiXHZRFkYDI+xyOTWEoNlbjojgVSHMRSvY/xdoWQRcJgBd+oS5B6maj3w 3gKHSSVPmYJug== Date: Wed, 21 Sep 2022 17:48:45 +0100 From: Conor Dooley To: Kumaravel Thiagarajan Cc: linux-kernel@vger.kernel.org, sudipm.mukherjee@gmail.com, arnd@arndb.de, linux-gpio@vger.kernel.org, linux-next@vger.kernel.org, gregkh@linuxfoundation.org, bagasdotme@gmail.com, zengheng4@huawei.com Subject: Re: [PATCH v2 char-misc-next] misc: microchip: pci1xxxx: use DEFINE_SIMPLE_DEV_PM_OPS() in place of the SIMPLE_DEV_PM_OPS() in pci1xxxx's gpio driver Message-ID: References: <20220915094729.646185-1-kumaravel.thiagarajan@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220915094729.646185-1-kumaravel.thiagarajan@microchip.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, Sep 15, 2022 at 03:17:29PM +0530, Kumaravel Thiagarajan wrote: > misc: microchip: pci1xxxx: use DEFINE_SIMPLE_DEV_PM_OPS() in place of the SIMPLE_DEV_PM_OPS() in pci1xxxx's gpio driver ^^ FYI, double space in the subject here, rather a mouthful though and surely everything after SIMPLE_DEV_PM_OPS() is redundant? > build errors listed below and reported by Sudip Mukherjee > for the builds of > riscv, s390, csky, alpha and loongarch allmodconfig are fixed in > this patch. allmodconfig has been broken for a while now, and this patch appears to have been sitting for a week & a second fix has shown up at: https://lore.kernel.org/all/20220919094250.858716-1-zengheng4@huawei.com/ I do note that Zeng Hang's patch does slightly more than this one does, but idk about about the PM APIs /shrug. Has this just slipped under the radar since so many of us were attending conferences etc the last while or are you looking for Kumaravel to do something more here? Thanks, Conor. > > drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c:311:12: error: 'pci1xxxx_gpio_resume' defined but not used [-Werror=unused-function] > 311 | static int pci1xxxx_gpio_resume(struct device *dev) > | ^~~~~~~~~~~~~~~~~~~~ > drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c:295:12: error: 'pci1xxxx_gpio_suspend' defined but not used [-Werror=unused-function] > 295 | static int pci1xxxx_gpio_suspend(struct device *dev) > | ^~~~~~~~~~~~~~~~~~~~~ > > Fixes: 4ec7ac90ff39 ("misc: microchip: pci1xxxx: Add power management functions - suspend & resume handlers.") > Reported-by: Sudip Mukherjee > Signed-off-by: Kumaravel Thiagarajan > --- > Changes in v2: > - Mention as Sudip had reported in the commit description > as suggested by Bagas Sanjaya > --- > drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c > index 9cc771c604ed..4cd541166b0c 100644 > --- a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c > +++ b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c > @@ -405,7 +405,7 @@ static int pci1xxxx_gpio_probe(struct auxiliary_device *aux_dev, > return devm_gpiochip_add_data(&aux_dev->dev, &priv->gpio, priv); > } > > -static SIMPLE_DEV_PM_OPS(pci1xxxx_gpio_pm_ops, pci1xxxx_gpio_suspend, pci1xxxx_gpio_resume); > +static DEFINE_SIMPLE_DEV_PM_OPS(pci1xxxx_gpio_pm_ops, pci1xxxx_gpio_suspend, pci1xxxx_gpio_resume); > > static const struct auxiliary_device_id pci1xxxx_gpio_auxiliary_id_table[] = { > {.name = "mchp_pci1xxxx_gp.gp_gpio"}, > -- > 2.25.1 > >