RE: arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-19 Thread Chan Kim
Hello Fabio and all, I realized what was wrong. If I wanted to change ARCH_OPTIONAL_KERNEL_RWX to =y, I should have changed it in my defconfig. I’ve done doing that several times in the past but I temporarily forgot that. After putting ARCH_OPTIONAL_KERNEL_RWX=y in my xxx_defconfig (for my

RE: arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-19 Thread Chan Kim
Hi, Fabio, I haven't ever written Kbuild rules but as far as I understand that message "Symbol: STRICT_KERNEL_RWX [=y] [is] Visible if: ARCH_HAS_STRICT_KERNEL_RWX [=y] && ARCH_OPTIONAL_KERNEL_RWX [=n]" seems to say that we can see and enable/disable STRICT_KERNEL_RWX if and only if

Re: arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-19 Thread FMDF
On Fri, 18 Mar 2022, 07:04 Chan Kim, wrote: > Hello all, > > This is what I see when I search “KERNEL_RWX” during “make menuconfig” for > arm64 kernel(5-10.0-rc5). > > The Kconfig file says CONFIG_STRICT_KERNEL_RWX is for setting text and > rodata read-only. > > Symbol:

Re: What to do with macros with do while (0) body

2022-03-19 Thread Greg KH
On Sat, Mar 19, 2022 at 08:25:34AM +0100, Philipp Hortmann wrote: > Hi all, > > please support me in what to do with the below macro as checkpatch seems to > hate them. > > In this case the macro is unused. Just remove macro? Yes. > When the macro is used how to remove this checkpatch message:

What to do with macros with do while (0) body

2022-03-19 Thread Philipp Hortmann
Hi all, please support me in what to do with the below macro as checkpatch seems to hate them. In this case the macro is unused. Just remove macro? When the macro is used how to remove this checkpatch message: CHECK: Macro argument reuse 'iobase' - possible side-effects? Even when iobase is