Re: [PATCH] rhashtable: avoid -Wrestrict warning on overlapping sprintf output

2021-03-24 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 23 Mar 2021 14:03:32 +0100 you wrote: > From: Arnd Bergmann > > sprintf() is declared with a restrict keyword to not allow input and > output to point to the same buffer: > > lib/test_rhashtable.c: In function 'p

[PATCH] rhashtable: avoid -Wrestrict warning on overlapping sprintf output

2021-03-23 Thread Arnd Bergmann
From: Arnd Bergmann sprintf() is declared with a restrict keyword to not allow input and output to point to the same buffer: lib/test_rhashtable.c: In function 'print_ht': lib/test_rhashtable.c:504:4: error: 'sprintf' argument 3 overlaps destination object 'buff' [-Werror=restrict] 504 |s