linux/arch/x86/platform/intel-mid
Nicolai Stange 447ae31667 x86: Don't include linux/irq.h from asm/hardirq.h
The next patch in this series will have to make the definition of
irq_cpustat_t available to entering_irq().

Inclusion of asm/hardirq.h into asm/apic.h would cause circular header
dependencies like

  asm/smp.h
    asm/apic.h
      asm/hardirq.h
        linux/irq.h
          linux/topology.h
            linux/smp.h
              asm/smp.h

or

  linux/gfp.h
    linux/mmzone.h
      asm/mmzone.h
        asm/mmzone_64.h
          asm/smp.h
            asm/apic.h
              asm/hardirq.h
                linux/irq.h
                  linux/irqdesc.h
                    linux/kobject.h
                      linux/sysfs.h
                        linux/kernfs.h
                          linux/idr.h
                            linux/gfp.h

and others.

This causes compilation errors because of the header guards becoming
effective in the second inclusion: symbols/macros that had been defined
before wouldn't be available to intermediate headers in the #include chain
anymore.

A possible workaround would be to move the definition of irq_cpustat_t
into its own header and include that from both, asm/hardirq.h and
asm/apic.h.

However, this wouldn't solve the real problem, namely asm/harirq.h
unnecessarily pulling in all the linux/irq.h cruft: nothing in
asm/hardirq.h itself requires it. Also, note that there are some other
archs, like e.g. arm64, which don't have that #include in their
asm/hardirq.h.

Remove the linux/irq.h #include from x86' asm/hardirq.h.

Fix resulting compilation errors by adding appropriate #includes to *.c
files as needed.

Note that some of these *.c files could be cleaned up a bit wrt. to their
set of #includes, but that should better be done from separate patches, if
at all.

Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2018-08-05 09:53:13 +02:00
..
device_libs x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-05 09:53:13 +02:00
intel_mid_vrtc.c x86: Convert x86_platform_ops to timespec64 2018-05-19 14:03:14 +02:00
intel_mid_weak_decls.h x86, intel-mid: Remove "weak" from function declarations 2014-10-22 16:14:03 -06:00
intel-mid.c Merge branch 'x86/urgent' into x86/mm to pick up dependencies 2018-03-14 20:23:25 +01:00
Makefile x86/platform/intel-mid: Rename mrfl.c to mrfld.c 2016-07-09 14:02:09 +02:00
mfld.c x86/platform/intel-mid: Use common power off sequence 2017-03-13 22:08:28 +01:00
mrfld.c x86/platform/intel-mid: Enable RTC on Intel Merrifield 2017-01-14 08:30:45 +01:00
pwr.c x86/platform/intel-mid: Make several arrays static, to make code smaller 2017-08-29 13:30:16 +02:00
sfi.c x86: Introduce and use MP IRQ trigger and polarity defines 2018-01-14 21:11:54 +01:00