Convert more 'alloc_obj' cases to default GFP_KERNEL argumentsThis converts some of the visually simpler cases that have been splitover multiple lines. I only did the ones that are easy to verify
Convert more 'alloc_obj' cases to default GFP_KERNEL argumentsThis converts some of the visually simpler cases that have been splitover multiple lines. I only did the ones that are easy to verify theresulting diff by having just that final GFP_KERNEL argument on the nextline.Somebody should probably do a proper coccinelle script for this, but forme the trivial script actually resulted in an assertion failure in themiddle of the script. I probably had made it a bit _too_ trivial.So after fighting that far a while I decided to just do some of thesyntactically simpler cases with variations of the previous 'sed'scripts.The more syntactically complex multi-line cases would mostly really wantwhitespace cleanup anyway.Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
show more ...
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid sc
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid scalar types (which need careful case-by-case checking), andinstead replace kmalloc-family calls that allocate struct or unionobject instances:Single allocations: kmalloc(sizeof(TYPE), ...)are replaced with: kmalloc_obj(TYPE, ...)Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)are replaced with: kmalloc_objs(TYPE, COUNT, ...)Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)(where TYPE may also be *VAR)The resulting allocations no longer return "void *", instead returning"TYPE *".Signed-off-by: Kees Cook <kees@kernel.org>
gpib: agilent_82350b: Unify *allocate_private usageUse the return value of agilent_82350b_allocate_private in calling codeas early return value in case of error.Signed-off-by: Dominik Karol Piąt
gpib: agilent_82350b: Unify *allocate_private usageUse the return value of agilent_82350b_allocate_private in calling codeas early return value in case of error.Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>Link: https://patch.msgid.link/20260116174647.317256-2-dominik.karol.piatkowski@protonmail.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
staging: gpib: Destage gpibMove the gpib drivers out of staging and into the "real" part of thekernel. This entails: - Remove the gpib Kconfig menu and Makefile build rule from staging. - Remo
staging: gpib: Destage gpibMove the gpib drivers out of staging and into the "real" part of thekernel. This entails: - Remove the gpib Kconfig menu and Makefile build rule from staging. - Remove gpib/uapi from the header file search path in subdir-ccflags of the gpib Makefile - move the gpib/uapi files to include/uapi/linux - Move the gpib tree out of staging to drivers. - Remove the word "Linux" from the gpib Kconfig file. - Add the gpib Kconfig menu and Makefile build rule to driversSigned-off-by: Dave Penkler <dpenkler@gmail.com>Link: https://patch.msgid.link/20251117144021.23569-5-dpenkler@gmail.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>