From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41C6BC52D6F for ; Tue, 27 Aug 2024 03:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h471W/J/Ka+nz8mKZqsd2dAEg6OnBuwKSxaGlqLnp6I=; b=v/n3r+tchmBdUk L4V0nyBzE2Kb0V/aIz7iTr7EdnjgWLwj9VD3BW+cFqYhO4KjPbmBC63YnogbvT1CMQpTJKsf4xs5M g96ZvFsBRXMXqg7QmBD1OMWhgULQKvifFfXMvdMTCF4NNRfLB2vJ3IXawnPk6dwW/HTbRz9hB8Np7 8qfmGRq8Mt8CSLHP69P1fAqVkm38/9VY5NZM8fF9GtXVvJIulRSj6q2h+M5pjqD+p4Tc2wZxUReh9 8Lc1N5zMJd9conRSmIa87E08yrRQOVWuayBUNiDLVdWG+bYVNrg2hloS9mBQ9wXQyWBf0GHeV+Xgs QqVv/kNbG8OdEeaO/SwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1simu7-00000009bKB-38Cb; Tue, 27 Aug 2024 03:29:59 +0000 Received: from mgamail.intel.com ([192.198.163.9]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1simu4-00000009bJf-3QGO for linux-mtd@lists.infradead.org; Tue, 27 Aug 2024 03:29:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724729397; x=1756265397; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nDDZZa2NUt3MBOd2plEH/XJHDllkd3y93u3Wq/0eZ0w=; b=BkzKBDkMl8hsSPOfBiQNrzKzuEqqpMO4JyYEWCp8iwPNVNq00HS6ftpg FHq+gz+M2MAkMIqNFcpcUUmdnrha1FSCDFfejElQ7WZ5JmpzdKEDYJzFn LftsfRxTp6s/K0JrIZGdnHgGAom6hS72eHV9d6LOIH8awfSUAqOOp8aPa baxYUo2aJI2dMmq93iBH+aFIPnQgqx1Z9a28vRDOFCksRLUv8eeL2Tp53 YASm+xSMR4VylaPPgkBkUHqSwefrq7NTc53b5IhVtEoVYK/Zi3G+P8krL DzhAO3ZDxDg2/6hlFm2TmjD+FJTheK/7QGbBV8C1sLXvjQKCAqPn0IjwB w==; X-CSE-ConnectionGUID: XPmT27GkS0O3mjC8bZrFxQ== X-CSE-MsgGUID: CQewLz7NTLeCdu3ahktCGw== X-IronPort-AV: E=McAfee;i="6700,10204,11176"; a="33847369" X-IronPort-AV: E=Sophos;i="6.10,179,1719903600"; d="scan'208";a="33847369" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2024 20:27:47 -0700 X-CSE-ConnectionGUID: LTtUaULPSgmoe1IavD1cNA== X-CSE-MsgGUID: Srw/+DRkTUS+v7mgMETgnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,179,1719903600"; d="scan'208";a="62552107" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 26 Aug 2024 20:27:44 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1simru-000Hqs-0Q; Tue, 27 Aug 2024 03:27:42 +0000 Date: Tue, 27 Aug 2024 11:26:54 +0800 From: kernel test robot To: Wang Zhaolong , richard@nod.at, miquel.raynal@bootlin.com, vigneshr@ti.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, wangzhaolong1@huawei.com, yi.zhang@huawei.com Subject: Re: [PATCH] mtd: ubi: remove unused parameter 'pnum' from add_volume() Message-ID: <202408271041.ttLMjF8z-lkp@intel.com> References: <20240825083515.4074081-1-wangzhaolong1@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240825083515.4074081-1-wangzhaolong1@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_202956_906889_15FD54AF X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Hi Wang, kernel test robot noticed the following build warnings: [auto build test WARNING on rw-ubifs/next] [also build test WARNING on rw-ubifs/fixes linus/master v6.11-rc5 next-20240826] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Wang-Zhaolong/mtd-ubi-remove-unused-parameter-pnum-from-add_volume/20240826-142424 base: https://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git next patch link: https://lore.kernel.org/r/20240825083515.4074081-1-wangzhaolong1%40huawei.com patch subject: [PATCH] mtd: ubi: remove unused parameter 'pnum' from add_volume() config: i386-buildonly-randconfig-005-20240827 (https://download.01.org/0day-ci/archive/20240827/202408271041.ttLMjF8z-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240827/202408271041.ttLMjF8z-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202408271041.ttLMjF8z-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/mtd/ubi/attach.c:398: warning: Excess function parameter 'pnum' description in 'add_volume' vim +398 drivers/mtd/ubi/attach.c 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 382 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 383 /** a4e6042f1d07307 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 384 * add_volume - add volume to the attaching information. a4e6042f1d07307 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 385 * @ai: attaching information 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 386 * @vol_id: ID of the volume to add 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 387 * @pnum: physical eraseblock number 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 388 * @vid_hdr: volume identifier header 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 389 * 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 390 * If the volume corresponding to the @vid_hdr logical eraseblock is already a4e6042f1d07307 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 391 * present in the attaching information, this function does nothing. Otherwise a4e6042f1d07307 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 392 * it adds corresponding volume to the attaching information. Returns a pointer fbd0107f4d33be0 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 393 * to the allocated "av" object in case of success and a negative error code in fbd0107f4d33be0 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 394 * case of failure. 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 395 */ beba9855702e14c drivers/mtd/ubi/attach.c Wang Zhaolong 2024-08-25 396 static struct ubi_ainf_volume *add_volume(struct ubi_attach_info *ai, int vol_id, 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 397 const struct ubi_vid_hdr *vid_hdr) 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 @398 { 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 399 struct ubi_ainf_volume *av; de4c455b3e9f630 drivers/mtd/ubi/attach.c Boris Brezillon 2016-09-16 400 bool created; 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 401 3261ebd7d4194ff drivers/mtd/ubi/scan.c Christoph Hellwig 2007-05-21 402 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 403 de4c455b3e9f630 drivers/mtd/ubi/attach.c Boris Brezillon 2016-09-16 404 av = ubi_find_or_add_av(ai, vol_id, &created); de4c455b3e9f630 drivers/mtd/ubi/attach.c Boris Brezillon 2016-09-16 405 if (IS_ERR(av) || !created) 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 406 return av; 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 407 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 408 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 409 av->data_pad = be32_to_cpu(vid_hdr->data_pad); 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 410 av->compat = vid_hdr->compat; 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 411 av->vol_type = vid_hdr->vol_type == UBI_VID_DYNAMIC ? UBI_DYNAMIC_VOLUME 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 412 : UBI_STATIC_VOLUME; 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 413 517af48c0540e61 drivers/mtd/ubi/scan.c Artem Bityutskiy 2012-05-17 414 return av; 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 415 } 801c135ce73d5df drivers/mtd/ubi/scan.c Artem B. Bityutskiy 2006-06-27 416 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/