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

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/spi/spi.h+1−1
@@ -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
21struct dma_chan;20struct dma_chan;
22struct software_node;21struct software_node;
22struct ptp_system_timestamp;
23struct spi_controller;23struct spi_controller;
24struct spi_transfer;24struct spi_transfer;
25struct spi_controller_mem_ops;25struct 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