[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-55572b293b3a5929e8c54bc91d14ae6264186bf6@git.kernel.org>
Date: Thu, 7 Oct 2010 23:52:24 GMT
From: "tip-bot for H. Peter Anvin" <hpa@...ux.intel.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
tglx@...utronix.de, jacob.jun.pan@...ux.intel.com,
hpa@...ux.intel.com
Subject: [tip:x86/mrst] x86, mrst: A function in a header file needs to be marked "inline"
Commit-ID: 55572b293b3a5929e8c54bc91d14ae6264186bf6
Gitweb: http://git.kernel.org/tip/55572b293b3a5929e8c54bc91d14ae6264186bf6
Author: H. Peter Anvin <hpa@...ux.intel.com>
AuthorDate: Thu, 7 Oct 2010 16:42:54 -0700
Committer: H. Peter Anvin <hpa@...ux.intel.com>
CommitDate: Thu, 7 Oct 2010 16:45:18 -0700
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@...ux.intel.com>
Cc: Jacob Pan <jacob.jun.pan@...ux.intel.com>
Cc: <stable@...nel.org> v2.6.36
LKML-Reference: <1274295685-6774-3-git-send-email-jacob.jun.pan@...ux.intel.com>
---
arch/x86/include/asm/mrst.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/mrst.h b/arch/x86/include/asm/mrst.h
index 1635074..33fc296 100644
--- a/arch/x86/include/asm/mrst.h
+++ b/arch/x86/include/asm/mrst.h
@@ -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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists