Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1382761pxf; Fri, 2 Apr 2021 09:02:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr0a4z5r1Hpd1reMivpMRwpayE4yEViv1Xw1hUlLxcy6XXMOaCerbnv31i032vwdSKysOt X-Received: by 2002:a50:ec0e:: with SMTP id g14mr16190537edr.264.1617379379578; Fri, 02 Apr 2021 09:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617379379; cv=none; d=google.com; s=arc-20160816; b=Cvt6KiZIiambxmJOVo/LIjNvUO2nCHG45ilD0PuWKovBApwfyfN/AI+J+chcBbmPw0 GRMZ4Uv5nlbAbbtnAaFAl8QEtwGGn+KiYkq0yrsi71wpKIqKZ0xPhhesKHLyyuUx18ei Q34sAfk9EFkmsQWGNe/ATLILac3jOsZHBeqp0t1Xs6J+3tHbljHyTlfOdyD8g3bDgUnn gof7K5uCLQ8yENIlraH/XYmwH7UtOALwDW482NNKmX3jcbYwZcC4tDxq7nXf2qqjnfo7 cXbczLA8/KkPUqNzDg7T/nntIFToquTT4hXHWv4LpkWSLwlzc5OhjdOhuTKqvoQsCT+K 1cqA== 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=adQrXD/QMPMSZKmlrv3Spu5lFtnFhcFlL3hMBNKAdAI=; b=VX8gW5sGcRDirQXWQ8lTSdMkm1ok/fCm608nULd5CRVnlVJrNMO5CGi9DtTiqZO0gt HqDfEuFO7+B3UteG0fjCWnDmfmYJuJj6RfnTiSy1p5fSvcFVHfRrKXkbnHhQ7Cy5SUeV 1ZpegeMs8rWrZZ65g4nEK1oJw8ey78qyDlb9prTyialK8MTP8cjpVys3ih3bvDUkMLat AJF7EYo1GGl+tRQU/hnTOwxZ6LWcVlFfz6M0i+/FZbLcN+mH6c6uGbbDxCtsUKxwTscB KDWmW1IUppgFB/+aqD2TUM955mjU/3TwQo4i9ysqQlkUE7JVJ6bwvnQW3PcdMOs3qHTz CiVw== 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 h18si6724630ejk.355.2021.04.02.09.02.33; Fri, 02 Apr 2021 09:02:59 -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 S235659AbhDBQBf (ORCPT + 99 others); Fri, 2 Apr 2021 12:01:35 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:44978 "EHLO mail-pl1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236392AbhDBQBf (ORCPT ); Fri, 2 Apr 2021 12:01:35 -0400 Received: by mail-pl1-f173.google.com with SMTP id d8so2690000plh.11; Fri, 02 Apr 2021 09:01:34 -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=adQrXD/QMPMSZKmlrv3Spu5lFtnFhcFlL3hMBNKAdAI=; b=qeipdfER/dQ9TJmwanDpKc4nqbQjmOIseHg4znVAM4l4r/IUlAL0eLTIsUICm56SP2 6KAqhPknBEC360h5jKO8P7NR59b9nSUj5bOrABn+gg6eSte48bRuU1tmmUmT5eC30bsU S22/U6++89H2Afn5iQEjUKdA8JkKFF3EGrOthgITCiU3VY4wb1vEiaoql9Z/RzEMmEpX STNWpvV630Bact/ZfinB6wIjmuBrRNxpHoXs+DZUQKVJfU58aPiJ1RoaZMMe2Hlf3P6R jtyw16mXPodhEgJYYpItbIh16kLnvPoYHc2FenyFSNoM1xMOoW0tBGVhx7qxhiUop1A7 wa+A== X-Gm-Message-State: AOAM532QU4sPz1ad5/msF9tG/2uq3cL6F6Ls2twuVeuq48yIhn6OztP2 ipGyAx32MmxxkOFhsd81RMQ= X-Received: by 2002:a17:90a:e50c:: with SMTP id t12mr14126664pjy.138.1617379294014; Fri, 02 Apr 2021 09:01:34 -0700 (PDT) Received: from ?IPv6:2601:647:4000:d7:b5d6:3f29:a586:36e2? ([2601:647:4000:d7:b5d6:3f29:a586:36e2]) by smtp.gmail.com with ESMTPSA id y193sm8841859pfc.72.2021.04.02.09.01.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Apr 2021 09:01:33 -0700 (PDT) Subject: Re: [PATCH v1 1/2] scsi: pm8001: clean up for white space To: Luo Jiaxing , 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> From: Bart Van Assche Message-ID: <7f8aef00-07bc-6b63-19a1-85a8153387cd@acm.org> Date: Fri, 2 Apr 2021 09:01:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1617354522-17113-2-git-send-email-luojiaxing@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Bart.