Re: [PATCH v3 3/3] dmaengine: sf-pdma: Get number of channel by device tree
by kernel test robot
Hi Zong,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on v5.16]
[cannot apply to robh/for-next next-20220114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Zong-Li/Determine-the-number-of-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20220115/202201150140.AnHdUdow-lk...)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/efa33512fd463fd6e29750992df1d4051...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zong-Li/Determine-the-number-of-DMA-channels-by-dma-channels-property/20220114-172017
git checkout efa33512fd463fd6e29750992df1d40513eb5a7c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/compiler_types.h:85,
from <command-line>:
arch/riscv/include/asm/jump_label.h: In function 'vchan_cookie_complete':
>> include/linux/compiler-gcc.h:86:38: warning: 'asm' operand 0 probably does not match constraints
86 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^~~
arch/riscv/include/asm/jump_label.h:20:9: note: in expansion of macro 'asm_volatile_goto'
20 | asm_volatile_goto(
| ^~~~~~~~~~~~~~~~~
include/linux/compiler-gcc.h:86:38: error: impossible constraint in 'asm'
86 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^~~
arch/riscv/include/asm/jump_label.h:20:9: note: in expansion of macro 'asm_volatile_goto'
20 | asm_volatile_goto(
| ^~~~~~~~~~~~~~~~~
vim +/asm +86 include/linux/compiler-gcc.h
313dd1b629219d Kees Cook 2017-05-05 76
cb984d101b30eb Joe Perches 2015-06-25 77 /*
cb984d101b30eb Joe Perches 2015-06-25 78 * GCC 'asm goto' miscompiles certain code sequences:
cb984d101b30eb Joe Perches 2015-06-25 79 *
cb984d101b30eb Joe Perches 2015-06-25 80 * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670
cb984d101b30eb Joe Perches 2015-06-25 81 *
cb984d101b30eb Joe Perches 2015-06-25 82 * Work it around via a compiler barrier quirk suggested by Jakub Jelinek.
cb984d101b30eb Joe Perches 2015-06-25 83 *
cb984d101b30eb Joe Perches 2015-06-25 84 * (asm goto is automatically volatile - the naming reflects this.)
cb984d101b30eb Joe Perches 2015-06-25 85 */
cb984d101b30eb Joe Perches 2015-06-25 @86 #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
cb984d101b30eb Joe Perches 2015-06-25 87
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[xilinx-xlnx:master 248/326] include/linux/mtd/cfi.h:62:2: warning: No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 9b62852ec04b7d48971ce8016b13c27403929908 [248/326] Merge tag 'v5.15' into master
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220114/202201142208.iEdIk0Sc-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82c8aca93488730ce8f66101e0f3538f14b551dd)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Xilinx/linux-xlnx/commit/9b62852ec04b7d48971ce8016b13c...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout 9b62852ec04b7d48971ce8016b13c27403929908
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/spi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/spi/spi-zynqmp-gqspi.c:26:
In file included from include/linux/mtd/spi-nor.h:10:
>> include/linux/mtd/cfi.h:62:2: warning: No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-W#warnings]
#warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
^
In file included from drivers/spi/spi-zynqmp-gqspi.c:13:
include/linux/firmware/xlnx-zynqmp.h:1182:12: warning: unused function 'zynqmp_pm_sec_read_reg' [-Wunused-function]
static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
^
include/linux/firmware/xlnx-zynqmp.h:1187:12: warning: unused function 'zynqmp_pm_sec_mask_write_reg' [-Wunused-function]
static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
^
3 warnings generated.
vim +62 include/linux/mtd/cfi.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 60
241651d04d672f David Woodhouse 2007-09-06 61 #ifndef cfi_interleave
241651d04d672f David Woodhouse 2007-09-06 @62 #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
241651d04d672f David Woodhouse 2007-09-06 63 static inline int cfi_interleave(void *cfi)
241651d04d672f David Woodhouse 2007-09-06 64 {
241651d04d672f David Woodhouse 2007-09-06 65 BUG();
241651d04d672f David Woodhouse 2007-09-06 66 return 0;
241651d04d672f David Woodhouse 2007-09-06 67 }
241651d04d672f David Woodhouse 2007-09-06 68 #endif
241651d04d672f David Woodhouse 2007-09-06 69
:::::: The code at line 62 was first introduced by commit
:::::: 241651d04d672fb685b2874707016cbbf95931e5 [MTD] Fix CFI build error when no map width or interleave supported
:::::: TO: David Woodhouse <dwmw2(a)infradead.org>
:::::: CC: David Woodhouse <dwmw2(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH v7] media: i2c: Add ov08d10 camera sensor driver
by Dan Carpenter
Hi Jimmy,
url: https://github.com/0day-ci/linux/commits/Jimmy-Su/media-i2c-Add-ov08d10-c...
base: git://linuxtv.org/media_tree.git master
config: mips-randconfig-m031-20220113 (https://download.01.org/0day-ci/archive/20220114/202201142047.YegHpDOf-lk...)
compiler: mips64el-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/media/i2c/ov08d10.c:833 ov08d10_set_ctrl_flip() warn: impossible condition '(val < 0) => (0-255 < 0)'
vim +833 drivers/media/i2c/ov08d10.c
8c1d2ed3b617b8 Jimmy Su 2022-01-12 821 static int ov08d10_set_ctrl_flip(struct ov08d10 *ov08d10, u32 ctrl_val)
8c1d2ed3b617b8 Jimmy Su 2022-01-12 822 {
8c1d2ed3b617b8 Jimmy Su 2022-01-12 823 struct i2c_client *client = v4l2_get_subdevdata(&ov08d10->sd);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 824 u8 val;
^^^^^^
8c1d2ed3b617b8 Jimmy Su 2022-01-12 825 int ret;
8c1d2ed3b617b8 Jimmy Su 2022-01-12 826
8c1d2ed3b617b8 Jimmy Su 2022-01-12 827 /* System control registers */
8c1d2ed3b617b8 Jimmy Su 2022-01-12 828 ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 829 if (ret < 0)
8c1d2ed3b617b8 Jimmy Su 2022-01-12 830 return ret;
8c1d2ed3b617b8 Jimmy Su 2022-01-12 831
8c1d2ed3b617b8 Jimmy Su 2022-01-12 832 val = i2c_smbus_read_byte_data(client, OV08D10_REG_FLIP_OPT);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 @833 if (val < 0)
impossible
8c1d2ed3b617b8 Jimmy Su 2022-01-12 834 return val;
8c1d2ed3b617b8 Jimmy Su 2022-01-12 835
8c1d2ed3b617b8 Jimmy Su 2022-01-12 836 val = val | (ctrl_val & OV08D10_REG_FLIP_MASK);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 837
8c1d2ed3b617b8 Jimmy Su 2022-01-12 838 ret = i2c_smbus_write_byte_data(client, OV08D10_REG_PAGE, 0x01);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 839 if (ret < 0)
8c1d2ed3b617b8 Jimmy Su 2022-01-12 840 return ret;
8c1d2ed3b617b8 Jimmy Su 2022-01-12 841
8c1d2ed3b617b8 Jimmy Su 2022-01-12 842 ret = i2c_smbus_write_byte_data(client, OV08D10_REG_FLIP_OPT, val);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 843
8c1d2ed3b617b8 Jimmy Su 2022-01-12 844 if (ret < 0)
8c1d2ed3b617b8 Jimmy Su 2022-01-12 845 return ret;
8c1d2ed3b617b8 Jimmy Su 2022-01-12 846
8c1d2ed3b617b8 Jimmy Su 2022-01-12 847 return i2c_smbus_write_byte_data(client,
8c1d2ed3b617b8 Jimmy Su 2022-01-12 848 OV08D10_REG_GLOBAL_EFFECTIVE, 0x01);
8c1d2ed3b617b8 Jimmy Su 2022-01-12 849 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week