History

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.

Jakub Kicinski committed 5 years ago

Commit 44ea6281 parent 69c1b872 files · +2 −1Browse files

Unified · Split

2 files
  1. drivers/spi/spi.c +1 −0
  2. include/linux/spi/spi.h +1 −1
drivers/spi/spi.c+1−0
@@ -33,6 +33,7 @@ · 32 unmodified lines
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+1−1
@@ -14,12 +14,12 @@ · 13 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t