diff options
| author | Hongbo Li <[email protected]> | 2024-09-04 01:22:00 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-09-11 14:02:54 +0000 |
| commit | 89ec686a17914a6b663b11b8bdaf3f966546da32 (patch) | |
| tree | ce83a82861ec5ade9c8b437cd87c9a82db891758 /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | cxl: Constify struct kobj_type (diff) | |
| download | kernel-89ec686a17914a6b663b11b8bdaf3f966546da32.tar.gz kernel-89ec686a17914a6b663b11b8bdaf3f966546da32.zip | |
uio: Constify struct kobj_type
These 'struct kobj_type' are not modified. They are only used in
kobject_init() which takes a 'const struct kobj_type *ktype'
parameter.
Constifying these structure and moving them to a read-only
section (from data to text), and can increase over all security.
```
[Before]
text data bss dec hex filename
10330 1908 20 12258 2fe2 drivers/uio/uio.o
[After]
text data bss dec hex filename
10458 1844 20 12322 3022 drivers/uio/uio.o
```
Signed-off-by: Hongbo Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions
