Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs
Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/'to convert the new alloc_obj() users that had a simple GFP_KERNELargument to just drop that argument.Note that due to the extreme simplicity of the scripting, any slightlymore complex cases spread over multiple lines would not be triggered:they definitely exist, but this covers the vast bulk of the cases, andthe resulting diff is also then easier to check automatically.For the same reason the 'flex' versions will be done as a separateconversion.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>
clk: cleanup commentsFor spdxSpace instead of tab before spdx tagRemoved repeated worksthe, to, twoReplacementsmuch much to a much'to to' to 'to do'aready to alreadyComunications to Commu
clk: cleanup commentsFor spdxSpace instead of tab before spdx tagRemoved repeated worksthe, to, twoReplacementsmuch much to a much'to to' to 'to do'aready to alreadyComunications to Communicationsfreqency to frequencySigned-off-by: Tom Rix <trix@redhat.com>Link: https://lore.kernel.org/r/20220222195153.3817625-1-trix@redhat.comSigned-off-by: Stephen Boyd <sboyd@kernel.org>
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of th
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 4122 file(s).Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Reviewed-by: Enrico Weigelt <info@metux.net>Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>Reviewed-by: Allison Randal <allison@lohutok.net>Cc: linux-spdx@vger.kernel.orgLink: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.deSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
clk: axis: Use new macro CLK_OF_DECLARE_DRIVERThis driver initializes a clock provider via of_artpec6_clkctrl_setupand then continues the initialization on artpec6_clkctrl_probe.Use the new macr
clk: axis: Use new macro CLK_OF_DECLARE_DRIVERThis driver initializes a clock provider via of_artpec6_clkctrl_setupand then continues the initialization on artpec6_clkctrl_probe.Use the new macro to notify the clk subsystem about this behaviour.Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
clk: add artpec-6 clock controllerAdd a driver for the main clock controller of the Artpec-6 Soc.Signed-off-by: Lars Persson <larper@axis.com>[sboyd@codeaurora.org: Reformatted driver structure
clk: add artpec-6 clock controllerAdd a driver for the main clock controller of the Artpec-6 Soc.Signed-off-by: Lars Persson <larper@axis.com>[sboyd@codeaurora.org: Reformatted driver structure and of match]Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>