On Sun, Jul 14, 2024 at 02:15:25PM +0200, Christophe JAILLET wrote: > '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 > > Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> > --- > Compile tested-only. > --- > drivers/infiniband/hw/hfi1/chip.c | 30 +++++++++++++++--------------- > 1 file changed, 15 insertions(+), 15 deletions(-) Applied to for-next Thanks, Jason