Commit b42faeee718c ("spi: Add a PTP system timestamp to the transfer structure") added an include of ptp_clock_kernel.h to spi.h for struct ptp_system_timestamp but a forward declaration is enough. Let's use that to limit the number of objects we have to rebuild every time we touch networking headers.
Unified · Split
| @@ -33,6 +33,7 @@ · 32 unmodified lines | |||
| 33 | #include <linux/highmem.h> | 33 | #include <linux/highmem.h> |
| 34 | #include <linux/idr.h> | 34 | #include <linux/idr.h> |
| 35 | #include <linux/platform_data/x86/apple.h> | 35 | #include <linux/platform_data/x86/apple.h> |
| 36 | #include <linux/ptp_clock_kernel.h> | ||
| 36 | 37 | ||
| 37 | #define CREATE_TRACE_POINTS | 38 | #define CREATE_TRACE_POINTS |
| 38 | #include <trace/events/spi.h> | 39 | #include <trace/events/spi.h> |
| @@ -14,12 +14,12 @@ · 13 unmodified lines | |||
| 14 | #include <linux/completion.h> | 14 | #include <linux/completion.h> |
| 15 | #include <linux/scatterlist.h> | 15 | #include <linux/scatterlist.h> |
| 16 | #include <linux/gpio/consumer.h> | 16 | #include <linux/gpio/consumer.h> |
| 17 | #include <linux/ptp_clock_kernel.h> | ||
| 18 | 17 | ||
| 19 | #include <uapi/linux/spi/spi.h> | 18 | #include <uapi/linux/spi/spi.h> |
| 20 | 19 | ||
| 21 | struct dma_chan; | 20 | struct dma_chan; |
| 22 | struct software_node; | 21 | struct software_node; |
| 22 | struct ptp_system_timestamp; | ||
| 23 | struct spi_controller; | 23 | struct spi_controller; |
| 24 | struct spi_transfer; | 24 | struct spi_transfer; |
| 25 | struct spi_controller_mem_ops; | 25 | struct spi_controller_mem_ops; |