Skip to content

Commit d21a19e

Browse files
Saurabh Sengarliuw
authored andcommitted
x86/init: Make get/set_rtc_noop() public
Make get/set_rtc_noop() to be public so that they can be used in other modules as well. Co-developed-by: Tianyu Lan <tiala@microsoft.com> Signed-off-by: Tianyu Lan <tiala@microsoft.com> Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com> Reviewed-by: Wei Liu <wei.liu@kernel.org> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/1681192532-15460-2-git-send-email-ssengar@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
1 parent 493cc07 commit d21a19e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

arch/x86/include/asm/x86_init.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,5 +330,7 @@ extern void x86_init_uint_noop(unsigned int unused);
330330
extern bool bool_x86_init_noop(void);
331331
extern void x86_op_int_noop(int cpu);
332332
extern bool x86_pnpbios_disabled(void);
333+
extern int set_rtc_noop(const struct timespec64 *now);
334+
extern void get_rtc_noop(struct timespec64 *now);
333335

334336
#endif

arch/x86/kernel/x86_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ static int __init iommu_init_noop(void) { return 0; }
3333
static void iommu_shutdown_noop(void) { }
3434
bool __init bool_x86_init_noop(void) { return false; }
3535
void x86_op_int_noop(int cpu) { }
36-
static int set_rtc_noop(const struct timespec64 *now) { return -EINVAL; }
37-
static void get_rtc_noop(struct timespec64 *now) { }
36+
int set_rtc_noop(const struct timespec64 *now) { return -EINVAL; }
37+
void get_rtc_noop(struct timespec64 *now) { }
3838

3939
static __initconst const struct of_device_id of_cmos_match[] = {
4040
{ .compatible = "motorola,mc146818" },

0 commit comments

Comments
 (0)