Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp267776pxb; Wed, 20 Apr 2022 22:14:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmMpX+067TxL6gd5AlRDqupxXpa5XvysBWjJ6p5Nf1bAS/5iNgwb2DRwxak8lUR8g/JYXN X-Received: by 2002:a17:90b:383:b0:1cb:b7f1:9c69 with SMTP id ga3-20020a17090b038300b001cbb7f19c69mr8510633pjb.220.1650518080507; Wed, 20 Apr 2022 22:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650518080; cv=none; d=google.com; s=arc-20160816; b=XmrDl886EEWh062aCEQPQS9NfLSpb4ex/zECKI7aXpiTlseGi2L93+yqVnHqSrmAMK QB6fw6U5w3v7nACbufTyFxvdbO7w7wGW4Aq6fQ4iZqSa8yNCJqZihOMGjuwOxJjx3o8m UgFuLjpzNMPyLkPdqRyqSZR/X0SNLWKWH8+xaW4JYyPUbrT4HnHrs/5KzLHnCw8fJzL7 BFVF2NkNz7Sz76oG4IkD0jgZ3zs0BzlHCYZMLvhRKzIP1L6QnrcZo+MD4xyPjXlLlfXb EWH3f6UaawCV4tESSgC78ZWrOtQGCpFaBKIt27FwfShGIreW4JbFcLwL3D+OC7ofeCkM Qtbg== 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=X9FR8AKqxSGtxzwMaDMuTGWnEW89gIWzc2Hu/wDESD8=; b=xfeyRRzdd++5sscNqsV2Mh7z1r9fSq/axo36JNfq3qfYXad6yRv0LvLFnc+ULQj9+5 TjcrtfNljhMJC0/dp8x9F9oTxg2EhSOlCKAyvl8Gn/wtoJemiG9XtvkAWVOqvHsIANYi VcmhTW9pm2LCIKck8zGxUwrRx6wAWmXhu00S7y8tsTzG4QOpHbvna5SG8YRB2FWkIFl+ 8Sug3Zea1lBXZq81D5lIQoQQ1taC4LuxMl17GqBRHmApyPgkJkV939CvsTxI/zrHV6TL TB0ZQIUqqsBFoBcYItC+59MSY5IT+oS4Iz4dnn6x8kW9o0w+6ThS0sX5ZGx6qh+7vg5U BpMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jJzixJYZ; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a17090aa89300b001ca358df6fcsi292839pjq.110.2022.04.20.22.14.24; Wed, 20 Apr 2022 22:14:40 -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=@intel.com header.s=Intel header.b=jJzixJYZ; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350450AbiDSJzo (ORCPT + 99 others); Tue, 19 Apr 2022 05:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350442AbiDSJzn (ORCPT ); Tue, 19 Apr 2022 05:55:43 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5476920BFD; Tue, 19 Apr 2022 02:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650361981; x=1681897981; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jfHt7wB5XGMSPzgSoV7ck75X/YUam3lD2caa7ddZDys=; b=jJzixJYZOk7IjXnWaZ0RrcNxJO4WRWe9lKOMXYok23NrNoYV30sVbZPZ OqYErJyYRPhjn6NqwCCxiIb07MKCprWDazrJg0E4WuaRTYkOARmm02+bs HBMuz7s6l33lRfPXRmlRt5r1CqByQ4vhJmUXBJQMFBxAAuVPDkc3ZQov/ ycIw2cdsmw8rUJC2k9h7XVfO5kHKH5nSj99C5VexZdgMBNjV/l7qW6Eom Y5th6TrbDCaX2puUBcoI0pqUYvEDHQgO7WrnFgkFcJWfz/5X6fNMelrj7 sP3uPh3VonlnzJKBqw+bw/8NzYunePizqxCbf78CfnnQTWcafTI4wI1Oe g==; X-IronPort-AV: E=McAfee;i="6400,9594,10321"; a="263485752" X-IronPort-AV: E=Sophos;i="5.90,272,1643702400"; d="scan'208";a="263485752" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 02:53:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,272,1643702400"; d="scan'208";a="576022673" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.135]) by orsmga008.jf.intel.com with ESMTP; 19 Apr 2022 02:52:57 -0700 Date: Tue, 19 Apr 2022 17:45:21 +0800 From: Xu Yilun To: Nava kishore Manne Cc: Joe Perches , "mdf@kernel.org" , "hao.wu@intel.com" , "trix@redhat.com" , Michal Simek , "linux-fpga@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , git Subject: Re: [PATCH v4 2/5] fpga: fix for coding style issues Message-ID: <20220419094521.GA322948@yilunxu-OptiPlex-7050> References: <20220416133719.3382895-1-nava.manne@xilinx.com> <20220416133719.3382895-3-nava.manne@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Apr 19, 2022 at 08:15:57AM +0000, Nava kishore Manne wrote: > Hi Joe, > > Please find my response inline. > > > -----Original Message----- > > From: Joe Perches > > Sent: Monday, April 18, 2022 6:04 PM > > To: Nava kishore Manne ; mdf@kernel.org; > > hao.wu@intel.com; yilun.xu@intel.com; trix@redhat.com; Michal Simek > > ; linux-fpga@vger.kernel.org; linux- > > kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; git > > > > Subject: Re: [PATCH v4 2/5] fpga: fix for coding style issues > > > > On Mon, 2022-04-18 at 09:54 +0000, Nava kishore Manne wrote: > > > Hi Joe, > > > > > > Please find my response inline. > > > > > > > -----Original Message----- > > > > From: Joe Perches > > > > Sent: Saturday, April 16, 2022 10:29 PM > > > > > > On Sat, 2022-04-16 at 19:07 +0530, Nava kishore Manne wrote: > > > > > fixes the below checks reported by checkpatch.pl Lines should not > > > > > end with a '(' > > > > > Alignment should match open parenthesis > > > > > > > > in fpga-mgr: > > > > Another possibillty would be to change the function arguments > > > > > > This API is there for a long back. Not sure changing the function arguments is fine or Not. > @yilun: Is it ok to change the function arguments? Joe's example code below doesn't actually change any function definition. It just tries to store the value of 'min(mgr->mops->initial_header_size, count)' in 'count', thus to reduce the length of the 'fpga_mgr_write_init(...)' expression. So I think it is OK. Thanks, Yilun > > > > > and > > > > > > > > in fpga-region: > > > > Ideally keep the include declaration and definition styles synced > > > > > Will fix it in next version. > > Regards, > Navakishore.