Thread (2 messages) flat view 2 messages, 2 authors, 2022-05-18

Re: [PATCH] net: smc911x: Fix min() use in debug code

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-05-18 13:20:18
Also in: lkml

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:

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

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