From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH net-next] net: stmmac: use correct pointer when printing normal descriptor ring Date: Sun, 28 May 2017 00:59:37 +0300 Message-ID: References: <20170509165202.19023-1-niklass@axis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Giuseppe Cavallaro , Alexandre Torgue , Niklas Cassel , netdev , "linux-kernel@vger.kernel.org" To: Niklas Cassel Return-path: In-Reply-To: <20170509165202.19023-1-niklass@axis.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, May 9, 2017 at 7:52 PM, Niklas Cassel wrote: > From: Niklas Cassel Commit message? > seq_printf(seq, "%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n", > - i, (unsigned int)virt_to_phys(ep), > + i, (unsigned int)virt_to_phys(p), There is should not be casting. Pointer might be 64-bit, thus %pap must be used instead with a reference to the physical address. > le32_to_cpu(p->des0), le32_to_cpu(p->des1), > le32_to_cpu(p->des2), le32_to_cpu(p->des3)); > p++; -- With Best Regards, Andy Shevchenko