Skip to contentSkip to conversation

include/linux/irq_work.h:5:26: fatal error: asm/irq_work.h: No such file

PATCH New Fengguang Wu 1 participant 2 messages Oct 12, 2012 – Oct 13, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 include/linux/irq_work.h:5:26: fatal error: asm/irq_work.h: No such file

Hi Frederic,

FYI, kernel build failed on

tree:   git://github.com/fweisbec/linux-dynticks.git nohz/printk
head:   f72ce6fbecebcf9faeaa740754ac71474758c1f6
commit: ed0f263e94f74a833ad1829e6acc218857f8e735 [1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers
config: cris-allyesconfig # make ARCH=cris allyesconfig

All error/warnings:

In file included from include/linux/perf_event.h:647:0,

                 from include/linux/ftrace_event.h:8,
                 from include/trace/syscall.h:6,
                 from include/linux/syscalls.h:78,
                 from kernel/fork.c:39:

include/linux/irq_work.h:5:26: fatal error: asm/irq_work.h: No such file or directory compilation terminated.

vim +5 include/linux/irq_work.h

e360adbe Peter Zijlstra      2010-10-14  1  #ifndef _LINUX_IRQ_WORK_H
e360adbe Peter Zijlstra      2010-10-14  2  #define _LINUX_IRQ_WORK_H
e360adbe Peter Zijlstra      2010-10-14  3  
38aaf809 Huang Ying          2011-09-08  4  #include <linux/llist.h>
ed0f263e Frederic Weisbecker 2012-10-12 @5  #include <asm/irq_work.h>
38aaf809 Huang Ying          2011-09-08  6  
e360adbe Peter Zijlstra      2010-10-14  7  struct irq_work {
38aaf809 Huang Ying          2011-09-08  8  	unsigned long flags;

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation

#1 lore raw

PATCH 1/5 include/linux/irqdesc.h:73:33: error: 'NR_IRQS' undeclared here (not in a

Hi Frederic,

FYI, kernel build failed on

tree:   git://github.com/fweisbec/linux-dynticks.git nohz/printk
head:   f72ce6fbecebcf9faeaa740754ac71474758c1f6
commit: ed0f263e94f74a833ad1829e6acc218857f8e735 [1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers
config: sparc-defconfig # make ARCH=sparc defconfig

All error/warnings:

In file included from include/linux/irq.h:356:0,

                 from include/asm-generic/hardirq.h:12,
                 from arch/sparc/include/asm/hardirq_32.h:11,
                 from arch/sparc/include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:12,
                 from arch/sparc/mm/fault_32.c:22:

include/linux/irqdesc.h:73:33: error: 'NR_IRQS' undeclared here (not in a function)

vim +73 include/linux/irqdesc.h

cd7eab44 Ben Hutchings             2011-01-19  57  	struct irq_affinity_notify *affinity_notify;
e144710b Thomas Gleixner           2010-10-01  58  #ifdef CONFIG_GENERIC_PENDING_IRQ
e144710b Thomas Gleixner           2010-10-01  59  	cpumask_var_t		pending_mask;
e144710b Thomas Gleixner           2010-10-01  60  #endif
e144710b Thomas Gleixner           2010-10-01  61  #endif
b5faba21 Thomas Gleixner           2011-02-23  62  	unsigned long		threads_oneshot;
e144710b Thomas Gleixner           2010-10-01  63  	atomic_t		threads_active;
e144710b Thomas Gleixner           2010-10-01  64  	wait_queue_head_t       wait_for_threads;
e144710b Thomas Gleixner           2010-10-01  65  #ifdef CONFIG_PROC_FS
e144710b Thomas Gleixner           2010-10-01  66  	struct proc_dir_entry	*dir;
e144710b Thomas Gleixner           2010-10-01  67  #endif
b6873807 Sebastian Andrzej Siewior 2011-07-11  68  	struct module		*owner;
e144710b Thomas Gleixner           2010-10-01  69  	const char		*name;
e144710b Thomas Gleixner           2010-10-01  70  } ____cacheline_internodealigned_in_smp;
e144710b Thomas Gleixner           2010-10-01  71  
e144710b Thomas Gleixner           2010-10-01  72  #ifndef CONFIG_SPARSE_IRQ
e144710b Thomas Gleixner           2010-10-01 @73  extern struct irq_desc irq_desc[NR_IRQS];
e144710b Thomas Gleixner           2010-10-01  74  #endif
e144710b Thomas Gleixner           2010-10-01  75  
e144710b Thomas Gleixner           2010-10-01  76  #ifdef CONFIG_GENERIC_HARDIRQS
e144710b Thomas Gleixner           2010-10-01  77  
d9936bb3 Thomas Gleixner           2011-03-11  78  static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc)
d9936bb3 Thomas Gleixner           2011-03-11  79  {
d9936bb3 Thomas Gleixner           2011-03-11  80  	return &desc->irq_data;
d9936bb3 Thomas Gleixner           2011-03-11  81  }

The code at line 73 was first introduced by commit:
e144710 genirq: Distangle irq.h

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation