Skip to content

Commit bd20779

Browse files
zhangqingmybroonie
authored andcommitted
spi: tools: Make default_tx/rx and input_tx static
Fix the following sparse warning: ./spidev_test.c:50:9: warning: symbol 'default_tx' was not declared. Should it be static? ./spidev_test.c:59:9: warning: symbol 'default_rx' was not declared. Should it be static? ./spidev_test.c:60:6: warning: symbol 'input_tx' was not declared. Should it be static? Signed-off-by: Qing Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a575357 commit bd20779

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/spi/spidev_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int transfer_size;
4747
static int iterations;
4848
static int interval = 5; /* interval in seconds for showing transfer rate */
4949

50-
uint8_t default_tx[] = {
50+
static uint8_t default_tx[] = {
5151
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
5252
0x40, 0x00, 0x00, 0x00, 0x00, 0x95,
5353
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
@@ -56,8 +56,8 @@ uint8_t default_tx[] = {
5656
0xF0, 0x0D,
5757
};
5858

59-
uint8_t default_rx[ARRAY_SIZE(default_tx)] = {0, };
60-
char *input_tx;
59+
static uint8_t default_rx[ARRAY_SIZE(default_tx)] = {0, };
60+
static char *input_tx;
6161

6262
static void hex_dump(const void *src, size_t length, size_t line_size,
6363
char *prefix)

0 commit comments

Comments
 (0)