Thread (2 messages) flat view 2 messages, 2 authors, 2021-09-27

Re: [PATCH] cxgb: avoid open-coded offsetof()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-27 13:10:09
Also in: lkml, llvm

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Mon, 27 Sep 2021 14:16:04 +0200 you wrote:
From: Arnd Bergmann <arnd@arndb.de>

clang-14 does not like the custom offsetof() macro in vsc7326:

drivers/net/ethernet/chelsio/cxgb/vsc7326.c:597:3: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction]
                HW_STAT(RxUnicast, RxUnicastFramesOK),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/chelsio/cxgb/vsc7326.c:594:56: note: expanded from macro 'HW_STAT'
        { reg, (&((struct cmac_statistics *)NULL)->stat_name) - (u64 *)NULL }

[...]
Here is the summary with links:
  - cxgb: avoid open-coded offsetof()
    https://git.kernel.org/netdev/net-next/c/ef5d6356e2ac

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