[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507171125.Cy8G5dte-lkp@intel.com>
Date: Thu, 17 Jul 2025 12:03:01 +0800
From: kernel test robot <lkp@...el.com>
To: Yassine Ouaissa via B4 Relay <devnull+yassine.ouaissa.allegrodvt.com@...nel.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Michael Tretter <m.tretter@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Michal Simek <monstr@...str.eu>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Yassine OUAISSA <yassine.ouaissa@...egrodvt.com>,
Nicolas Dufresne <nicolas@...fresne.ca>
Cc: oe-kbuild-all@...ts.linux.dev, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v4 4/4] media: allegro-dvt: Add Gen 3 IP stateful decoder
driver
Hi Yassine,
kernel test robot noticed the following build errors:
[auto build test ERROR on 155a3c003e555a7300d156a5252c004c392ec6b0]
url: https://github.com/intel-lab-lkp/linux/commits/Yassine-Ouaissa-via-B4-Relay/media-allegro-dvt-Move-the-current-driver-to-a-subdirectory/20250716-225824
base: 155a3c003e555a7300d156a5252c004c392ec6b0
patch link: https://lore.kernel.org/r/20250716-allegro_dvt_al300_dec_driver-v4-4-f87c01c9f7b5%40allegrodvt.com
patch subject: [PATCH v4 4/4] media: allegro-dvt: Add Gen 3 IP stateful decoder driver
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20250717/202507171125.Cy8G5dte-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250717/202507171125.Cy8G5dte-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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507171125.Cy8G5dte-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/media/platform/allegro-dvt/al300/al_codec_util.c: In function 'al_codec_cmd_cleanup':
>> drivers/media/platform/allegro-dvt/al300/al_codec_util.c:149:9: error: implicit declaration of function 'kfree' [-Wimplicit-function-declaration]
149 | kfree(cmd->reply);
| ^~~~~
drivers/media/platform/allegro-dvt/al300/al_codec_util.c: In function 'al_codec_cmd_create':
>> drivers/media/platform/allegro-dvt/al300/al_codec_util.c:165:15: error: implicit declaration of function 'kmalloc'; did you mean 'mm_alloc'? [-Wimplicit-function-declaration]
165 | cmd = kmalloc(sizeof(*cmd), GFP_KERNEL);
| ^~~~~~~
| mm_alloc
>> drivers/media/platform/allegro-dvt/al300/al_codec_util.c:165:13: error: assignment to 'struct al_codec_cmd *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
165 | cmd = kmalloc(sizeof(*cmd), GFP_KERNEL);
| ^
>> drivers/media/platform/allegro-dvt/al300/al_codec_util.c:169:20: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
169 | cmd->reply = kmalloc(reply_size, GFP_KERNEL);
| ^
vim +/kfree +149 drivers/media/platform/allegro-dvt/al300/al_codec_util.c
144
145 static void al_codec_cmd_cleanup(struct kref *ref)
146 {
147 struct al_codec_cmd *cmd = container_of(ref, typeof(*cmd), refcount);
148
> 149 kfree(cmd->reply);
150 kfree(cmd);
151 }
152
153 void al_codec_cmd_put(struct al_codec_cmd *cmd)
154 {
155 if (WARN_ON(!cmd))
156 return;
157
158 kref_put(&cmd->refcount, al_codec_cmd_cleanup);
159 }
160
161 struct al_codec_cmd *al_codec_cmd_create(int reply_size)
162 {
163 struct al_codec_cmd *cmd;
164
> 165 cmd = kmalloc(sizeof(*cmd), GFP_KERNEL);
166 if (!cmd)
167 return NULL;
168
> 169 cmd->reply = kmalloc(reply_size, GFP_KERNEL);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists