Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8180C6FD19 for ; Thu, 9 Mar 2023 20:59:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbjCIU7C (ORCPT ); Thu, 9 Mar 2023 15:59:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbjCIU67 (ORCPT ); Thu, 9 Mar 2023 15:58:59 -0500 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65CD6F2C34; Thu, 9 Mar 2023 12:58:57 -0800 (PST) Received: from [192.168.0.2] (chello089173232159.chello.sk [89.173.232.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id D14637A0158; Thu, 9 Mar 2023 21:58:55 +0100 (CET) From: Ondrej Zary To: Sergey Shtylyov Subject: Re: [PATCH 04/32] pata_parport-bpck6: pass around struct pi_adapter * Date: Thu, 9 Mar 2023 21:58:49 +0100 User-Agent: KMail/1.9.10 Cc: Damien Le Moal , Sudip Mukherjee , Christoph Hellwig , Jens Axboe , Tim Waugh , linux-block@vger.kernel.org, linux-parport@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230307224627.28011-1-linux@zary.sk> <20230307224627.28011-5-linux@zary.sk> <6040658f-990f-8cca-eabb-09e97e09c547@omp.ru> In-Reply-To: <6040658f-990f-8cca-eabb-09e97e09c547@omp.ru> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202303092158.50217.linux@zary.sk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 08 March 2023 21:33:59 Sergey Shtylyov wrote: > On 3/8/23 1:45 AM, Ondrej Zary wrote: > > > Remove Interface typedef, pass around struct pi_adapter * down to all > > functions instead. Remove PPCSTRUCT define. > > > > Signed-off-by: Ondrej Zary > > Reviewed-by: Sergey Shtylyov > > I had some nit tho -- see below... > > [...] > > > diff --git a/drivers/ata/pata_parport/bpck6.c b/drivers/ata/pata_parport/bpck6.c > > index fa1f7d4fe3cb..bc128a2c444e 100644 > > --- a/drivers/ata/pata_parport/bpck6.c > > +++ b/drivers/ata/pata_parport/bpck6.c > [...] > > static void bpck6_connect(struct pi_adapter *pi) > > { > > + struct ppc_storage *ppc = (void *)(pi->private); > > Parens around pi->private are unnecessary here and elsewhere... > > [...] > > diff --git a/drivers/ata/pata_parport/ppc6lnx.c b/drivers/ata/pata_parport/ppc6lnx.c > > index 5e5521d3b1dd..f12bb019fc61 100644 > > --- a/drivers/ata/pata_parport/ppc6lnx.c > > +++ b/drivers/ata/pata_parport/ppc6lnx.c > [...] > > @@ -101,26 +101,27 @@ typedef struct ppc_storage { > [...] > > //*************************************************************************** > > > > -static int ppc6_select(Interface *ppc) > > +static int ppc6_select(struct pi_adapter *pi) > > { > > + struct ppc_storage *ppc = (void *)(pi->private); > > Parens around pi->private are unnecessary here and elsewhere... Yes, missed that. But it's "fixed" in patch 9 by removing this code :) -- Ondrej Zary