From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 F31BC37D for ; Wed, 12 Apr 2023 01:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681261901; x=1712797901; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ygX0J2yls6M2rJhV8GWWjRszSuOk6QXDwu4jmtDY+TE=; b=dvVH+7400YCxhYfSnaXd3sljECPCyS3iYA/q/hqPe5dx/n3R+UsMxG/V hcTlZLsIInb16vMUcBbq+rVffs6mMvc2aih0hygu652V4rHDNA0No+WLl jhV+3Ax+Azhw9dvXz79N3j+ngLXUwetQP821amQYKDxpgVfFNczpRxWk+ SCb7+m0Ay7BMUn2CaV7UNjkiSGr+UpnJJJxoluBpxDlDrqoGcU+YxUdlA C4YviS413Cg3QFZH+KGSU2l3340EM4utNqPXf5QOfQrXWZEBrKSvoI9Zj RrdgYHRIZrWe5H2ZH9olmXVdO8y9iA9YQPiJyeXvjzb7B6DBq4gJVVAD0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="430059115" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="430059115" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2023 18:11:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="753334468" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="753334468" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 11 Apr 2023 18:11:36 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pmP1L-000Wtq-2r; Wed, 12 Apr 2023 01:11:35 +0000 Date: Wed, 12 Apr 2023 09:11:29 +0800 From: kernel test robot To: Pankaj Gupta , shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gaurav.jain@nxp.com, sahil.malhotra@nxp.com, aisheng.dong@nxp.com, V.Sethi@nxp.com Cc: oe-kbuild-all@lists.linux.dev, Pankaj Gupta Subject: Re: [NXP ELE-MUAP 6/7] firmware: imx: add ELE MU driver support Message-ID: <202304120902.bP52A56z-lkp@intel.com> References: <20230411162536.30604-7-pankaj.gupta@nxp.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 In-Reply-To: <20230411162536.30604-7-pankaj.gupta@nxp.com> Hi Pankaj, kernel test robot noticed the following build warnings: [auto build test WARNING on shawnguo/for-next] [also build test WARNING on robh/for-next arm/for-next arm/fixes arm64/for-next/core clk/clk-next kvmarm/next rockchip/for-next soc/for-next linus/master v6.3-rc6 next-20230411] [cannot apply to xilinx-xlnx/master] [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/Pankaj-Gupta/doc-device-tree-binding-addition-for-ele-MU/20230411-231913 base: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next patch link: https://lore.kernel.org/r/20230411162536.30604-7-pankaj.gupta%40nxp.com patch subject: [NXP ELE-MUAP 6/7] firmware: imx: add ELE MU driver support config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230412/202304120902.bP52A56z-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/80f6b85e97e7f7eb4b5d59c638adb2bdbe6d48d1 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Pankaj-Gupta/doc-device-tree-binding-addition-for-ele-MU/20230411-231913 git checkout 80f6b85e97e7f7eb4b5d59c638adb2bdbe6d48d1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/firmware/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304120902.bP52A56z-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:564, from include/asm-generic/bug.h:22, from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from include/asm-generic/preempt.h:5, from ./arch/m68k/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from arch/m68k/include/asm/irqflags.h:6, from include/linux/irqflags.h:16, from arch/m68k/include/asm/atomic.h:6, from include/linux/atomic.h:7, from include/linux/rcupdate.h:25, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/firmware/imx/ele_mu.c:6: drivers/firmware/imx/ele_mu.c: In function 'ele_mu_fops_write': >> drivers/firmware/imx/ele_mu.h:17:47: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:17:17: note: in expansion of macro 'dev_dbg' 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:36:9: note: in expansion of macro 'miscdev_dbg' 36 | miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:303:9: note: in expansion of macro 'devctx_dbg' 303 | devctx_dbg(dev_ctx, "write from buf (%p)%ld, ppos=%lld\n", buf, size, | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.h:31:47: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:31:17: note: in expansion of macro 'dev_err' 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:40:9: note: in expansion of macro 'miscdev_err' 40 | miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:315:17: note: in expansion of macro 'devctx_err' 315 | devctx_err(dev_ctx, "User buffer too small(%ld < %x)\n", | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.h:31:47: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:31:17: note: in expansion of macro 'dev_err' 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:40:9: note: in expansion of macro 'miscdev_err' 40 | miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:322:17: note: in expansion of macro 'devctx_err' 322 | devctx_err(dev_ctx, "User buffer too big(%ld > %lu)\n", size, | ^~~~~~~~~~ >> drivers/firmware/imx/ele_mu.h:31:47: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=] 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:31:17: note: in expansion of macro 'dev_err' 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:40:9: note: in expansion of macro 'miscdev_err' 40 | miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:322:17: note: in expansion of macro 'devctx_err' 322 | devctx_err(dev_ctx, "User buffer too big(%ld > %lu)\n", size, | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.c: In function 'ele_mu_fops_read': >> drivers/firmware/imx/ele_mu.h:17:47: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:17:17: note: in expansion of macro 'dev_dbg' 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:36:9: note: in expansion of macro 'miscdev_dbg' 36 | miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:410:9: note: in expansion of macro 'devctx_dbg' 410 | devctx_dbg(dev_ctx, "read to buf %p(%ld), ppos=%lld\n", buf, size, | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.h:17:47: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:17:17: note: in expansion of macro 'dev_dbg' 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:36:9: note: in expansion of macro 'miscdev_dbg' 36 | miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:437:17: note: in expansion of macro 'devctx_dbg' 437 | devctx_dbg(dev_ctx, "User buffer too small (%ld < %d)\n", | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.c:408:23: warning: variable 'header' set but not used [-Wunused-but-set-variable] 408 | struct mu_hdr header; | ^~~~~~ drivers/firmware/imx/ele_mu.c:404:29: warning: unused variable 'ele_mu_priv' [-Wunused-variable] 404 | struct ele_mu_priv *ele_mu_priv = dev_ctx->priv; | ^~~~~~~~~~~ vim +17 drivers/firmware/imx/ele_mu.h 12 13 /* macro to log operation of a misc device */ 14 #define miscdev_dbg(p_miscdev, fmt, va_args...) \ 15 ({ \ 16 struct miscdevice *_p_miscdev = p_miscdev; \ > 17 dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ 18 ##va_args); \ 19 }) 20 21 #define miscdev_info(p_miscdev, fmt, va_args...) \ 22 ({ \ 23 struct miscdevice *_p_miscdev = p_miscdev; \ 24 dev_info((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ 25 ##va_args); \ 26 }) 27 28 #define miscdev_err(p_miscdev, fmt, va_args...) \ 29 ({ \ 30 struct miscdevice *_p_miscdev = p_miscdev; \ > 31 dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ 32 ##va_args); \ 33 }) 34 /* macro to log operation of a device context */ 35 #define devctx_dbg(p_devctx, fmt, va_args...) \ 36 miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) 37 #define devctx_info(p_devctx, fmt, va_args...) \ 38 miscdev_info(&((p_devctx)->miscdev), fmt, ##va_args) 39 #define devctx_err(p_devctx, fmt, va_args...) \ 40 miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) 41 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests 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 61A4FC76196 for ; Wed, 12 Apr 2023 01:12:56 +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=M2MjA0UlIrsu1J3J06xrxXpzvsvTjewt8Ax2AimxKsE=; b=YSzstbqjMmBNWy KrcvidV0VpD4t05ZOGEuhD+7D3FY1028HR9tRI+h230ez1wJo49Jly+aIKpkgTxBo7cI1r3LJOoy0 W+c0C1ItBEm3ZNgYUgiGxpvDzbijHCXeb+zKg4yM3jB247GPL4+HzpvhAS9I10EVPvgDoEopg6c/o 0jSubuU1fucogNdiVZTO7fHes2HbTT1hflIyaEl3xV7r5/vKaa9zUaUWLGxoHudV/nIXzyekQsKSn LhNzRwBL5OpUIEbNa70Z/cZ0JmoHTjuDV9JwnOR9jPjFvk5H/oKPhxAbM0uemo7ucB41JEdbyYv/f qFB3SXDjQl64B8c/xAqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmP1a-001Vmx-15; Wed, 12 Apr 2023 01:11:50 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmP1W-001VlO-2t for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2023 01:11:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681261906; x=1712797906; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ygX0J2yls6M2rJhV8GWWjRszSuOk6QXDwu4jmtDY+TE=; b=St+OPvcpevGtkdoJdioN9AbQGCfa/r4qI15qRM/1a5OVN+o3JKntRxDi 5zYq0AYWGhgN/Z3fWvs4QmDXNDwns5jEn80G0jFNzKtrDqHwF6S+Q5LAB e+zzQ4HS7CVrAvKhkUD/B6qkbGbbX9jWyDKZgYxBczDh2kn0zDwgj1LUn MNEXaEBjm5R1J/hLEiNKj1GCzWZWs5MyQfqBuITU7D8GbQcfWQSo43TcU zeA1kngVFLKzUCyoW/VwEYX7YpTBUjIj+CE6qEJY7orJ+ccO1tyXWMJMD G0Q+CsZGfKrX2jq2meFVLu16wN8wt//PA2gDceChR0h57Hpg0djUS8A17 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="430059119" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="430059119" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2023 18:11:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="753334468" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="753334468" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 11 Apr 2023 18:11:36 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pmP1L-000Wtq-2r; Wed, 12 Apr 2023 01:11:35 +0000 Date: Wed, 12 Apr 2023 09:11:29 +0800 From: kernel test robot To: Pankaj Gupta , shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gaurav.jain@nxp.com, sahil.malhotra@nxp.com, aisheng.dong@nxp.com, V.Sethi@nxp.com Cc: oe-kbuild-all@lists.linux.dev, Pankaj Gupta Subject: Re: [NXP ELE-MUAP 6/7] firmware: imx: add ELE MU driver support Message-ID: <202304120902.bP52A56z-lkp@intel.com> References: <20230411162536.30604-7-pankaj.gupta@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230411162536.30604-7-pankaj.gupta@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230411_181146_961147_8487E613 X-CRM114-Status: GOOD ( 12.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Pankaj, kernel test robot noticed the following build warnings: [auto build test WARNING on shawnguo/for-next] [also build test WARNING on robh/for-next arm/for-next arm/fixes arm64/for-next/core clk/clk-next kvmarm/next rockchip/for-next soc/for-next linus/master v6.3-rc6 next-20230411] [cannot apply to xilinx-xlnx/master] [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/Pankaj-Gupta/doc-device-tree-binding-addition-for-ele-MU/20230411-231913 base: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next patch link: https://lore.kernel.org/r/20230411162536.30604-7-pankaj.gupta%40nxp.com patch subject: [NXP ELE-MUAP 6/7] firmware: imx: add ELE MU driver support config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230412/202304120902.bP52A56z-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/80f6b85e97e7f7eb4b5d59c638adb2bdbe6d48d1 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Pankaj-Gupta/doc-device-tree-binding-addition-for-ele-MU/20230411-231913 git checkout 80f6b85e97e7f7eb4b5d59c638adb2bdbe6d48d1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/firmware/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304120902.bP52A56z-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:564, from include/asm-generic/bug.h:22, from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from include/asm-generic/preempt.h:5, from ./arch/m68k/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from arch/m68k/include/asm/irqflags.h:6, from include/linux/irqflags.h:16, from arch/m68k/include/asm/atomic.h:6, from include/linux/atomic.h:7, from include/linux/rcupdate.h:25, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/firmware/imx/ele_mu.c:6: drivers/firmware/imx/ele_mu.c: In function 'ele_mu_fops_write': >> drivers/firmware/imx/ele_mu.h:17:47: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:17:17: note: in expansion of macro 'dev_dbg' 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:36:9: note: in expansion of macro 'miscdev_dbg' 36 | miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:303:9: note: in expansion of macro 'devctx_dbg' 303 | devctx_dbg(dev_ctx, "write from buf (%p)%ld, ppos=%lld\n", buf, size, | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.h:31:47: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:31:17: note: in expansion of macro 'dev_err' 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:40:9: note: in expansion of macro 'miscdev_err' 40 | miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:315:17: note: in expansion of macro 'devctx_err' 315 | devctx_err(dev_ctx, "User buffer too small(%ld < %x)\n", | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.h:31:47: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:31:17: note: in expansion of macro 'dev_err' 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:40:9: note: in expansion of macro 'miscdev_err' 40 | miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:322:17: note: in expansion of macro 'devctx_err' 322 | devctx_err(dev_ctx, "User buffer too big(%ld > %lu)\n", size, | ^~~~~~~~~~ >> drivers/firmware/imx/ele_mu.h:31:47: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=] 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:31:17: note: in expansion of macro 'dev_err' 31 | dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:40:9: note: in expansion of macro 'miscdev_err' 40 | miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:322:17: note: in expansion of macro 'devctx_err' 322 | devctx_err(dev_ctx, "User buffer too big(%ld > %lu)\n", size, | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.c: In function 'ele_mu_fops_read': >> drivers/firmware/imx/ele_mu.h:17:47: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:17:17: note: in expansion of macro 'dev_dbg' 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:36:9: note: in expansion of macro 'miscdev_dbg' 36 | miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:410:9: note: in expansion of macro 'devctx_dbg' 410 | devctx_dbg(dev_ctx, "read to buf %p(%ld), ppos=%lld\n", buf, size, | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.h:17:47: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/firmware/imx/ele_mu.h:17:17: note: in expansion of macro 'dev_dbg' 17 | dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ | ^~~~~~~ drivers/firmware/imx/ele_mu.h:36:9: note: in expansion of macro 'miscdev_dbg' 36 | miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) | ^~~~~~~~~~~ drivers/firmware/imx/ele_mu.c:437:17: note: in expansion of macro 'devctx_dbg' 437 | devctx_dbg(dev_ctx, "User buffer too small (%ld < %d)\n", | ^~~~~~~~~~ drivers/firmware/imx/ele_mu.c:408:23: warning: variable 'header' set but not used [-Wunused-but-set-variable] 408 | struct mu_hdr header; | ^~~~~~ drivers/firmware/imx/ele_mu.c:404:29: warning: unused variable 'ele_mu_priv' [-Wunused-variable] 404 | struct ele_mu_priv *ele_mu_priv = dev_ctx->priv; | ^~~~~~~~~~~ vim +17 drivers/firmware/imx/ele_mu.h 12 13 /* macro to log operation of a misc device */ 14 #define miscdev_dbg(p_miscdev, fmt, va_args...) \ 15 ({ \ 16 struct miscdevice *_p_miscdev = p_miscdev; \ > 17 dev_dbg((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ 18 ##va_args); \ 19 }) 20 21 #define miscdev_info(p_miscdev, fmt, va_args...) \ 22 ({ \ 23 struct miscdevice *_p_miscdev = p_miscdev; \ 24 dev_info((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ 25 ##va_args); \ 26 }) 27 28 #define miscdev_err(p_miscdev, fmt, va_args...) \ 29 ({ \ 30 struct miscdevice *_p_miscdev = p_miscdev; \ > 31 dev_err((_p_miscdev)->parent, "%s: " fmt, (_p_miscdev)->name, \ 32 ##va_args); \ 33 }) 34 /* macro to log operation of a device context */ 35 #define devctx_dbg(p_devctx, fmt, va_args...) \ 36 miscdev_dbg(&((p_devctx)->miscdev), fmt, ##va_args) 37 #define devctx_info(p_devctx, fmt, va_args...) \ 38 miscdev_info(&((p_devctx)->miscdev), fmt, ##va_args) 39 #define devctx_err(p_devctx, fmt, va_args...) \ 40 miscdev_err((&(p_devctx)->miscdev), fmt, ##va_args) 41 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel