[PATCH v2] macintosh: declare ctl_table as const

2024-12-17 Thread Luis Felipe Hernandez
_hid_files structure as const, we ensure that it cannot be accidentally modified. This change improves safety. Suggested-by: Thomas Weißschuh Suggested-by: Ricardo B. Marliere Reviewed-by: Ricardo B. Marliere Signed-off-by: Luis Felipe Hernandez --- Changes in v2: * Remove redundant commit

Re: [PATCH] macintosh: declare ctl_table as const

2024-12-17 Thread Felipe Hernandez
Will do, thank you for the review Ricardo! Best, Felipe

[PATCH] macintosh: declare ctl_table as const

2024-12-16 Thread Luis Felipe Hernandez
_hid_files structure as const, we ensure that it cannot be accidentally modified at runtime. This change improves safety and aligns with the recommendation from commit 7abc9b53bd51 ("sysctl: allow registration of const struct ctl_table"). Signed-off-by: Luis Felipe Hernandez --- Suggested-