Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: don't include ptp_clock_kernel.h in spi.h

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.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20210904013140.2377609-1-kuba@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jakub Kicinski and committed by
Mark Brown
44ea6281 69c1b875

+2 -1
+1
drivers/spi/spi.c
··· 33 33 #include <linux/highmem.h> 34 34 #include <linux/idr.h> 35 35 #include <linux/platform_data/x86/apple.h> 36 + #include <linux/ptp_clock_kernel.h> 36 37 37 38 #define CREATE_TRACE_POINTS 38 39 #include <trace/events/spi.h>
+1 -1
include/linux/spi/spi.h
··· 14 14 #include <linux/completion.h> 15 15 #include <linux/scatterlist.h> 16 16 #include <linux/gpio/consumer.h> 17 - #include <linux/ptp_clock_kernel.h> 18 17 19 18 #include <uapi/linux/spi/spi.h> 20 19 21 20 struct dma_chan; 22 21 struct software_node; 22 + struct ptp_system_timestamp; 23 23 struct spi_controller; 24 24 struct spi_transfer; 25 25 struct spi_controller_mem_ops;