From c0e1ae03f564f0e3db492ef2f25357b5da7977d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
Date: Sat, 10 Aug 2024 20:12:40 +0200
Subject: [PATCH] r8168_n: fix proc_dump_rx_desc_2 on 32 bits
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
 src/r8168_n.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/src/r8168_n.c
+++ b/src/r8168_n.c
@@ -1668,9 +1668,9 @@ static int proc_dump_rx_desc_2(struct se
                                                           j, k);
                         for (i=0; i<(tp->RxDescLength/4); i++) {
                                 if (!(i % 4))
-                                        seq_printf(m, "\n%04llx ",
-                                                   ((u64)pdword + (i * 4) -
-                                                    (u64)tp->RxDescArray));
+                                        seq_printf(m, "\n%04x ",
+                                                   (u32) ((uintptr_t)pdword + (i * 4) -
+                                                    (uintptr_t)tp->RxDescArray));
                                 seq_printf(m, "%08x ", pdword[i]);
                         }
                 }
