Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp915482rwi; Thu, 20 Oct 2022 06:45:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZrL/3F0HRbfFK88feM41Vn7Zl9n2RvLTq70KxTfUky8IsZ/9AO3+m8imTIlWTtI/AdYAn X-Received: by 2002:a17:907:1b0e:b0:72f:9b43:b98c with SMTP id mp14-20020a1709071b0e00b0072f9b43b98cmr11142510ejc.710.1666273513057; Thu, 20 Oct 2022 06:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666273513; cv=none; d=google.com; s=arc-20160816; b=qDvAUljE3SuL0KTlKnGrNyiFZ807q4N7IFcNGVCeZwZBohJIMlOQx0k3wrcqW9VMfS tz9D/18eixt030gaeUfPMns5ZnYGgF1GE3AqfLsvn8O+kwWksTaFNXRNIG6p0Vpz7XcW dmFLM/B8lsLW/8xkR9GviTPLJ0z68eMRMuAjJM7ndzIjEJEdaKLQU5oBRAdxCd9Ohs3P 2rDdxpf5lkbZavlVpaOvXIinHL10h0GtkLVVAXschHO52B5lwkWAVaNXqSSgwtoaghYC rWrhZ6zlqdo3PeEWw0A/bim4WpaFGBQNcAS4nPK9Lj+gkomGH+UxceAbypib80semRNh we4g== 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=y+OdYiJZ9flusayHZbDyausHGYURV0rqhgwugB0gRkw=; b=MhHJrKqMQsUrr6MeFivwINVtfu2bPp7lsag3z7Sokq797Mx/En7XiSAK+DCJAkyx1f b5LP7jV9xyxCmz/NvvdP5GMIbIe8h55F2zah0p0o/62juC1MJcWJyG0XabwLolu+r5ZP dy16TRf18acwK6K02A02SV8aXRqhuoP2NWWjaDyOfqq/ByXonD4QKUgow3GgCDviFY6x 3J6Et8Ps0bBrtsTxpJ+LnLFwA7nGcFE1gnD8o4CVC3RTTNOUQUsPpgV3MXY7uFmG7qp0 DmC8e2jPlEiPyb6eS1r2CNqgJ94wedexTqcouq405kIdR/2HE3Djz+V1THadTUbuw+l2 DKMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b="h/ONn8OD"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a50c8c9000000b0045c329a4b37si13995130edh.146.2022.10.20.06.44.47; Thu, 20 Oct 2022 06:45:13 -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=fail header.i=@mailo.com header.s=mailo header.b="h/ONn8OD"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbiJTLsv (ORCPT + 99 others); Thu, 20 Oct 2022 07:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbiJTLst (ORCPT ); Thu, 20 Oct 2022 07:48:49 -0400 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B521BBEFC for ; Thu, 20 Oct 2022 04:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666266519; bh=P+kmPU5kkvXfWUROM7rwscCiZlOGpAiN1PmgpAxx1gg=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=h/ONn8ODQuIfFIpvNuv8BRpSvLTs1xZpzNNQd5orhnYdYi91ppLn0TpovczEFLcnq DhiDPSu4NzpLeaYZw00MvZctM53m8PzQciblNGpRdmP2NYNmeJwZlxJmIK9kIsN3sL tBj14H83Z0tadPT9HbJT2zSGLDrWxv8d0SdkqNmg= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via [213.182.55.206] Thu, 20 Oct 2022 13:48:39 +0200 (CEST) X-EA-Auth: WbyAjLEHV5U2tK4BVpGMKa3Z5g2AYZP/VbZR8AOhE6Fo5VgK1ofkcL8OJ/B6TfjsmO+Fuan49nJN/SsQLeDQf8oKJauITOq7 Date: Thu, 20 Oct 2022 17:18:34 +0530 From: Deepak R Varma To: Julia Lawall Cc: outreachy@lists.linux.dev, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kumarpraveen@linux.microsoft.com, saurabh.truth@gmail.com Subject: Re: [PATCH v4 2/2] staging: most: dim2: correct misleading struct type name Message-ID: References: <6b772a1ac06ae3b0d63e198e7238c1590b14703a.1666208065.git.drv@mailo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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, Oct 20, 2022 at 02:00:29AM +0530, Deepak R Varma wrote: > On Wed, Oct 19, 2022 at 10:08:53PM +0200, Julia Lawall wrote: > > > > > > On Thu, 20 Oct 2022, Deepak R Varma wrote: > > > > > Correct misleading struct type name dim_ch_state_t to dim_ch_state > > > since this not a typedef but a normal structure declaration. > > > > > > Suggested-by: Julia Lawall > > > Signed-off-by: Deepak R Varma > > > --- > > > > > > Changes in v4: > > > 1. Correct patch subject and log message. Use struct type name instead of > > > variable name for the change description. Feedback from julia.lawall@inria.fr > > > > > > Changes in v3: > > > 1. Patch introduced in the patch set > > > > > > drivers/staging/most/dim2/dim2.c | 2 +- > > > drivers/staging/most/dim2/hal.c | 4 ++-- > > > drivers/staging/most/dim2/hal.h | 6 +++--- > > > 3 files changed, 6 insertions(+), 6 deletions(-) > > > > > > diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c > > > index 4c1f27898a29..a69a61a69283 100644 > > > --- a/drivers/staging/most/dim2/dim2.c > > > +++ b/drivers/staging/most/dim2/dim2.c > > > @@ -161,7 +161,7 @@ static int try_start_dim_transfer(struct hdm_channel *hdm_ch) > > > struct list_head *head = &hdm_ch->pending_list; > > > struct mbo *mbo; > > > unsigned long flags; > > > - struct dim_ch_state_t st; > > > + struct dim_ch_state st; > > > > Is there another use in service_done_flag? > > Hi, > I did not understand your question fully. This is from a different function > try_start_dim_transfer where the variable st is used down the line in the > execution. This time the channel state is retrieved by calling > dim_get_channel_state function. The state is simply computed and set. Should I > improve this as well? > > If you are asking something different, could you please elaborate? Hi Julia, Can you please review and comment on my response? > > ./drv > > > > > julia > > > > > > > >