diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2025-06-10 15:28:04 +0200 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2025-07-02 13:30:40 +0200 |
commit | 9591220e7a6c12c788b1fc013c39af26edf99538 (patch) | |
tree | 38e660c07f8546ae5acd36c253bd5726e38d1911 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | de94259d064814b7eacd6d1f4b26e934eed02590 (diff) |
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: 97d06802d10a2827 ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions