Re: [PATCH] MIPS: Loongson2ef: Replace deprecated strncpy() with strscpy()

2025-02-27 Thread Thomas Bogendoerfer
On Mon, Feb 24, 2025 at 10:54:50PM +0100, Thorsten Blum wrote: > strncpy() is deprecated for NUL-terminated destination buffers. Use > strscpy() instead and remove the manual NUL-termination. > > Compile-tested only. > > Link: https://github.com/KSPP/linux/issues/90 > Cc: linux-hardening@vger.ker

Re: [PATCH v2][next] mips: sgi-ip22: Replace "s[n]?printf" with sysfs_emit in sysfs callbacks

2024-10-30 Thread Thomas Bogendoerfer
On Thu, Oct 17, 2024 at 10:13:42PM +1300, Paulo Miguel Almeida wrote: > Replace open-coded pieces with sysfs_emit() helper in sysfs .show() > callbacks. > > Signed-off-by: Paulo Miguel Almeida > --- > Changelog: > - v2: amend commit message (Req: Maciej W. Rozycki) > - v1: https://lore.kernel.org

Re: [PATCH] MIPS: Alchemy: Use kcalloc() instead of kzalloc()

2024-02-20 Thread Thomas Bogendoerfer
On Sat, Jan 20, 2024 at 02:34:43PM +0100, Erick Archer wrote: > As noted in the "Deprecated Interfaces, Language Features, Attributes, > and Conventions" documentation [1], size calculations (especially > multiplication) should not be performed in memory allocator (or similar) > function arguments