Skip to content

Commit 0692698

Browse files
Jan Beulichaegl
authored andcommitted
[IA64] xen_domu_defconfig: fix build issues/warnings
- drivers/xen/events.c did not compile - xen_setup_hook caused a modpost section warning - the use of u64 (instead of unsigned long long) together with a %llu in drivers/xen/balloon.c caused a compiler warning Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent f328ddc commit 0692698

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

‎arch/ia64/include/asm/idle.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef _ASM_IA64_IDLE_H
2+
#define _ASM_IA64_IDLE_H
3+
4+
static inline void enter_idle(void) { }
5+
static inline void exit_idle(void) { }
6+
7+
#endif /* _ASM_IA64_IDLE_H */

‎arch/ia64/include/asm/xen/events.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,9 @@ static inline int xen_irqs_disabled(struct pt_regs *regs)
3636
return !(ia64_psr(regs)->i);
3737
}
3838

39-
static inline void xen_do_IRQ(int irq, struct pt_regs *regs)
39+
static inline void handle_irq(int irq, struct pt_regs *regs)
4040
{
41-
struct pt_regs *old_regs;
42-
old_regs = set_irq_regs(regs);
43-
irq_enter();
4441
__do_IRQ(irq);
45-
irq_exit();
46-
set_irq_regs(old_regs);
4742
}
4843
#define irq_ctx_init(cpu) do { } while (0)
4944

‎arch/ia64/xen/xensetup.S‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ END(startup_xen)
5454

5555
#define isBP p3 // are we the Bootstrap Processor?
5656

57-
.text
58-
5957
GLOBAL_ENTRY(xen_setup_hook)
6058
mov r8=XEN_PV_DOMAIN_ASM
6159
(isBP) movl r9=xen_domain_type;;

‎drivers/xen/balloon.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ static ssize_t show_target(struct sys_device *dev, struct sysdev_attribute *attr
513513
char *buf)
514514
{
515515
return sprintf(buf, "%llu\n",
516-
(u64)balloon_stats.target_pages << PAGE_SHIFT);
516+
(unsigned long long)balloon_stats.target_pages
517+
<< PAGE_SHIFT);
517518
}
518519

519520
static ssize_t store_target(struct sys_device *dev,

0 commit comments

Comments
 (0)