Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp921874pxf; Wed, 7 Apr 2021 15:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysDCQ1OuBMYjZjxYvYOBzvy0sSev7gY0VpWpU+ZVG7DvYEHlkKbVMC2ED8HhcteXAf+Kh2 X-Received: by 2002:a63:9dcb:: with SMTP id i194mr4988039pgd.87.1617833274125; Wed, 07 Apr 2021 15:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617833274; cv=none; d=google.com; s=arc-20160816; b=l98+DGeJdP56aVll4/IAxsY8SxXQRFDSBu/0xys1pjHeZM4J0/8PNjlqDQFBx0OjgY x3Yn0hZHkfmGvDBQzGPzoP2B0bzeHNzuLzYBVDxUAMipN+ulI2vOIw79665Lca5u/dyi ACKqDpBUaxvONsv+FYHqo2D3sR08kddoGTZQNIN3Z92M5dDqgLHxJgsTDWQOUC9QcjZl 2kA8zSAq5tNEFOEIL1AbsGi4YtiA1CrxioBossCfu+0vWnuoApIZAfLwj7ir7mK4dzMH 0zIfaqpdT66ImXRdNC4CgaBs4tD2SXSQyJLjcIKhrAVqS1ixdgrcGZXP9nHiSIYOuuvv Z5vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ibmtw0ysWt020Up+NK0WF++Cj5A9I9G2v83UTNMUTYk=; b=IH52EZyCW5mfdGD7r9tD3mlCLjN9VPxW4TnZCZinfzIygvbeTMgV4tS1j0cSAgH2pQ yMWrbnijqbu1u7xdcfMU4DwC9AKEv3qhDiaWQHdWAc+2VopB9perXZgPkYG83RG3j6D5 M5n+SyB01oUb4Oy1pckKtGIHVlx5Uf+/T0/1VdANOZYEFt6hft+BER8F0I/xWiU1aqqF SQnFRKuJZDCZvtEVUGb5XCdDOtzAgKKItbHJBwvXHkY6hRlu/GVkLBk6qTiu2XJ6m2MA gta0HRcXw0vy4gdzEPFvftMyfHhBPk/TwgjBucO6FLPoKSe1wFdybRR2CJMfsEbj21sF 3loQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz6si39211pjb.36.2021.04.07.15.07.42; Wed, 07 Apr 2021 15:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233532AbhDGV4a (ORCPT + 99 others); Wed, 7 Apr 2021 17:56:30 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:47094 "EHLO mail-pf1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231545AbhDGV41 (ORCPT ); Wed, 7 Apr 2021 17:56:27 -0400 Received: by mail-pf1-f172.google.com with SMTP id d124so283177pfa.13; Wed, 07 Apr 2021 14:56:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ibmtw0ysWt020Up+NK0WF++Cj5A9I9G2v83UTNMUTYk=; b=dQiRa6wF75jdNRTiPUj6gCBJrfHBLsKx4Zy+buapp7YB7aSLs9iltsIf0q/E9be8Yt 9+LiOD1rayPQd4smEAL9ewDXy347SLZNd9AAoXiVnJW41K+K/PSZD8QPkXZ7WzA3yId7 nXAVm4ePrroXAr69ybC3E/MTS25nI0sZTaHBl/XARaF534B5Nc6c74BQmY+UbkJvgknY E8vXqoYD24W+U/5kWbxTMpW+o6TM5wurKzIlD4cCpHbEJhRLxde+ZPLcbb2tpcntNw9r L47/1XjiCrQUaulkuB/+B4gX9Y6NiuhpoRy2rCuBAbvPgzj6p84c8rl2JtIyAktv1JCQ sqnA== X-Gm-Message-State: AOAM533s6K2B5c3BqU0haCnwHqUM/t/bnS+fcRBbmn7zAKQD6tHAdqoR jdcXmii611ftx2O2rf/apdA= X-Received: by 2002:a05:6a00:c93:b029:20d:1b8e:cfaa with SMTP id a19-20020a056a000c93b029020d1b8ecfaamr4734081pfv.48.1617832577086; Wed, 07 Apr 2021 14:56:17 -0700 (PDT) Received: from [192.168.50.110] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id j30sm23046881pgm.59.2021.04.07.14.56.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Apr 2021 14:56:16 -0700 (PDT) Subject: Re: [PATCH v1 1/2] scsi: pm8001: clean up for white space To: luojiaxing , jinpu.wang@cloud.ionos.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com References: <1617354522-17113-1-git-send-email-luojiaxing@huawei.com> <1617354522-17113-2-git-send-email-luojiaxing@huawei.com> <7f8aef00-07bc-6b63-19a1-85a8153387cd@acm.org> <3dd042b3-eb86-f0aa-5542-3f763f6830e0@huawei.com> From: Bart Van Assche Message-ID: Date: Wed, 7 Apr 2021 14:56:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <3dd042b3-eb86-f0aa-5542-3f763f6830e0@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/5/21 11:39 PM, luojiaxing wrote: > > On 2021/4/3 0:01, Bart Van Assche wrote: >> On 4/2/21 2:08 AM, Luo Jiaxing wrote: >>>   #define AAP1_MEMMAP(r, c) \ >>> -    (*(u32 *)((u8*)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) >>> * 32 \ >>> +    (*(u32 *)((u8 *)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) >>> * 32 \ >>>       + (c))) >> Since this macro is being modified, please convert it into an inline >> function such that the type of the arguments can be verified by the >> compiler. > > Sure, but still keep the function name as AAP1_MEMMAP? The coding style requires lower case names for functions so the function name probably should be converted to lower case. Thanks, Bart.