Re: [PATCH][next] scsi: scsi_debug: make read-only arrays static const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 29/07/2025 à 08:49, Colin Ian King a écrit :
Don't populate the read-only arrays on the stack at run time, instead
make them static const. Also reduces overall size.

before:
    text	   data	    bss	    dec	    hex	filename
  367439	  89582	   5952	 462973	  7107d	drivers/scsi/scsi_debug.o

after:
    text	   data	    bss	    dec	    hex	filename
  365847	  90702	   5952	 462501	  70ea5	drivers/scsi/scsi_debug.o

Hi,

out of curiosity, any idea why 'data' increase?

All my constification patches lead to data reduction.


(gcc 14.2.0, x86-64)

(same kind of behavior with 15.1.1)


CJ




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux