Skip to content
  • Paul Gortmaker's avatar
    kernel: fix two implicit header assumptions in irq_work.c · 967d1f90
    Paul Gortmaker authored
    
    
    Up until now, this file was getting percpu.h because nearly every
    file was implicitly getting module.h (and all its sub-includes).
    But we want to clean that up, so call out percpu.h explicitly.
    Otherwise we'll get things like this on an ARM build:
    
    kernel/irq_work.c:48: error: expected declaration specifiers or '...' before 'irq_work_list'
    kernel/irq_work.c:48: warning: type defaults to 'int' in declaration of 'DEFINE_PER_CPU'
    
    The same thing was happening for builds on ARM for asm/processor.h
    
    kernel/irq_work.c: In function 'irq_work_sync':
    kernel/irq_work.c:166: error: implicit declaration of function 'cpu_relax'
    
    Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
    967d1f90