]> www.infradead.org Git - users/jedix/linux-maple.git/commit
MIPS: ds1287: Match ds1287_set_base_clock() function types
authorWangYuli <wangyuli@uniontech.com>
Tue, 18 Feb 2025 12:57:55 +0000 (20:57 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 27 Feb 2025 09:47:33 +0000 (10:47 +0100)
commita759109b234385b74d2f5f4c86b5f59b3201ec12
tree8acf4fb659ac5cda8a0bce7d87a115cc8e11219e
parentf3be225f338a578851a7b607a409f476354a8deb
MIPS: ds1287: Match ds1287_set_base_clock() function types

Synchronize the declaration of ds1287_set_base_clock() between
cevt-ds1287.c and ds1287.h.

Fix follow error with gcc-14 when -Werror:

arch/mips/kernel/cevt-ds1287.c:21:5: error: conflicting types for ‘ds1287_set_base_clock’; have ‘int(unsigned int)’
   21 | int ds1287_set_base_clock(unsigned int hz)
      |     ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/cevt-ds1287.c:13:
./arch/mips/include/asm/ds1287.h:11:13: note: previous declaration of ‘ds1287_set_base_clock’ with type ‘void(unsigned int)’
   11 | extern void ds1287_set_base_clock(unsigned int clock);
      |             ^~~~~~~~~~~~~~~~~~~~~
make[7]: *** [scripts/Makefile.build:207: arch/mips/kernel/cevt-ds1287.o] Error 1
make[6]: *** [scripts/Makefile.build:465: arch/mips/kernel] Error 2
make[6]: *** Waiting for unfinished jobs....

Signed-off-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/ds1287.h