[PATCH 02/14] virtio_net: simplify virtnet_set_affinity()

2024-12-28 Thread Yury Norov
The inner loop may be replaced with the dedicated for_each_online_cpu_wrap. It helps to avoid setting the same bits in the @mask more than once, in case of group_size is greater than number of online CPUs. Signed-off-by: Yury Norov --- drivers/net/virtio_net.c | 12 +++- include/linux/cp

Re: [PATCH v7 02/18] gendwarfksyms: Add address matching

2024-12-28 Thread Masahiro Yamada
On Fri, Dec 20, 2024 at 6:07 AM Sami Tolvanen wrote: > > diff --git a/scripts/gendwarfksyms/symbols.c b/scripts/gendwarfksyms/symbols.c > index 7adf2ed9b89b..98febb524dd5 100644 > --- a/scripts/gendwarfksyms/symbols.c > +++ b/scripts/gendwarfksyms/symbols.c > @@ -6,8 +6,39 @@ > #include "gendwarf

Re: [PATCH 1/2] module: get symbol crc back to unsigned

2024-12-28 Thread Masahiro Yamada
On Sun, Dec 29, 2024 at 12:46 AM Masahiro Yamada wrote: > > Commit 71810db27c1c ("modversions: treat symbol CRCs as 32 bit > quantities") changed the CRC fields to s32 because the __kcrctab and > __kcrctab_gpl sections contained relative references to the actual > CRC values stored in the .rodata

[PATCH 2/2] modpost: zero-pad CRC values in modversion_info array

2024-12-28 Thread Masahiro Yamada
I do not think the '#' flag is useful here because adding the explicit '0x' is clearer. Add the '0' flag to zero-pad the CRC values. This change gives better alignment in the generated *.mod.c files. There is no impact to the compiled modules. [Before] $ grep -A5 modversion_info fs/efivarfs/ef

[PATCH 1/2] module: get symbol crc back to unsigned

2024-12-28 Thread Masahiro Yamada
Commit 71810db27c1c ("modversions: treat symbol CRCs as 32 bit quantities") changed the CRC fields to s32 because the __kcrctab and __kcrctab_gpl sections contained relative references to the actual CRC values stored in the .rodata section when CONFIG_MODULE_REL_CRCS=y. Commit 7b4537199a4a ("kbuil

[PATCH 0/2] Fixups before RUST modversions support

2024-12-28 Thread Masahiro Yamada
- Fix s32 -> u32 - Make printf() format consistent Matthew Maurer is adding more 's32'. I need to fix the code now. Otherwise, I would need to fix more places. Masahiro Yamada (2): module: get symbol crc back to unsigned modpost: zero-pad CRC values in modversion_info array include/l

[PATCH v2 1/3] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

2024-12-28 Thread Thomas Weißschuh
Most users use this function through the BIN_ATTR_SIMPLE* macros, they can handle the switch transparently. Also adapt the two non-macro users in the same change. Signed-off-by: Thomas Weißschuh --- arch/powerpc/platforms/powernv/opal.c | 2 +- fs/sysfs/file.c | 2 +- inclu

[PATCH v2 2/3] btf: Switch vmlinux BTF attribute to sysfs_bin_attr_simple_read()

2024-12-28 Thread Thomas Weißschuh
The generic function from the sysfs core can replace the custom one. Signed-off-by: Thomas Weißschuh Acked-by: Andrii Nakryiko --- This is a replacement for [0], as Alexei was not happy about BIN_ATTR_SIMPLE_RO() [0] https://lore.kernel.org/lkml/20241122-sysfs-const-bin_attr-bpf-v1-1-823aea39

[PATCH v2 3/3] btf: Switch module BTF attribute to sysfs_bin_attr_simple_read()

2024-12-28 Thread Thomas Weißschuh
The generic function from the sysfs core can replace the custom one. Signed-off-by: Thomas Weißschuh Acked-by: Andrii Nakryiko --- kernel/bpf/btf.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index e5a5f023cedd5c288c2

[PATCH v2 0/3] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

2024-12-28 Thread Thomas Weißschuh
Most users use this function through the BIN_ATTR_SIMPLE* macros, they can handle the switch transparently. This series is meant to be merged through the driver core tree. Signed-off-by: Thomas Weißschuh --- Changes in v2: - Rebase on torvalds/master - Drop wmi-bmof patch - Pick up Acks from And