All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [IA64] fix warning: "in_atomic" redefined
@ 2011-07-15  5:36 KUWAMURA Shin'ya
  0 siblings, 0 replies; only message in thread
From: KUWAMURA Shin'ya @ 2011-07-15  5:36 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: Text/Plain, Size: 176 bytes --]

Hi,

This patch fixes `warning: "in_atomic" redefined'.
# It is introduced by 22395:deb438d43e79.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
-- 
  KUWAMURA Shin'ya

[-- Attachment #2: fix-ia64-in_atomic.patch --]
[-- Type: Text/X-Patch, Size: 1030 bytes --]

# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
# Date 1310706822 -32400
# Node ID d919e7b49ec28c85ff6e87c0cdd4b465ebf5fc0b
# Parent  deb438d43e79943643914f708b37354dc53f79f4
[IA64] fix warning: "in_atomic" redefined

This warning is introduced by 22395:deb438d43e79.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>

diff -r deb438d43e79 -r d919e7b49ec2 xen/include/asm-ia64/linux-xen/linux/hardirq.h
--- a/xen/include/asm-ia64/linux-xen/linux/hardirq.h	Tue Nov 16 15:41:28 2010 +0000
+++ b/xen/include/asm-ia64/linux-xen/linux/hardirq.h	Fri Jul 15 14:13:42 2011 +0900
@@ -69,11 +69,13 @@
 #define in_softirq()		(softirq_count())
 #define in_interrupt()		(irq_count())
 
+#ifndef XEN
 #if defined(CONFIG_PREEMPT) && !defined(CONFIG_PREEMPT_BKL)
 # define in_atomic()	((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
 #else
 # define in_atomic()	((preempt_count() & ~PREEMPT_ACTIVE) != 0)
 #endif
+#endif
 
 #ifdef CONFIG_PREEMPT
 # define preemptible()	(preempt_count() == 0 && !irqs_disabled())

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-15  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15  5:36 [PATCH] [IA64] fix warning: "in_atomic" redefined KUWAMURA Shin'ya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.