Re: [PATCH v1 1/1] ACPI: processor: idle: Replace strlcat() with better alternative
From: Josh Law
Date: Mon Mar 16 2026 - 15:52:17 EST
On 16 March 2026 19:42:49 GMT, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>On Mon, Mar 16, 2026 at 06:49:23PM +0000, Josh Law wrote:
>> On 16 March 2026 18:47:45 GMT, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>> >On Mon, Mar 16, 2026 at 06:43:58PM +0000, Josh Law wrote:
>> >> On 16 March 2026 17:01:58 GMT, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>> >> >strlcpy() and strlcat() are confusing APIs and the former one already gone
>> >> >from the kernel. In preparation to kill strlcat() replace it with the better
>> >> >alternative.
>> >>
>> >> Is this patch in relation to my string.c patch?
>> >
>> >Yes.
>> >
>> >> You would have to do this for about 120~ files.
>> >
>> >Not me, just showing you what to do.
>> >
>> >Btw, what kind of assistance do you use for the patches?
>>
>> None
>
>Hmm... Many patches that are generated require quite a lot of time investment
>and understanding the code. It's unbelievable that a person can do that without
>an assistance.
>
>> I use grep to find all the files calling the functions (took a while!)
>
>No, that's not what I was asking about.
>
>> And if I did those patches, I can't guarantee all of them will be ACKed.
>
>Interesting way of saying the obvious. And if you didn't?..
>
I understand your suspicion, my commit descriptions are written by a LLM, but the actual code itself is mine, the reason why I do commit descriptions with AI, is because I'm not the "sharpest tool in the shed" with writing descriptions for anything! If I add a feature, I can't do much writing about it, and I worry that if I can't explain a feature well, it won't get merged. I'm sorry for all the confusion, also. The reason I do high volume of patches is quite simple.
I love lib/ basically, it's my favourite directory to work on, For various reasons, and I have quite high work energy for my "passions", sorry if you think I use assistance for everything (I don't, only for commit descriptions), I will slow down from now on with the patches.
And from now on I will try to manually write descriptions (even though I'm not the best at writing anything, even if I understand it heavily)
V/R
Josh Law