* [PATCH] Fix warnings after: x86: apic - introduce imcr_ helpers
@ 2009-04-13 15:39 Alexander van Heukelum
2009-04-13 16:13 ` Cyrill Gorcunov
2009-04-13 21:00 ` [tip:x86/apic] x86: fix function definitions " tip-bot for Alexander van Heukelum
0 siblings, 2 replies; 3+ messages in thread
From: Alexander van Heukelum @ 2009-04-13 15:39 UTC (permalink / raw)
To: Ingo Molnar, LKML; +Cc: Cyrill Gorcunov, heukelum
Impact: fix compiler warnings
The patch "introduce imcr_ helpers" introduced good comments, but
also a few compile warnings. This fixes it.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
Hi Ingo,
Cyrill forgot to refresh the patches :).
Greetings,
Alexander
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 054f604..c3c57b2 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -107,7 +107,7 @@ static int enabled_via_apicbase;
* the BIOS or the operating system must switch out of
* PIC Mode by changing the IMCR.
*/
-static inline imcr_pic_to_apic(void)
+static inline void imcr_pic_to_apic(void)
{
/* select IMCR register */
outb(0x70, 0x22);
@@ -115,7 +115,7 @@ static inline imcr_pic_to_apic(void)
outb(0x01, 0x23);
}
-static inline imcr_apic_to_pic(void)
+static inline void imcr_apic_to_pic(void)
{
/* select IMCR register */
outb(0x70, 0x22);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix warnings after: x86: apic - introduce imcr_ helpers
2009-04-13 15:39 [PATCH] Fix warnings after: x86: apic - introduce imcr_ helpers Alexander van Heukelum
@ 2009-04-13 16:13 ` Cyrill Gorcunov
2009-04-13 21:00 ` [tip:x86/apic] x86: fix function definitions " tip-bot for Alexander van Heukelum
1 sibling, 0 replies; 3+ messages in thread
From: Cyrill Gorcunov @ 2009-04-13 16:13 UTC (permalink / raw)
To: Alexander van Heukelum; +Cc: Ingo Molnar, LKML, heukelum
[Alexander van Heukelum - Mon, Apr 13, 2009 at 05:39:24PM +0200]
| Impact: fix compiler warnings
|
| The patch "introduce imcr_ helpers" introduced good comments, but
| also a few compile warnings. This fixes it.
|
| Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
| Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
|
| ---
|
| Hi Ingo,
|
| Cyrill forgot to refresh the patches :).
The patch, not patches :) I've just updated it
but then poped without refresh (doh!).
|
| Greetings,
| Alexander
|
...
Thanks a lot, Alexander! Ingo, apply it please.
Cyrill
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:x86/apic] x86: fix function definitions after: x86: apic - introduce imcr_ helpers
2009-04-13 15:39 [PATCH] Fix warnings after: x86: apic - introduce imcr_ helpers Alexander van Heukelum
2009-04-13 16:13 ` Cyrill Gorcunov
@ 2009-04-13 21:00 ` tip-bot for Alexander van Heukelum
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Alexander van Heukelum @ 2009-04-13 21:00 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, gorcunov, heukelum, heukelum, tglx,
mingo
Commit-ID: 5cda395f4a262788d8ed79ac8a26a2b821e5f751
Gitweb: http://git.kernel.org/tip/5cda395f4a262788d8ed79ac8a26a2b821e5f751
Author: Alexander van Heukelum <heukelum@mailshack.com>
AuthorDate: Mon, 13 Apr 2009 17:39:24 +0200
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Mon, 13 Apr 2009 22:57:44 +0200
x86: fix function definitions after: x86: apic - introduce imcr_ helpers
The patch "introduce imcr_ helpers" introduced good comments, but
also a few new compile warnings. This fixes the function definitions
to have a 'void' return type.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090413153924.GA20287@mailshack.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/kernel/apic/apic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 9b849d4..4b48ff9 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -106,7 +106,7 @@ static int enabled_via_apicbase;
* the BIOS or the operating system must switch out of
* PIC Mode by changing the IMCR.
*/
-static inline imcr_pic_to_apic(void)
+static inline void imcr_pic_to_apic(void)
{
/* select IMCR register */
outb(0x70, 0x22);
@@ -114,7 +114,7 @@ static inline imcr_pic_to_apic(void)
outb(0x01, 0x23);
}
-static inline imcr_apic_to_pic(void)
+static inline void imcr_apic_to_pic(void)
{
/* select IMCR register */
outb(0x70, 0x22);
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-13 21:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-13 15:39 [PATCH] Fix warnings after: x86: apic - introduce imcr_ helpers Alexander van Heukelum
2009-04-13 16:13 ` Cyrill Gorcunov
2009-04-13 21:00 ` [tip:x86/apic] x86: fix function definitions " tip-bot for Alexander van Heukelum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox