linux/arch/mips/txx9/generic
Geert Uytterhoeven 9591220e7a MIPS: txx9: Constify bin_attribute arguments of txx9_sram_{read,write}()
If CONFIG_MACH_TX49XX=y:

    arch/mips/txx9/generic/setup.c: In function ‘txx9_sramc_init’:
    arch/mips/txx9/generic/setup.c:839:32: error: assignment to ‘ssize_t (*)(struct file *, struct kobject *, const struct bin_attribute *, char *, loff_t,  size_t)’ {aka ‘long int (*)(struct file *, struct kobject *, const struct bin_attribute *, char *, long long int,  long unsigned int)’} from incompatible pointer type ‘ssize_t (*)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t,  size_t)’ {aka ‘long int (*)(struct file *, struct kobject *, struct bin_attribute *, char *, long long int,  long unsigned int)’} [-Werror=incompatible-pointer-types]
      839 |         dev->bindata_attr.read = txx9_sram_read;
	  |                                ^
    arch/mips/txx9/generic/setup.c:840:33: error: assignment to ‘ssize_t (*)(struct file *, struct kobject *, const struct bin_attribute *, char *, loff_t,  size_t)’ {aka ‘long int (*)(struct file *, struct kobject *, const struct bin_attribute *, char *, long long int,  long unsigned int)’} from incompatible pointer type ‘ssize_t (*)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t,  size_t)’ {aka ‘long int (*)(struct file *, struct kobject *, struct bin_attribute *, char *, long long int,  long unsigned int)’} [-Werror=incompatible-pointer-types]
      840 |         dev->bindata_attr.write = txx9_sram_write;
	  |                                 ^

Fixes: 97d06802d1 ("sysfs: constify bin_attribute argument of bin_attribute::read/write()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2025-07-02 13:30:40 +02:00
..
irq_tx4927.c
irq_tx4938.c
Makefile MIPS: Remove TX39XX support 2022-03-01 10:07:22 +01:00
mem_tx4927.c
pci.c MIPS: Fix typos 2024-01-08 10:39:12 +01:00
setup.c MIPS: txx9: Constify bin_attribute arguments of txx9_sram_{read,write}() 2025-07-02 13:30:40 +02:00
setup_tx4927.c MIPS: Allow modules to set board_be_handler 2021-11-09 16:07:26 +01:00
setup_tx4938.c MIPS: Allow modules to set board_be_handler 2021-11-09 16:07:26 +01:00
smsc_fdc37m81x.c