Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1725976

Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of xen_init_time_ops() in header

From "Jan Beulich" <JBeulich@suse.com>
Newsgroups linux.kernel
Subject Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of xen_init_time_ops() in header
Date 2017-09-04 12:20 +0200
Message-ID <ulWE2-4dW-11@gated-at.bofh.it> (permalink)
References <ulyBH-66w-5@gated-at.bofh.it> <ulULU-35P-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>>> On 04.09.17 at 10:17, <jgross@suse.com> wrote:
> On 03/09/17 10:38, Nicolas Iooss wrote:
>> Commit d162809f85b4 ("xen/x86: Do not call xen_init_time_ops() until
>> shared_info is initialized") moved xen_init_time_ops() from __init to
>> __ref without updating xen-ops.h accordingly. Fix this.
>> 
>> Fixes: d162809f85b4 ("xen/x86: Do not call xen_init_time_ops() until
>> shared_info is initialized")
>> Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
>> ---
>>  arch/x86/xen/xen-ops.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/arch/x86/xen/xen-ops.h b/arch/x86/xen/xen-ops.h
>> index 0d5004477db6..b2a5d48a2c2a 100644
>> --- a/arch/x86/xen/xen-ops.h
>> +++ b/arch/x86/xen/xen-ops.h
>> @@ -69,7 +69,7 @@ void xen_setup_runstate_info(int cpu);
>>  void xen_teardown_timer(int cpu);
>>  u64 xen_clocksource_read(void);
>>  void xen_setup_cpu_clockevents(void);
>> -void __init xen_init_time_ops(void);
>> +void __ref xen_init_time_ops(void);
>>  void __init xen_hvm_init_time_ops(void);
> 
> When correcting this could you please modify the prototypes to comply to
> the intended form as noted in include/linux/init.h (the __ref or __init
> annotations should be just before the ending semicolon)?

Why would these annotations be kept on the declarations anyway?
Attributes affecting code/data placement generally belong on the
definitions only.

I also question the suggested placement, despite init.h saying so.

Jan

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] x86/xen: fix section of xen_init_time_ops() in header Nicolas Iooss <nicolas.iooss_linux@m4x.org> - 2017-09-03 10:40 +0200
  Re: [PATCH 1/1] x86/xen: fix section of xen_init_time_ops() in header Juergen Gross <jgross@suse.com> - 2017-09-04 10:20 +0200
    Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of  xen_init_time_ops() in header "Jan Beulich" <JBeulich@suse.com> - 2017-09-04 12:20 +0200
      Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of  xen_init_time_ops() in header Andrew Cooper <andrew.cooper3@citrix.com> - 2017-09-04 12:40 +0200
        Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of  xen_init_time_ops() in header Andrew Cooper <andrew.cooper3@citrix.com> - 2017-09-04 14:50 +0200
          Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of  xen_init_time_ops() in header "Jan Beulich" <JBeulich@suse.com> - 2017-09-04 15:00 +0200
        Re: [Xen-devel] [PATCH 1/1] x86/xen: fix section of  xen_init_time_ops() in header "Jan Beulich" <JBeulich@suse.com> - 2017-09-04 14:50 +0200

csiph-web