Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4151079pxf; Tue, 6 Apr 2021 09:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4OuUkdoNQPxlAeO9wdLK0HRoqtJYDOBX9ByDsS3HSX/t1dhlEmgeZbWhmqcUgLiE8eT1h X-Received: by 2002:a5e:8416:: with SMTP id h22mr24498927ioj.119.1617725101703; Tue, 06 Apr 2021 09:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617725101; cv=none; d=google.com; s=arc-20160816; b=Jv38RecnzyMC889arOcbym0q92cVx3QWWXIk287cO5tSi3VJKxDIJFJ1OPfusu+yjA pbouwWEDWjL+4Pen6W4gJot50TphuPo+zzDBKbYVYduIKmVsQw1ULmCVH1Sznj6qPFQV sB97UoqZ5upHSn06wCSNe2TzJ+0ASVF71ItRHQizRg0jpTb7Xsd9+sa0/vi05jcZ2q/p 57GQ3jO5SU3uFyrxCwvxG4ucDQnuMrFzrMnqG2DuzgO3xAWEX2p2JCz075Sd2qpn53Xk yqsq6u86ZW/c+D4c9c95RhfkmA7FEtSJ42RGo4r/3YWVR0XxcV4hVtHLqQ9nYEzl89al w+Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=VcV9gR69rbYj1Ug/q7udPose6m5Yebf2eacT9CXgLjM=; b=blI5f9JpBA7DntiO9cACE8AO3+AjMxE457oYtNWpbQEGiabqUSCjb2zllLe9NnhN0H pJnXso1sOg/iZ/A7cwzn0HnpVaZe+8p3syTPp6dfD1oQ1DPMiHV2C/d3B4AxRgG4MvJ+ XNbnLa1OF4usTwHDmCDEfdNGf8o7TXHuBmXD1iSrqlFS8WfB/ZHLrCeT1XDIgeIeJrMq cVqPNgSyC6gIFxJEvplSvSR+IYNLkyRhv1aUw/QSA6alSa2sy/RVsznyMjAaVKIYwqxj Vlm+B0KkT1/vCdL9QfGSfdXOV2NhDzzuMpifHX8fsc9oZ+5kvcrwzhdpZIdvcaN5XLl9 To3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si18300388jaq.71.2021.04.06.09.04.41; Tue, 06 Apr 2021 09:05:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238603AbhDFGjU (ORCPT + 99 others); Tue, 6 Apr 2021 02:39:20 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15132 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244060AbhDFGjS (ORCPT ); Tue, 6 Apr 2021 02:39:18 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FDyV14WG7znXSL; Tue, 6 Apr 2021 14:36:25 +0800 (CST) Received: from [127.0.0.1] (10.40.192.131) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Tue, 6 Apr 2021 14:39:02 +0800 Subject: Re: [PATCH v1 1/2] scsi: pm8001: clean up for white space To: Bart Van Assche , , , CC: , , 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> From: luojiaxing Message-ID: <3dd042b3-eb86-f0aa-5542-3f763f6830e0@huawei.com> Date: Tue, 6 Apr 2021 14:39:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <7f8aef00-07bc-6b63-19a1-85a8153387cd@acm.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.40.192.131] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks Jiaxing > > Thanks, > > Bart. > > . >