[PATCH -next 1/3] powerpc: boot: Fix a typo in partial_decompress() comment

2024-04-06 Thread Yang Li
This commit adds kernel-doc style comments with complete parameter descriptions for the function partial_decompress(). Signed-off-by: Yang Li --- arch/powerpc/boot/decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/decompress.c b/arch/powerpc/boot/

[PATCH -next 2/3] powerpc: Fix kernel-doc comments in fsl_gtm.c

2024-04-06 Thread Yang Li
Fix some function names in kernel-doc comments. Signed-off-by: Yang Li --- arch/powerpc/sysdev/fsl_gtm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_gtm.c b/arch/powerpc/sysdev/fsl_gtm.c index 39186ad6b3c3..71e07883eb48 100644 --- a/arch/powe

[PATCH -next 3/3] powerpc/rtas: Add kernel-doc comments to smp_startup_cpu()

2024-04-06 Thread Yang Li
This commit adds kernel-doc style comments with complete parameter descriptions for the function smp_startup_cpu(). Signed-off-by: Yang Li --- arch/powerpc/platforms/cell/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/cell/smp.c b/arch/powerpc/platforms/cell/

Re: [PATCH 1/4] KVM: delete .change_pte MMU notifier callback

2024-04-06 Thread Anup Patel
On Fri, Apr 5, 2024 at 5:28 PM Paolo Bonzini wrote: > > The .change_pte() MMU notifier callback was intended as an > optimization. The original point of it was that KSM could tell KVM to flip > its secondary PTE to a new location without having to first zap it. At > the time there was also an .inv

Re: [PATCH 00/34] address all -Wunused-const warnings

2024-04-06 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 3 Apr 2024 10:06:18 +0200 you wrote: > From: Arnd Bergmann > > Compilers traditionally warn for unused 'static' variables, but not > if they are constant. The reason here is a custom for C++ programmers >

[PATCH 1/2] sysfs: Add sysfs_bin_attr_simple_read() helper

2024-04-06 Thread Lukas Wunner
When drivers expose a bin_attribute in sysfs which is backed by a buffer in memory, a common pattern is to set the @private and @size members in struct bin_attribute to the buffer's location and size. The ->read() callback then merely consists of a single memcpy() call. It's not even necessary to

[PATCH 2/2] treewide: Use sysfs_bin_attr_simple_read() helper

2024-04-06 Thread Lukas Wunner
Deduplicate ->read() callbacks of bin_attributes which are backed by a simple buffer in memory: Use the newly introduced sysfs_bin_attr_simple_read() helper instead, either by referencing it directly or by declaring such bin_attributes with BIN_ATTR_SIMPLE_RO() or BIN_ATTR_SIMPLE_ADMIN_RO(). Asid

[PATCH 0/2] Deduplicate bin_attribute simple read() callbacks

2024-04-06 Thread Lukas Wunner
For my upcoming PCI device authentication v2 patches, I have the need to expose a simple buffer in virtual memory as a bin_attribute. It turns out we've duplicated the ->read() callback for such simple buffers a fair number of times across the tree. So instead of reinventing the wheel, I decided