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
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
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
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
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
- 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
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
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
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
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
10 matches
Mail list logo