Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2196407pxb; Tue, 12 Oct 2021 01:11:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUtHjjrFXjq5wQOA/cwz3ly3zEPskMttolzIAARo/uBxQcBGtKTTzr5d+EErHUflPh4mnT X-Received: by 2002:a50:bf0f:: with SMTP id f15mr47874409edk.43.1634026277947; Tue, 12 Oct 2021 01:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634026277; cv=none; d=google.com; s=arc-20160816; b=sz5JTJnH5O6GWDVIvEydfBAesfzmaxFcD9O8WKD7ivMKUw3yTK9Fmg41uvmfR3eHpI sIHHSSoWshyEkWQPIvoEiu1wTB6o46za1NUlzs5OpKsrfWgzTKiJ1zcZTooMOWBOvcLa IibK8hXWNbo0st+G/GAd9O0dRtiOZs284OdOX1/LxX6Y11o1HV1xSARZaEtyUBEE81L6 EYBmPFNiH3/aG2lzIyTBxhHI04LNZ6B9dZEiz6X1KoO29Vz0HGGz1P1CAA8+WujThvzi Py96jYlOE6a8sirHsO9XKJt3914yQkfbBD3yBOpGcTY5QEwLtq3S4XC2M59C1w3m1O7I Jl9Q== 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:organization :from:references:cc:to:subject:dkim-filter; bh=br/On0ILa5yU91r1oExfZCODUijGXhq7NRDTJLHojAY=; b=IoFVhmYk+F2QUaY2UEBR2Owi6FyjyWBvaAq0U2xwhXFDAkiH4HgHzipf/6jmbiitjL o2flvNVsQ4wgOou9jszDtxq0PicfvWKtAzJyUXPGHw/vOpvqRHdbgyDKYaiwytqHnHSS Ru5CE3uHSiByCqbgtgPP8LleRXx8DLAXF1K9vy0DuEbryE7Ks/lwOG06Wd/VL+4S9pvr hyrDh5zLv9W8CKRrdtwm8ZcIPmH2NJAcbkeFZ0ehqWCr81bF4/YPF9+M+n4jiMP0FGqY Lzh/KodP6t1SyCHMlWf0GDxfmXkkTWWa2eUyAWzx0As3d4BAidL4Pa+4y1XCH9t96iS2 tJHQ== 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 a22si1024954edj.237.2021.10.12.01.10.52; Tue, 12 Oct 2021 01:11:17 -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 S234484AbhJLILG (ORCPT + 99 others); Tue, 12 Oct 2021 04:11:06 -0400 Received: from mxout02.lancloud.ru ([45.84.86.82]:49698 "EHLO mxout02.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbhJLILG (ORCPT ); Tue, 12 Oct 2021 04:11:06 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru 4BE40205FD26 Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH v2] ata: atp867x: Cleanup pointer value print To: Damien Le Moal , Guo Zhi CC: , References: <20210930030533.1216577-1-qtxuning1999@sjtu.edu.cn> <974dfba6-915e-c3d6-53f6-473be18faf80@opensource.wdc.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Tue, 12 Oct 2021 11:08:53 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <974dfba6-915e-c3d6-53f6-473be18faf80@opensource.wdc.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.10.2021 4:06, Damien Le Moal wrote: >> Pointers should be printed with %p or %px rather than cast to >> 'unsigned long' and printed with %lx >> Change %lx to %p to print the secured pointer. >> >> Signed-off-by: Guo Zhi >> --- >> drivers/ata/pata_atp867x.c | 10 +++++----- >> 1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c >> index 2bc5fc81efe3..c32b95f48e50 100644 >> --- a/drivers/ata/pata_atp867x.c >> +++ b/drivers/ata/pata_atp867x.c >> @@ -447,11 +447,11 @@ static int atp867x_ata_pci_sff_init_host(struct ata_host *host) >> #ifdef ATP867X_DEBUG >> atp867x_check_ports(ap, i); >> #endif >> - ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", >> - (unsigned long)ioaddr->cmd_addr, >> - (unsigned long)ioaddr->ctl_addr); >> - ata_port_desc(ap, "bmdma 0x%lx", >> - (unsigned long)ioaddr->bmdma_addr); >> + ata_port_desc(ap, "cmd 0x%p ctl 0x%p", >> + ioaddr->cmd_addr, >> + ioaddr->ctl_addr); >> + ata_port_desc(ap, "bmdma 0x%p", >> + ioaddr->bmdma_addr); >> >> mask |= 1 << i; >> } >> > > I lost track of this one. Any v3 to be expected to address Sergey comment ? No, this patch isn't needed at all. MBR, Sergey