Skip to contentSkip to conversation

linux-next: build warning after merge of the spi tree

DISCUSSION Stephen Rothwell 1 participant 1 message Aug 10, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the spi tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

/home/sfr/next/next/drivers/spi/spi-mxic.c: In function 'mxic_spi_mem_exec_op':
/home/sfr/next/next/drivers/spi/spi-mxic.c:401:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]

  401 |   if (op->data.dir == SPI_MEM_DATA_IN)
      |   ^~
/home/sfr/next/next/drivers/spi/spi-mxic.c:403:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  403 |    if (op->data.dtr)
      |    ^~

Introduced by commit

d05aaa66ba3c ("spi: mxic: patch for octal DTR mode support")

Signature · 2 lines
Cheers,
Stephen Rothwell