Skip to content

Commit 44ea628

Browse files
kuba-moobroonie
authored andcommitted
spi: don't include ptp_clock_kernel.h in spi.h
Commit b42faee ("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>
1 parent 69c1b87 commit 44ea628

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/spi/spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <linux/highmem.h>
3434
#include <linux/idr.h>
3535
#include <linux/platform_data/x86/apple.h>
36+
#include <linux/ptp_clock_kernel.h>
3637

3738
#define CREATE_TRACE_POINTS
3839
#include <trace/events/spi.h>

include/linux/spi/spi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#include <linux/completion.h>
1515
#include <linux/scatterlist.h>
1616
#include <linux/gpio/consumer.h>
17-
#include <linux/ptp_clock_kernel.h>
1817

1918
#include <uapi/linux/spi/spi.h>
2019

2120
struct dma_chan;
2221
struct software_node;
22+
struct ptp_system_timestamp;
2323
struct spi_controller;
2424
struct spi_transfer;
2525
struct spi_controller_mem_ops;

0 commit comments

Comments
 (0)