Thread (9 messages) 9 messages, 2 authors, 2026-03-24

Re: [PATCH net-next v3 2/2] r8152: Add support for the RTL8157 hardware

From: Paolo Abeni <pabeni@redhat.com>
Date: 2026-03-24 10:58:25
Also in: linux-usb, lkml

On 3/20/26 12:14 PM, Birger Koblitz wrote:
quoted hunk ↗ jump to hunk
@@ -2022,14 +2277,14 @@ static void intr_callback(struct urb *urb)
 	}
 }
 
-static inline void *rx_agg_align(void *data)
+static inline void *rx_agg_align(struct r8152 *tp, void *data)
 {
-	return (void *)ALIGN((uintptr_t)data, RX_ALIGN);
+	return (void *)ALIGN((uintptr_t)data, tp->rx_desc.align);
 }
 
-static inline void *tx_agg_align(void *data)
+static inline void *tx_agg_align(struct r8152 *tp, void *data)
Since you are touching this functions, in the next revision please
additionally drop the 'inline' keyword; the compiler should be good
enough to get them inlined anyway.

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help