lantiq: fix compilation warning in cfi_mtdset_0001
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sat, 6 May 2023 13:19:25 +0000 (15:19 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:35 +0000 (03:15 +0200)
commit4935cdbd6904a6909a823cbbfc15207cf05c8cee
tree449ff26df331d4cdfa91a90a1a18f5c99634b672
parent77ecc2844b5172cbb23d2beabd4b21e9b57d97bb
lantiq: fix compilation warning in cfi_mtdset_0001

Some write buffer functions are not used when FORCE_WORD_WRITE is set to 1.
So the compile warning messages are output if FORCE_WORD_WRITE is 1. To
resolve this disable the write buffer functions if FORCE_WORD_WRITE is 1.

This fix compilation warning:
drivers/mtd/chips/cfi_cmdset_0001.c:307:13: warning: 'fixup_use_write_buffers' defined but not used [-Wunused-function]
  307 | static void fixup_use_write_buffers(struct mtd_info *mtd)
      |             ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
target/linux/lantiq/patches-5.15/0302-mtd-cfi_cmdset_0001-Disable-write-buffer-functions-i.patch [new file with mode: 0644]