linux/drivers/infiniband/hw/hfi1
Christophe JAILLET 887cd308fd IB/hfi1: Constify struct flag_table
'struct flag_table' are not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
 302932	  40271	    112	 343315	  53d13	drivers/infiniband/hw/hfi1/chip.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
 311636	  31567	    112	 343315	  53d13	drivers/infiniband/hw/hfi1/chip.o

Link: https://lore.kernel.org/r/782b6a648bfbbf2bb83f81a73c0460b5bb7642a1.1720959310.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2024-07-15 10:24:21 -03:00
..
Kconfig RDMA/hfi1: Depend on !UML 2022-07-18 13:40:38 +03:00
Makefile RDMA/hfi1: Move user SDMA system memory pinning code to its own file 2023-08-22 17:31:45 +03:00
affinity.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
affinity.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
aspm.c
aspm.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
chip.c IB/hfi1: Constify struct flag_table 2024-07-15 10:24:21 -03:00
chip.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
chip_registers.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
common.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
debugfs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
debugfs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
device.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
device.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
driver.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
efivar.c RDMA/hfi1: Workaround truncation compilation error 2023-10-25 11:13:57 +03:00
efivar.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
eprom.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
eprom.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
exp_rcv.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
exp_rcv.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
fault.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
fault.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
file_ops.c RDMA for v6.7 2023-11-02 15:20:30 -10:00
firmware.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
hfi.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
init.c RDMA/hfi1: Remove redundant assignment to pointer ppd 2023-10-24 17:33:25 +03:00
intr.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
iowait.c
iowait.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ipoib.h IB/hfi1: Fix alloc failure with larger txqueuelen 2022-01-28 11:12:15 -04:00
ipoib_main.c IB/hfi1: Remove generic .ndo_get_stats64 2024-05-05 17:10:38 +03:00
ipoib_rx.c IB/hfi1: Use skb_put_data() instead of skb_put/memcpy pair 2022-09-27 10:43:10 -03:00
ipoib_tx.c IB/hfi1: Remove open coded reference to skb frag offset 2023-09-18 14:24:15 +03:00
mad.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mad.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mmu_rb.c RDMA/hfi1: Constify struct mmu_rb_ops 2024-06-26 10:53:29 -03:00
mmu_rb.h RDMA/hfi1: Constify struct mmu_rb_ops 2024-06-26 10:53:29 -03:00
msix.c RDMA/hfi1: Convert to SPDX identifier 2021-08-25 14:56:48 -03:00
msix.h RDMA/hfi1: Convert to SPDX identifier 2021-08-25 14:56:48 -03:00
netdev.h IB/hfi1: allocate dummy net_device dynamically 2024-05-02 18:20:17 -07:00
netdev_rx.c IB/hfi1: allocate dummy net_device dynamically 2024-05-02 18:20:17 -07:00
opa_compat.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
opfn.c
opfn.h
pcie.c RDMA/hfi1: Use RMW accessors for changing LNKCTL2 2024-05-05 16:11:40 +03:00
pin_system.c RDMA/hfi1: Constify struct mmu_rb_ops 2024-06-26 10:53:29 -03:00
pinning.h RDMA/hfi1: Move user SDMA system memory pinning code to its own file 2023-08-22 17:31:45 +03:00
pio.c IB/hfi1: Fix a memleak in init_credit_return 2024-01-25 11:56:27 +02:00
pio.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
pio_copy.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
platform.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
platform.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qp.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qsfp.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qsfp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
rc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
rc.h
ruc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
sdma.c IB/hfi1: Fix sdma.h tx->num_descs off-by-one error 2024-02-04 11:40:06 +02:00
sdma.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
sdma_txreq.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
sysfs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
tid_rdma.c IB/hfi1: fix spellos and kernel-doc 2024-01-25 11:48:50 +02:00
tid_rdma.h
trace.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_ctxts.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_dbg.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_ibhdrs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_iowait.h
trace_misc.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_mmu.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_rc.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_rx.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_tid.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_tx.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
uc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ud.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
user_exp_rcv.c RDMA/hfi1: Copy userspace arrays safely 2023-11-13 10:21:33 +02:00
user_exp_rcv.h IB/hfi1: Annotate struct tid_rb_node with __counted_by 2023-10-02 14:44:54 +03:00
user_pages.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
user_sdma.c RDMA/hfi1: Copy userspace arrays safely 2023-11-13 10:21:33 +02:00
user_sdma.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs_txreq.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs_txreq.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vnic.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vnic_main.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vnic_sdma.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00