linux_dsm_epyc7002/arch/x86/platform/intel-mid/device_libs
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
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
platform_bcm43xx.c x86/platform/intel-mid: Enable WiFi on Intel Edison 2016-09-01 08:22:42 +02:00
platform_bma023.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_bt.c x86/platform/intel-mid: Revert "Make 'bt_sfi_data' const" 2018-01-08 20:01:44 +01:00
platform_emc1403.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_gpio_keys.c x86: Use ARRAY_SIZE 2017-10-19 16:15:47 +02:00
platform_lis331.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_max7315.c x86/platform/intel-mid: Fix a format string overflow warning 2017-07-20 10:46:25 +02:00
platform_mpu3050.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_mrfld_pinctrl.c x86/platform/intel-mid: Add pinctrl for Intel Merrifield 2016-07-01 10:12:39 +02:00
platform_mrfld_power_btn.c x86/platform/intel-mid: Add power button support for Merrifield 2017-03-13 22:08:28 +01:00
platform_mrfld_rtc.c x86/platform/intel-mid: Allocate RTC interrupt for Merrifield 2017-01-20 10:07:41 +01:00
platform_mrfld_sd.c x86/platform/intel-mid: Enable SD card detection on Merrifield 2016-09-01 08:22:42 +02:00
platform_mrfld_spidev.c x86/platform/intel-mid: Rename 'spidev' to 'mrfld_spidev' 2017-01-05 09:03:29 +01:00
platform_mrfld_wdt.c x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-05 09:53:13 +02:00
platform_msic_audio.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_battery.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_gpio.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_ocd.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_power_btn.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_thermal.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_msic.h x86, intel-mid: Cleanup some platform code's header files 2014-01-28 15:13:40 -08:00
platform_pcal9555a.c x86/platform/intel-mid: Enable GPIO expanders on Edison 2016-06-15 12:52:54 +02:00
platform_tc35876x.c gpu: drm: tc35876x: move header file out of I2C realm 2017-08-13 16:07:17 +02:00
platform_tca6416.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00