linux/arch/arm
Arnd Bergmann 05777499a8 ARM: dyndbg: allow including dyndbg.h in decompressor
After a change to linux/module.h, dyndbg.h is now included
indirectly from the decompressor for lz4 support, which in turn
causes a build failure on 32-bit Arm:

In file included from include/linux/module.h:30,
                 from arch/arm/boot/compressed/../../../../lib/lz4/lz4_decompress.c:39,
                 from arch/arm/boot/compressed/../../../../lib/decompress_unlz4.c:10,
                 from arch/arm/boot/compressed/decompress.c:59:
include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
include/linux/dynamic_debug.h:307:14: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
  307 |         if (!strcmp(param, "dyndbg")) {
      |              ^~~~~~
include/linux/dynamic_debug.h:1:1: note: 'strcmp' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
  +++ |+#include <string.h>

The decompressor has its own replacement for the linux/string.h contents,
so the normal declaration is not visible here. Since the function is
not actually called, it is sufficient to add a declaration, and this
is in fact the correct one as it matches the definition in
arch/arm/boot/compressed/string.c.

Fixes: 7deabd6749 ("dyndbg: use the module notifier callbacks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jason Baron <jbaron@akamai.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-03-10 10:28:29 -08:00
..
boot ARM: dyndbg: allow including dyndbg.h in decompressor 2023-03-10 10:28:29 -08:00
common
configs ARM: defconfigs for 6.3 2023-02-20 15:43:36 -08:00
crypto This update includes the following changes: 2023-02-21 18:10:50 -08:00
include TTY/Serial driver updates for 6.3-rc1 2023-02-24 12:17:14 -08:00
kernel module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
lib ARM: 9279/1: support function error injection 2022-12-07 14:08:38 +00:00
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM updates for 6.2 2022-12-13 15:22:14 -08:00
mach-axxia
mach-bcm ARM: BCM63xx: remove useless goto statement 2023-01-10 13:46:59 -08:00
mach-berlin
mach-clps711x
mach-davinci Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00
mach-digicolor
mach-dove ARM: orion: remove unused board files 2023-01-10 23:10:27 +01:00
mach-ep93xx ARM: SoC updates for 6.3 2023-02-20 15:36:37 -08:00
mach-exynos
mach-footbridge ARM: unused boardfile removal for 6.3 2023-02-20 15:28:57 -08:00
mach-gemini arch/idle: Change arch_cpu_idle() behavior: always exit with IRQs disabled 2023-01-13 11:48:15 +01:00
mach-highbank
mach-hisi
mach-hpe
mach-imx Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00
mach-ixp4xx ARM: ixp4xx: Remove unused debug iomap 2022-11-23 09:29:20 +01:00
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp ARM: mmp: remove old PM support 2023-01-16 09:26:05 +01:00
mach-moxart
mach-mstar
mach-mv78xx0 ARM: orion: remove unused board files 2023-01-10 23:10:27 +01:00
mach-mvebu ARM updates for 6.2 2022-12-13 15:22:14 -08:00
mach-mxs SoC code updates for 6.2 2022-12-12 10:14:52 -08:00
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: SoC updates for 6.3 2023-02-20 15:36:37 -08:00
mach-omap2 Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00
mach-orion5x ARM: orion5x: remove dsa_chip_data references 2023-01-10 23:10:27 +01:00
mach-oxnas
mach-pxa ARM: pxa: restore mfp-pxa320.h 2023-02-08 22:10:39 +01:00
mach-qcom firmware: qcom_scm: Move qcom_scm.h to include/linux/firmware/qcom/ 2023-02-08 19:15:16 -08:00
mach-rda ARM: 9285/1: remove meaningless arch/arm/mach-rda/Makefile 2023-01-12 14:30:16 +00:00
mach-realtek
mach-rockchip
mach-rpc
mach-s3c Kbuild updates for v6.3 2023-02-26 11:53:25 -08:00
mach-s5pv210
mach-sa1100 ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
mach-shmobile
mach-socfpga
mach-spear ARM: spear: Do not use timer namespace for timer_shutdown() function 2022-11-24 15:09:10 +01:00
mach-sti
mach-stm32
mach-sunplus
mach-sunxi
mach-tegra power: remove pda_power supply driver 2023-02-01 17:23:38 +01:00
mach-uniphier
mach-ux500
mach-versatile
mach-vt8500
mach-zynq ARM: zynq: Fix refcount leak in zynq_early_slcr_init 2023-01-05 10:07:43 +01:00
mm IOMMU Updates for Linux v6.3: 2023-02-24 13:40:13 -08:00
net
nwfpe
plat-orion ARM: orion5x: remove dsa_chip_data references 2023-01-10 23:10:27 +01:00
probes
tools
vdso
vfp ARM: 9283/1: permit non-nested kernel mode NEON in softirq context 2023-01-11 16:21:21 +00:00
xen xen/virtio: Optimize the setup of "xen-grant-dma" devices 2022-12-05 12:59:49 +01:00
Kbuild
Kconfig ARM udpates for 6.3-rc1 2023-02-21 15:21:29 -08:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM udpates for 6.3-rc1 2023-02-21 15:21:29 -08:00
Makefile ARM udpates for 6.3-rc1 2023-02-21 15:21:29 -08:00