diff options
author | 2024-02-05 12:09:55 +0200 | |
---|---|---|
committer | 2024-02-05 14:27:07 +0100 | |
commit | 18af7e357033f1a1cee50db2663ef982b4a2226e (patch) | |
tree | 873bd8b9f37289606a6f2160c63f220991c6c891 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: ssfdc: Improve a size determination in ssfdcr_add_mtd() (diff) | |
download | wireguard-linux-18af7e357033f1a1cee50db2663ef982b4a2226e.tar.xz wireguard-linux-18af7e357033f1a1cee50db2663ef982b4a2226e.zip |
mtd: flashchip: explicitly include <linux/wait.h>
While reviewing the hyperbus sfdp proposal the following problem was
noticed:
In file included from ./include/linux/mtd/gen_probe.h:10,
from drivers/mtd/hyperbus/hyperbus-sfdp.c:6:
./include/linux/mtd/flashchip.h:77:9: error: unknown type name ‘wait_queue_head_t’
77 | wait_queue_head_t wq; /* Wait on here when we're waiting for the chip
| ^~~~~~~~~~~~~~~~~
It is good practice to directly include all headers used, it avoids
implicit dependencies and spurious breakage if someone rearranges
headers and causes the implicit include to vanish.
Explicitly include <linux/wait.h> in include/linux/mtd/flashchip.
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240205100955.149755-1-tudor.ambarus@linaro.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions