lkml.org 
[lkml]   [2022]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] net: smc911x: Fix min() use in debug code
From
Date
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed, 18 May 2022 11:04:19 +0200 you wrote:
> If ENABLE_SMC_DEBUG_PKTS=1:
>
> drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_hardware_send_pkt’:
> include/linux/minmax.h:20:28: error: comparison of distinct pointer types lacks a cast [-Werror]
> 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
> | ^~
> drivers/net/ethernet/smsc/smc911x.c:483:17: note: in expansion of macro ‘min’
> 483 | PRINT_PKT(buf, min(len, 64));
>
> [...]

Here is the summary with links:
- net: smc911x: Fix min() use in debug code
https://git.kernel.org/netdev/net-next/c/a3641ca416a3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


\
 
 \ /
  Last update: 2022-05-18 15:21    [W:0.035 / U:3.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site