From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7571355568058135238==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [superna9999:amlogic/v5.7/khadas-mcu 4/4] drivers/nvmem/khadas-mcu-user-mem.c:42:15: warning: Unused variable: size [unusedVariable] Date: Tue, 07 Apr 2020 16:37:23 +0800 Message-ID: <20200407083723.GC8179@shao2-debian> List-Id: --===============7571355568058135238== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/superna9999/linux amlogic/v5.7/khadas-mcu head: 9109063d9d3d5c699b22293d5099eabb83e0adbc commit: 9109063d9d3d5c699b22293d5099eabb83e0adbc [4/4] nvmem: add support f= or the Khadas MCU Programmable User Memory :::::: branch date: 7 hours ago :::::: commit date: 7 hours ago If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot cppcheck warnings: (new ones prefixed by >>) >> drivers/nvmem/khadas-mcu-user-mem.c:42:15: warning: Unused variable: siz= e [unusedVariable] unsigned int size; ^ >> drivers/nvmem/khadas-mcu-user-mem.c:43:6: warning: Unused variable: ret = [unusedVariable] int ret; ^ # https://github.com/superna9999/linux/commit/9109063d9d3d5c699b22293d5099e= abb83e0adbc git remote add superna9999 https://github.com/superna9999/linux git remote update superna9999 git checkout 9109063d9d3d5c699b22293d5099eabb83e0adbc vim +42 drivers/nvmem/khadas-mcu-user-mem.c 9109063d9d3d5c Neil Armstrong 2020-04-05 35 = 9109063d9d3d5c Neil Armstrong 2020-04-05 36 static int khadas_mcu_user_me= m_probe(struct platform_device *pdev) 9109063d9d3d5c Neil Armstrong 2020-04-05 37 { 9109063d9d3d5c Neil Armstrong 2020-04-05 38 struct khadas_mcu *khadas_mc= u =3D dev_get_drvdata(pdev->dev.parent); 9109063d9d3d5c Neil Armstrong 2020-04-05 39 struct device *dev =3D &pdev= ->dev; 9109063d9d3d5c Neil Armstrong 2020-04-05 40 struct nvmem_device *nvmem; 9109063d9d3d5c Neil Armstrong 2020-04-05 41 struct nvmem_config *econfig; 9109063d9d3d5c Neil Armstrong 2020-04-05 @42 unsigned int size; 9109063d9d3d5c Neil Armstrong 2020-04-05 @43 int ret; 9109063d9d3d5c Neil Armstrong 2020-04-05 44 = 9109063d9d3d5c Neil Armstrong 2020-04-05 45 econfig =3D devm_kzalloc(dev= , sizeof(*econfig), GFP_KERNEL); 9109063d9d3d5c Neil Armstrong 2020-04-05 46 if (!econfig) 9109063d9d3d5c Neil Armstrong 2020-04-05 47 return -ENOMEM; 9109063d9d3d5c Neil Armstrong 2020-04-05 48 = 9109063d9d3d5c Neil Armstrong 2020-04-05 49 econfig->dev =3D dev; 9109063d9d3d5c Neil Armstrong 2020-04-05 50 econfig->name =3D dev_name(d= ev); 9109063d9d3d5c Neil Armstrong 2020-04-05 51 econfig->stride =3D 1; 9109063d9d3d5c Neil Armstrong 2020-04-05 52 econfig->word_size =3D 1; 9109063d9d3d5c Neil Armstrong 2020-04-05 53 econfig->reg_read =3D khadas= _mcu_user_mem_read; 9109063d9d3d5c Neil Armstrong 2020-04-05 54 econfig->reg_write =3D khada= s_mcu_user_mem_write; 9109063d9d3d5c Neil Armstrong 2020-04-05 55 econfig->size =3D 56; 9109063d9d3d5c Neil Armstrong 2020-04-05 56 econfig->priv =3D khadas_mcu; 9109063d9d3d5c Neil Armstrong 2020-04-05 57 = 9109063d9d3d5c Neil Armstrong 2020-04-05 58 nvmem =3D devm_nvmem_registe= r(&pdev->dev, econfig); 9109063d9d3d5c Neil Armstrong 2020-04-05 59 = 9109063d9d3d5c Neil Armstrong 2020-04-05 60 return PTR_ERR_OR_ZERO(nvmem= ); 9109063d9d3d5c Neil Armstrong 2020-04-05 61 } 9109063d9d3d5c Neil Armstrong 2020-04-05 62 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7571355568058135238==--