x86, mrst: A function in a header file needs to be marked "inline"
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 7 Oct 2010 23:42:54 +0000 (16:42 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 7 Oct 2010 23:45:18 +0000 (16:45 -0700)
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>

arch/x86/include/asm/mrst.h

index 1635074..33fc296 100644 (file)
@@ -26,7 +26,7 @@ enum mrst_cpu_type {
 };
 
 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;
 }