From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE9753FDF for ; Thu, 11 May 2023 23:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683846983; x=1715382983; h=date:from:to:cc:subject:message-id:mime-version; bh=J0BYiIOeBvnjSlP8zP0U6H5RYNQGb+tNZ2+DTUWTzng=; b=TQrWwl3Tik16ddgrdRS9hhve3+fDqfIQqQPUZAej8Lt32DrKElGnFZTC 3Bfl2ggwlj+1xqJ6cXinvoHNjMBo35LGaZYzFAExr/FTU7YfAzBKTGm0G hG/pC36wiYoq2bikUuK3yKF8o3d5Dzkav5RISO3HfxU3XxTRhezeYKK3+ y3I8wc1h5d+ZzF3hY9hwwrEvv7wQxX4yO6p8Stjq1Rzr8bRDu4Hv8fdL1 ELfv/n9d3OjRie4iqJ/ixWImyg0Z38YKyvPsGatGGx9JRrLTm8QUHHjsA 2MdpBt9ErdMgLyjwEw9rHhTFYLpYX2e4rxFy9mDiD2bO0u+MqAK1pk3RJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10707"; a="414016055" X-IronPort-AV: E=Sophos;i="5.99,268,1677571200"; d="scan'208";a="414016055" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 16:16:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10707"; a="650414788" X-IronPort-AV: E=Sophos;i="5.99,268,1677571200"; d="scan'208";a="650414788" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 11 May 2023 16:16:21 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pxFWH-0004Ie-0w; Thu, 11 May 2023 23:16:21 +0000 Date: Fri, 12 May 2023 07:15:52 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android-4.19-stable 15107/29506] drivers/nvmem/core.c:347:5: warning: no previous prototype for 'nvmem_add_cells' Message-ID: <202305120736.VdpP64Ta-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Bartosz, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android-4.19-stable head: 7cf5d82154dcd64ff75b69f3dc8dbff4ed2d2816 commit: e96a10625581a499e8a4218ef504f3f53918408b [15107/29506] UPSTREAM: nvmem: add support for cell info config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20230512/202305120736.VdpP64Ta-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): git remote add android-common https://android.googlesource.com/kernel/common git fetch --no-tags android-common android-4.19-stable git checkout e96a10625581a499e8a4218ef504f3f53918408b # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 olddefconfig make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/nvmem/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305120736.VdpP64Ta-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/nvmem/core.c:347:5: warning: no previous prototype for 'nvmem_add_cells' [-Wmissing-prototypes] 347 | int nvmem_add_cells(struct nvmem_device *nvmem, | ^~~~~~~~~~~~~~~ vim +/nvmem_add_cells +347 drivers/nvmem/core.c eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 337 b3db17e4b864e4 Andrew Lunn 2018-05-11 338 /** b3db17e4b864e4 Andrew Lunn 2018-05-11 339 * nvmem_add_cells() - Add cell information to an nvmem device b3db17e4b864e4 Andrew Lunn 2018-05-11 340 * b3db17e4b864e4 Andrew Lunn 2018-05-11 341 * @nvmem: nvmem device to add cells to. b3db17e4b864e4 Andrew Lunn 2018-05-11 342 * @info: nvmem cell info to add to the device b3db17e4b864e4 Andrew Lunn 2018-05-11 343 * @ncells: number of cells in info b3db17e4b864e4 Andrew Lunn 2018-05-11 344 * b3db17e4b864e4 Andrew Lunn 2018-05-11 345 * Return: 0 or negative error code on failure. b3db17e4b864e4 Andrew Lunn 2018-05-11 346 */ b3db17e4b864e4 Andrew Lunn 2018-05-11 @347 int nvmem_add_cells(struct nvmem_device *nvmem, b3db17e4b864e4 Andrew Lunn 2018-05-11 348 const struct nvmem_cell_info *info, b3db17e4b864e4 Andrew Lunn 2018-05-11 349 int ncells) eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 350 { eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 351 struct nvmem_cell **cells; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 352 int i, rval; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 353 b3db17e4b864e4 Andrew Lunn 2018-05-11 354 cells = kcalloc(ncells, sizeof(*cells), GFP_KERNEL); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 355 if (!cells) eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 356 return -ENOMEM; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 357 b3db17e4b864e4 Andrew Lunn 2018-05-11 358 for (i = 0; i < ncells; i++) { eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 359 cells[i] = kzalloc(sizeof(**cells), GFP_KERNEL); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 360 if (!cells[i]) { eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 361 rval = -ENOMEM; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 362 goto err; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 363 } eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 364 eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 365 rval = nvmem_cell_info_to_nvmem_cell(nvmem, &info[i], cells[i]); 287980e49ffc0f Arnd Bergmann 2016-05-27 366 if (rval) { eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 367 kfree(cells[i]); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 368 goto err; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 369 } eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 370 eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 371 nvmem_cell_add(cells[i]); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 372 } eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 373 eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 374 /* remove tmp array */ eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 375 kfree(cells); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 376 eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 377 return 0; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 378 err: dfdf141429f089 Rasmus Villemoes 2016-02-08 379 while (i--) eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 380 nvmem_cell_drop(cells[i]); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 381 dfdf141429f089 Rasmus Villemoes 2016-02-08 382 kfree(cells); dfdf141429f089 Rasmus Villemoes 2016-02-08 383 eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 384 return rval; eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 385 } b3db17e4b864e4 Andrew Lunn 2018-05-11 386 EXPORT_SYMBOL_GPL(nvmem_add_cells); eace75cfdcf7d9 Srinivas Kandagatla 2015-07-27 387 :::::: The code at line 347 was first introduced by commit :::::: b3db17e4b864e46ad150ebef69c0e0130a1c5fca drivers: nvmem: Export nvmem_add_cells() :::::: TO: Andrew Lunn :::::: CC: Greg Kroah-Hartman -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests