# Re: \[PATCH 2/2\] powerpc/text-patching: Fix possible stringop-overread compilation error

- From: Xie Yuanbin \<hidden\>
- Date: 2026-02-06 11:14:58 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/02/3404765
- Thread: https://ratatoskr.run/linuxppc-dev/2026/02/3402966/t.md

```text
On Thu, 5 Feb 2026 18:40:08 +0200, Andy Shevchenko wrote:
>> For strnlen(), if the compiler detects that the maxlen argument exceeds
>> the valid memory size of the input string object, a compilation error may
>> occur.
>> 
>> For lastest linux-next source, changing ppc_kallsyms_lookup_name() to
>> __always_inline,
>
> So, there is no issue in upstream without the mentioned change, right?

Yes. However, before the commit 889b3c1245de48ed0cac ("compiler: remove
CONFIG_OPTIMIZE_INLINING entirely") is merged, inline will be changed to
__always_inline, and this error will be directly triggered.

```
