x86, mrst: A function in a header file needs to be marked "inline"
A function in a header file needs to be explicitly marked "inline", or gcc will complain if it is not used. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Cc: <stable@kernel.org> v2.6.36 LKML-Reference: <1274295685-6774-3-git-send-email-jacob.jun.pan@linux.intel.com>
This commit is contained in:
parent
cb655d0f3d
commit
55572b293b
@ -26,7 +26,7 @@ enum mrst_cpu_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern enum mrst_cpu_type __mrst_cpu_chip;
|
extern enum mrst_cpu_type __mrst_cpu_chip;
|
||||||
static enum mrst_cpu_type mrst_identify_cpu(void)
|
static inline enum mrst_cpu_type mrst_identify_cpu(void)
|
||||||
{
|
{
|
||||||
return __mrst_cpu_chip;
|
return __mrst_cpu_chip;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user