diff options
| author | Qing Zhang <[email protected]> | 2020-06-11 12:56:52 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-06-11 15:27:25 +0000 |
| commit | 7bb64402a092136fb2fda995b0e0304b43c163c5 (patch) | |
| tree | 9072a89c4bb413a6c16e70b29cf708aa024eee85 /tools/perf/scripts/python/syscall-counts.py | |
| parent | spi: tools: Make default_tx/rx and input_tx static (diff) | |
| download | kernel-7bb64402a092136fb2fda995b0e0304b43c163c5.tar.gz kernel-7bb64402a092136fb2fda995b0e0304b43c163c5.zip | |
spi: tools: Add macro definitions to fix build errors
Add SPI_TX_OCTAL and SPI_RX_OCTAL to fix the following build errors:
CC spidev_test.o
spidev_test.c: In function ‘transfer’:
spidev_test.c:131:13: error: ‘SPI_TX_OCTAL’ undeclared (first use in this function)
if (mode & SPI_TX_OCTAL)
^
spidev_test.c:131:13: note: each undeclared identifier is reported only once for each function it appears in
spidev_test.c:137:13: error: ‘SPI_RX_OCTAL’ undeclared (first use in this function)
if (mode & SPI_RX_OCTAL)
^
spidev_test.c: In function ‘parse_opts’:
spidev_test.c:290:12: error: ‘SPI_TX_OCTAL’ undeclared (first use in this function)
mode |= SPI_TX_OCTAL;
^
spidev_test.c:308:12: error: ‘SPI_RX_OCTAL’ undeclared (first use in this function)
mode |= SPI_RX_OCTAL;
^
LD spidev_test-in.o
ld: cannot find spidev_test.o: No such file or directory
Additionally, maybe SPI_CS_WORD and SPI_3WIRE_HIZ will be used in the future,
so add them too.
Fixes: 896fa735084e ("spi: spidev_test: Add support for Octal mode data transfers")
Signed-off-by: Qing Zhang <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
