Skip to contentSkip to conversation

Get rid of non-static 'inline' modifiers (gcc 4.2.1 complains)

PATCH In review Tim Deegan 2 participants 2 messages Jan 26, 2012

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 Get rid of non-static 'inline' modifiers (gcc 4.2.1 complains)

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1327592560 0
# Node ID dba361080715baf5ec2c493190bb69ba04cc633c
# Parent a08043a997ea550e351ee87cd205f87562c67fcb Get rid of non-static 'inline' modifiers (gcc 4.2.1 complains)

They seem to have been introduced by accident in 23311:f4585056b9ae when some 'static inline' functions were moved out of a header

xen/arch/x86/xstate.c +2 -2
diff -r a08043a997ea -r dba361080715 xen/arch/x86/xstate.c
@@ -40,13 +40,13 @@ static inline void xsetbv(u32 index, u64
             "a" (lo), "d" (hi));
 }
 
-inline void set_xcr0(u64 xfeatures)
+void set_xcr0(u64 xfeatures)
 {
     this_cpu(xcr0) = xfeatures;
     xsetbv(XCR_XFEATURE_ENABLED_MASK, xfeatures);
 }
 
-inline uint64_t get_xcr0(void)
+uint64_t get_xcr0(void)
 {
     return this_cpu(xcr0);
 }
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Tim Deegan

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1327592560 0
# Node ID dba361080715baf5ec2c493190bb69ba04cc633c
# Parent a08043a997ea550e351ee87cd205f87562c67fcb Get rid of non-static 'inline' modifiers (gcc 4.2.1 complains)

They seem to have been introduced by accident in 23311:f4585056b9ae when some 'static inline' functions were moved out of a header

Quoted 24 lines

diff -r a08043a997ea -r dba361080715 xen/arch/x86/xstate.c

xen/arch/x86/xstate.c Thu Jan 26 15:42:40 2012 +0000 renamed from xen/arch/x86/xstate.c Thu Jan 26 15:35:36 2012 +0000 +2 -2
@@ -40,13 +40,13 @@ static inline void xsetbv(u32 index, u64
             "a" (lo), "d" (hi));
 }
 
-inline void set_xcr0(u64 xfeatures)
+void set_xcr0(u64 xfeatures)
 {
     this_cpu(xcr0) = xfeatures;
     xsetbv(XCR_XFEATURE_ENABLED_MASK, xfeatures);
 }
 
-inline uint64_t get_xcr0(void)
+uint64_t get_xcr0(void)
 {
     return this_cpu(xcr0);
 }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel