diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2026-08-09 15:49:10 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-08-10 09:00:05 -0700 |
| commit | 799ef16e4607ba9ebc7fa2ca7d984940481fb79a (patch) | |
| tree | c6d03cf948725d06bcd3f1ccac6b412a4f06d617 /tools/perf/scripts/python/parallel-perf.py | |
| parent | 382a3cd59e24e452f94717bc9ccab053d634a48f (diff) | |
watchdog: apple: Constify some structures
'struct watchdog_ops' and 'struct watchdog_info' are not modified in this
driver.
Constifying these structure moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
7319 1768 0 9087 237f drivers/watchdog/apple_wdt.o
After:
=====
text data bss dec hex filename
7543 1544 0 9087 237f drivers/watchdog/apple_wdt.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/99019b7e560c2d9c087be340e68f9cce4db1988e.1786283336.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
