module: Convert symbol namespace to string literalClean up the existing export namespace code along the same lines ofcommit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)to __s
module: Convert symbol namespace to string literalClean up the existing export namespace code along the same lines ofcommit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)to __section("foo")") and for the same reason, it is not desired for thenamespace argument to be a macro expansion itself.Scripted using git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file; do awk -i inplace ' /^#define EXPORT_SYMBOL_NS/ { gsub(/__stringify\(ns\)/, "ns"); print; next; } /^#define MODULE_IMPORT_NS/ { gsub(/__stringify\(ns\)/, "ns"); print; next; } /MODULE_IMPORT_NS/ { $0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g"); } /EXPORT_SYMBOL_NS/ { if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) { if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ && $0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ && $0 !~ /^my/) { getline line; gsub(/[[:space:]]*\\$/, ""); gsub(/[[:space:]]/, "", line); $0 = $0 " " line; } $0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/, "\\1(\\2, \"\\3\")", "g"); } } { print }' $file; doneRequested-by: Masahiro Yamada <[email protected]>Signed-off-by: Peter Zijlstra (Intel) <[email protected]>Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlcAcked-by: Greg KH <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>
show more ...
peci: npcm: Constify struct peci_controller_ops'struct peci_controller_ops' is not modified in this driver.Constifying this structure moves some data to a read-only section, soincrease overall
peci: npcm: Constify struct peci_controller_ops'struct peci_controller_ops' is not modified in this driver.Constifying this structure moves some data to a read-only section, soincrease overall security, especially when the structure holds somefunction pointers.On a x86_64, with allmodconfig:Before:====== text data bss dec hex filename 8003 784 48 8835 2283 drivers/peci/controller/peci-npcm.oAfter:===== text data bss dec hex filename 8003 776 48 8827 227b drivers/peci/controller/peci-npcm.oSigned-off-by: Christophe JAILLET <[email protected]>Reviewed-by: Iwona Winiarska <[email protected]>Link: https://lore.kernel.org/r/3c7d455745c2265c19ed02f026dfc9610271d3c2.1725692376.git.christophe.jaillet@wanadoo.frSigned-off-by: Iwona Winiarska <[email protected]>
move asm/unaligned.h to linux/unaligned.hasm/unaligned.h is always an include of asm-generic/unaligned.h;might as well move that thing to linux/unaligned.h and includethat - there's nothing arch-
move asm/unaligned.h to linux/unaligned.hasm/unaligned.h is always an include of asm-generic/unaligned.h;might as well move that thing to linux/unaligned.h and includethat - there's nothing arch-specific in that header.auto-generated by the following:for i in `git grep -l -w asm/unaligned.h`; do sed -i -e "s/asm\/unaligned.h/linux\/unaligned.h/" $idonefor i in `git grep -l -w asm-generic/unaligned.h`; do sed -i -e "s/asm-generic\/unaligned.h/linux\/unaligned.h/" $idonegit mv include/asm-generic/unaligned.h include/linux/unaligned.hgit mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.hsed -i -e "/unaligned.h/d" include/asm-generic/Kbuildsed -i -e "s/__ASM_GENERIC/__LINUX/" include/linux/unaligned.h tools/include/linux/unaligned.h
peci: aspeed: Clear clock_divider value before setting itPECI clock divider is programmed on 10:8 bits of PECI Control register.Before setting a new value, clear bits read from hardware.Reviewed
peci: aspeed: Clear clock_divider value before setting itPECI clock divider is programmed on 10:8 bits of PECI Control register.Before setting a new value, clear bits read from hardware.Reviewed-by: Billy Tsai <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Iwona Winiarska <[email protected]>
peci: Add peci-npcm controller driverAdd support for Nuvoton NPCM BMC hardware to the Platform EnvironmentControl Interface (PECI) subsystem.Signed-off-by: Tomer Maimon <[email protected]>Sig
peci: Add peci-npcm controller driverAdd support for Nuvoton NPCM BMC hardware to the Platform EnvironmentControl Interface (PECI) subsystem.Signed-off-by: Tomer Maimon <[email protected]>Signed-off-by: Tyrone Ting <[email protected]>Co-developed-by: Iwona Winiarska <[email protected]>Signed-off-by: Iwona Winiarska <[email protected]>Link: https://lore.kernel.org/r/[email protected]
peci: Constify struct peci_controller_opsAs with most ops structs, we never modify it at runtime, and keepingfunction pointers in read-only memory is generally a good thingsecurity-wise.Signed-
peci: Constify struct peci_controller_opsAs with most ops structs, we never modify it at runtime, and keepingfunction pointers in read-only memory is generally a good thingsecurity-wise.Signed-off-by: Zev Weiss <[email protected]>Link: https://lore.kernel.org/r/[email protected]Reviewed-by: Iwona Winiarska <[email protected]>Signed-off-by: Iwona Winiarska <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Greg Kroah-Hartman <[email protected]>
peci: aspeed: fix error check return value of platform_get_irq()platform_get_irq() return negative value on failure, so null check ofpriv->irq is incorrect. Fix it by comparing whether it is less
peci: aspeed: fix error check return value of platform_get_irq()platform_get_irq() return negative value on failure, so null check ofpriv->irq is incorrect. Fix it by comparing whether it is less than zero.Fixes: a85e4c52086c ("peci: Add peci-aspeed controller driver")Reported-by: Zeal Robot <[email protected]>Signed-off-by: Lv Ruyi <[email protected]>Link: https://lore.kernel.org/r/[email protected]Reviewed-by: Iwona Winiarska <[email protected]>Signed-off-by: Iwona Winiarska <[email protected]>
peci: Add peci-aspeed controller driverASPEED AST24xx/AST25xx/AST26xx SoCs support the PECI electricalinterface (a.k.a PECI wire) that provides a communication channel withIntel processors.This
peci: Add peci-aspeed controller driverASPEED AST24xx/AST25xx/AST26xx SoCs support the PECI electricalinterface (a.k.a PECI wire) that provides a communication channel withIntel processors.This driver allows BMC to discover devices connected to it andcommunicate with them using PECI protocol.Co-developed-by: Iwona Winiarska <[email protected]>Reviewed-by: Pierre-Louis Bossart <[email protected]>Reviewed-by: Joel Stanley <[email protected]>Acked-by: Joel Stanley <[email protected]>Signed-off-by: Jae Hyun Yoo <[email protected]>Signed-off-by: Iwona Winiarska <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Greg Kroah-Hartman <[email protected]>