* [PATCH 5.4+] MIPS: ds1287: Match ds1287_set_base_clock() function types
@ 2025-04-22 9:24 WangYuli
2025-04-22 19:45 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: WangYuli @ 2025-04-22 9:24 UTC (permalink / raw)
To: gregkh, sashal, stable
Cc: macro, tsbogend, wangyuli, linux-mips, linux-kernel
[ Upstream commit a759109b234385b74d2f5f4c86b5f59b3201ec12 ]
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/ds1287.h b/arch/mips/include/asm/ds1287.h
index 46cfb01f9a14..51cb61fd4c03 100644
--- a/arch/mips/include/asm/ds1287.h
+++ b/arch/mips/include/asm/ds1287.h
@@ -8,7 +8,7 @@
#define __ASM_DS1287_H
extern int ds1287_timer_state(void);
-extern void ds1287_set_base_clock(unsigned int clock);
+extern int ds1287_set_base_clock(unsigned int hz);
extern int ds1287_clockevent_init(int irq);
#endif
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 5.4+] MIPS: ds1287: Match ds1287_set_base_clock() function types
2025-04-22 9:24 [PATCH 5.4+] MIPS: ds1287: Match ds1287_set_base_clock() function types WangYuli
@ 2025-04-22 19:45 ` Sasha Levin
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2025-04-22 19:45 UTC (permalink / raw)
To: stable; +Cc: WangYuli, Sasha Levin
[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected.
No action required from the submitter.
The upstream commit SHA1 provided is correct: a759109b234385b74d2f5f4c86b5f59b3201ec12
Status in newer kernel trees:
6.14.y | Not found
6.12.y | Not found
6.6.y | Not found
6.1.y | Not found
5.15.y | Not found
5.10.y | Not found
Note: The patch differs from the upstream commit:
---
1: a759109b23438 ! 1: ad27ae5c0ffa5 MIPS: ds1287: Match ds1287_set_base_clock() function types
@@ Metadata
## Commit message ##
MIPS: ds1287: Match ds1287_set_base_clock() function types
+ [ Upstream commit a759109b234385b74d2f5f4c86b5f59b3201ec12 ]
+
Synchronize the declaration of ds1287_set_base_clock() between
cevt-ds1287.c and ds1287.h.
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.4.y | Success | Success |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-22 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 9:24 [PATCH 5.4+] MIPS: ds1287: Match ds1287_set_base_clock() function types WangYuli
2025-04-22 19:45 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox