]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Revert "fix up queue-4.14/xen-fix-up-build-warning-with-xen_init_time_ops-reference...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2023 10:07:53 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2023 10:07:53 +0000 (11:07 +0100)
This reverts commit 45c2738b177f6813cb63821396b8ee71decb0b13.

Let's go back to the previous version...

queue-4.14/xen-fix-up-build-warning-with-xen_init_time_ops-reference.patch

index 36fed0bbb28894b141fae1f857e4e44685ca25c5..53bd685313a6f76d617301e0901ac24278e38aaf 100644 (file)
@@ -7,15 +7,15 @@ From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 Somehow the xen_init_time_ops() reference got out of sync in the 4.14.y
 tree (or it never was in sync), and now there's a build warning.  Fix
-that up by removing the __ref and __init marking for xen_init_time_ops()
-to resolve all build warnings.
+that up by making xen_init_time_ops() be __init, not __ref.
 
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- arch/x86/xen/time.c    |    2 +-
- arch/x86/xen/xen-ops.h |    2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
+ arch/x86/xen/time.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
+diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
+index 03706331f567..8ecc38110bcc 100644
 --- a/arch/x86/xen/time.c
 +++ b/arch/x86/xen/time.c
 @@ -516,7 +516,7 @@ static void __init xen_time_init(void)
@@ -23,18 +23,10 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  }
  
 -void __ref xen_init_time_ops(void)
-+void xen_init_time_ops(void)
++void __init xen_init_time_ops(void)
  {
        xen_sched_clock_offset = xen_clocksource_read();
        pv_time_ops = xen_time_ops;
---- a/arch/x86/xen/xen-ops.h
-+++ b/arch/x86/xen/xen-ops.h
-@@ -72,7 +72,7 @@ u64 xen_clocksource_read(void);
- void xen_setup_cpu_clockevents(void);
- void xen_save_time_memory_area(void);
- void xen_restore_time_memory_area(void);
--void __init xen_init_time_ops(void);
-+void xen_init_time_ops(void);
- void __init xen_hvm_init_time_ops(void);
- irqreturn_t xen_debug_interrupt(int irq, void *dev_id);
+-- 
+2.39.1
+