diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2026-05-10 23:12:52 +0300 |
|---|---|---|
| committer | David Heidelberg <david@ixit.cz> | 2026-06-11 21:21:32 +0300 |
| commit | 5251ffc72996ed9e447ca637db80141627476b09 (patch) | |
| tree | df05b3ff9d5939f43215ace1549e680422ac77cb /tools/lib | |
| parent | 2aa9d0d63a614051d1fcc4f6713bbf69698a7780 (diff) | |
| download | linux-5251ffc72996ed9e447ca637db80141627476b09.tar.xz | |
nfc: nci: uart: Constify struct tty_ldisc_ops
'struct tty_ldisc_ops' is not modified in this driver.
Constifying this 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
11454 3352 256 15062 3ad6 net/nfc/nci/uart.o
After:
=====
text data bss dec hex filename
11646 3160 256 15062 3ad6 net/nfc/nci/uart.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/c756755a72cdfde2877a18ddee01eaa4f633c220.1778443960.git.christophe.jaillet@wanadoo.fr
Signed-off-by: David Heidelberg <david@ixit.cz>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions
