From: Stanislaw Gruszka <sgruszka@redhat.com>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org,
Stanislaw Gruszka <sgruszka@redhat.com>,
Mathias Nyman <mathias.nyman@linux.intel.com>
Subject: [PATCH -tip] x86: fix build without CONFIG_X86_MRST
Date: Tue, 6 Dec 2011 11:18:22 +0100 [thread overview]
Message-ID: <1323166702-12990-1-git-send-email-sgruszka@redhat.com> (raw)
Fix compilation error when compiled with CONFIG_X86_INTEL_MID and
without CONFIG_X86_MRST:
arch/x86/built-in.o: In function `add_rtc_cmos':
rtc.c:(.init.text+0x34bd): undefined reference to `__mrst_cpu_chip'
Problem was caused currently by:
commit 35d476996288af6a4aaa8b172bcd31decd233de7
Author: Mathias Nyman <mathias.nyman@linux.intel.com>
Date: Tue Nov 15 14:46:52 2011 -0800
x86/rtc, mrst: Don't register a platform RTC device for for Intel MID platforms
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
arch/x86/include/asm/mrst.h | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/arch/x86/include/asm/mrst.h b/arch/x86/include/asm/mrst.h
index 93f7909..3f4589b 100644
--- a/arch/x86/include/asm/mrst.h
+++ b/arch/x86/include/asm/mrst.h
@@ -32,18 +32,14 @@ enum mrst_cpu_type {
extern enum mrst_cpu_type __mrst_cpu_chip;
-#ifdef CONFIG_X86_INTEL_MID
-
+#ifdef CONFIG_X86_MRST
static inline enum mrst_cpu_type mrst_identify_cpu(void)
{
return __mrst_cpu_chip;
}
-
-#else /* !CONFIG_X86_INTEL_MID */
-
+#else
#define mrst_identify_cpu() (0)
-
-#endif /* !CONFIG_X86_INTEL_MID */
+#endif
enum mrst_timer_options {
MRST_TIMER_DEFAULT,
--
1.7.1
next reply other threads:[~2011-12-06 10:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 10:18 Stanislaw Gruszka [this message]
2011-12-06 10:30 ` Alan Cox
2011-12-06 10:31 ` Ingo Molnar
2011-12-06 13:17 ` Alan Cox
2011-12-06 17:12 ` Ingo Molnar
2011-12-12 18:33 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323166702-12990-1-git-send-email-sgruszka@redhat.com \
--to=sgruszka@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®