Skip to contentSkip to conversation

ia64: Remove compiler warnings on irq_ia64.c

PATCH New Hidetoshi Seto 1 participant 2 messages Dec 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64: Remove compiler warnings on irq_ia64.c

Hi,

This is repost of Kenji's patch at Aug 22.

Thanks,
H.Seto

---
This patch removes the following compiler warning messages.

CC arch/ia64/kernel/irq_ia64.o
arch/ia64/kernel/irq_ia64.c: In function 'create_irq':
arch/ia64/kernel/irq_ia64.c:343: warning: 'domain.bits[0u]' may be used uninitialized in this function arch/ia64/kernel/irq_ia64.c: In function 'assign_irq_vector':
arch/ia64/kernel/irq_ia64.c:203: warning: 'domain.bits[0u]' may be used uninitialized in this function

---
 arch/ia64/kernel/irq_ia64.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.24-rc5/arch/ia64/kernel/irq_ia64.c =================================--- linux-2.6.24-rc5.orig/arch/ia64/kernel/irq_ia64.c +++ linux-2.6.24-rc5/arch/ia64/kernel/irq_ia64.c
@@ -200,7 +200,7 @@
{
unsigned long flags;
int vector, cpu;
- cpumask_t domain;
+ cpumask_t domain = CPU_MASK_NONE;

vector = -ENOSPC;

@@ -340,7 +340,7 @@
{
unsigned long flags;
int irq, vector, cpu;
- cpumask_t domain;
+ cpumask_t domain = CPU_MASK_NONE;

irq = vector = -ENOSPC;
spin_lock_irqsave(&vector_lock, flags);

#1 lore raw

PATCH 1/1 ia64: Remove compiler warnings on head.S

Hi,

And another warning fix is here.

Thanks,
H.Seto

---
This patch removes the following compiler warning messages.

AS arch/ia64/kernel/head.o
arch/ia64/kernel/head.S: Assembler messages:
arch/ia64/kernel/head.S:1179: Warning: Use of 'ld8' violates RAW dependency 'CR[PTA]' (data) arch/ia64/kernel/head.S:1179: Warning: Only the first path encountering the conflict is reported arch/ia64/kernel/head.S:1178: Warning: This is the location of the conflicting usage arch/ia64/kernel/head.S:1180: Warning: Use of 'ld8' violates RAW dependency 'CR[PTA]' (data) arch/ia64/kernel/head.S:1180: Warning: Only the first path encountering the conflict is reported arch/ia64/kernel/head.S:1178: Warning: This is the location of the conflicting usage
:
arch/ia64/kernel/head.S:1213: Warning: Use of 'ldf.fill.nta' violates RAW dependency 'CR[PTA]' (data) arch/ia64/kernel/head.S:1213: Warning: Only the first path encountering the conflict is reported arch/ia64/kernel/head.S:1178: Warning: This is the location of the conflicting usage

---
 arch/ia64/kernel/head.S |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.24-rc5/arch/ia64/kernel/head.S =================================--- linux-2.6.24-rc5.orig/arch/ia64/kernel/head.S +++ linux-2.6.24-rc5/arch/ia64/kernel/head.S
@@ -1176,6 +1176,7 @@
RESTORE_REG(cr.dcr, r25, r17);;
RESTORE_REG(cr.iva, r25, r17);;
RESTORE_REG(cr.pta, r25, r17);;
+ srlz.d;; // required not to violate RAW dependency
RESTORE_REG(cr.itv, r25, r17);;
RESTORE_REG(cr.pmv, r25, r17);;
RESTORE_REG(cr.cmcv, r25, r17);;