Re: [PATCH net-next v2] lib8390: Replace panic() call with BUILD_BUG_ON

2020-09-29 Thread David Miller
From: Armin Wolf Date: Tue, 29 Sep 2020 19:13:26 +0200 > Replace panic() call in lib8390.c with BUILD_BUG_ON() > since checking the size of struct e8390_pkt_hdr should > happen at compile-time. > > Signed-off-by: Armin Wolf > --- > v2 changes: > - remove __packed from struct e8390_pkt_hdr Appl

[PATCH net-next v2] lib8390: Replace panic() call with BUILD_BUG_ON

2020-09-29 Thread Armin Wolf
Replace panic() call in lib8390.c with BUILD_BUG_ON() since checking the size of struct e8390_pkt_hdr should happen at compile-time. Signed-off-by: Armin Wolf --- v2 changes: - remove __packed from struct e8390_pkt_hdr --- drivers/net/ethernet/8390/lib8390.c | 4 ++-- 1 file changed, 2 insertion