From: kernel test robot <lkp@intel.com>
To: Michal Wilczynski <m.wilczynski@samsung.com>,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
drew@pdp7.com, guoren@kernel.org, wefu@redhat.com,
paul.walmsley@sifive.com, palmer@dabbelt.com,
aou@eecs.berkeley.edu, alex@ghiti.fr, jszhang@kernel.org,
ulf.hansson@linaro.org, m.szyprowski@samsung.com
Cc: oe-kbuild-all@lists.linux.dev, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org,
Michal Wilczynski <m.wilczynski@samsung.com>
Subject: Re: [PATCH v1 2/5] firmware: thead: Add AON firmware protocol driver
Date: Thu, 6 Mar 2025 21:15:30 +0800 [thread overview]
Message-ID: <202503062029.bHmgxF2Q-lkp@intel.com> (raw)
In-Reply-To: <20250303145901.446791-3-m.wilczynski@samsung.com>
Hi Michal,
kernel test robot noticed the following build errors:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.14-rc5 next-20250306]
[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/Michal-Wilczynski/dt-bindings-firmware-thead-th1520-Add-support-for-firmware-node/20250303-230224
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250303145901.446791-3-m.wilczynski%40samsung.com
patch subject: [PATCH v1 2/5] firmware: thead: Add AON firmware protocol driver
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20250306/202503062029.bHmgxF2Q-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250306/202503062029.bHmgxF2Q-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503062029.bHmgxF2Q-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/firmware/thead,th1520-aon.c: In function 'th1520_aon_init':
>> drivers/firmware/thead,th1520-aon.c:206:20: error: implicit declaration of function 'kzalloc' [-Wimplicit-function-declaration]
206 | aon_chan = kzalloc(sizeof(*aon_chan), GFP_KERNEL);
| ^~~~~~~
>> drivers/firmware/thead,th1520-aon.c:206:18: error: assignment to 'struct th1520_aon_chan *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
206 | aon_chan = kzalloc(sizeof(*aon_chan), GFP_KERNEL);
| ^
>> drivers/firmware/thead,th1520-aon.c:219:17: error: implicit declaration of function 'kfree'; did you mean 'kvfree'? [-Wimplicit-function-declaration]
219 | kfree(aon_chan);
| ^~~~~
| kvfree
vim +206 drivers/firmware/thead,th1520-aon.c
185
186 /**
187 * th1520_aon_init() - Initialize TH1520 AON firmware protocol interface
188 * @dev: Device pointer for the AON subsystem
189 *
190 * This function initializes the TH1520 AON firmware protocol interface by:
191 * - Allocating and initializing the AON channel structure
192 * - Setting up the mailbox client
193 * - Requesting the AON mailbox channel
194 * - Initializing synchronization primitives
195 *
196 * Return:
197 * * Valid pointer to th1520_aon_chan structure on success
198 * * ERR_PTR(-ENOMEM) if memory allocation fails
199 * * ERR_PTR() with other negative error codes from mailbox operations
200 */
201 struct th1520_aon_chan *th1520_aon_init(struct device *dev)
202 {
203 struct th1520_aon_chan *aon_chan;
204 struct mbox_client *cl;
205
> 206 aon_chan = kzalloc(sizeof(*aon_chan), GFP_KERNEL);
207 if (!aon_chan)
208 return ERR_PTR(-ENOMEM);
209
210 cl = &aon_chan->cl;
211 cl->dev = dev;
212 cl->tx_block = true;
213 cl->tx_tout = MAX_TX_TIMEOUT;
214 cl->rx_callback = th1520_aon_rx_callback;
215
216 aon_chan->ch = mbox_request_channel_byname(cl, "aon");
217 if (IS_ERR(aon_chan->ch)) {
218 dev_err(dev, "Failed to request aon mbox chan\n");
> 219 kfree(aon_chan);
220 return ERR_CAST(aon_chan->ch);
221 }
222
223 mutex_init(&aon_chan->transaction_lock);
224 init_completion(&aon_chan->done);
225
226 return aon_chan;
227 }
228 EXPORT_SYMBOL_GPL(th1520_aon_init);
229
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Michal Wilczynski <m.wilczynski@samsung.com>,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
drew@pdp7.com, guoren@kernel.org, wefu@redhat.com,
paul.walmsley@sifive.com, palmer@dabbelt.com,
aou@eecs.berkeley.edu, alex@ghiti.fr, jszhang@kernel.org,
ulf.hansson@linaro.org, m.szyprowski@samsung.com
Cc: oe-kbuild-all@lists.linux.dev, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org,
Michal Wilczynski <m.wilczynski@samsung.com>
Subject: Re: [PATCH v1 2/5] firmware: thead: Add AON firmware protocol driver
Date: Thu, 6 Mar 2025 21:15:30 +0800 [thread overview]
Message-ID: <202503062029.bHmgxF2Q-lkp@intel.com> (raw)
In-Reply-To: <20250303145901.446791-3-m.wilczynski@samsung.com>
Hi Michal,
kernel test robot noticed the following build errors:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.14-rc5 next-20250306]
[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/Michal-Wilczynski/dt-bindings-firmware-thead-th1520-Add-support-for-firmware-node/20250303-230224
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250303145901.446791-3-m.wilczynski%40samsung.com
patch subject: [PATCH v1 2/5] firmware: thead: Add AON firmware protocol driver
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20250306/202503062029.bHmgxF2Q-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250306/202503062029.bHmgxF2Q-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503062029.bHmgxF2Q-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/firmware/thead,th1520-aon.c: In function 'th1520_aon_init':
>> drivers/firmware/thead,th1520-aon.c:206:20: error: implicit declaration of function 'kzalloc' [-Wimplicit-function-declaration]
206 | aon_chan = kzalloc(sizeof(*aon_chan), GFP_KERNEL);
| ^~~~~~~
>> drivers/firmware/thead,th1520-aon.c:206:18: error: assignment to 'struct th1520_aon_chan *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
206 | aon_chan = kzalloc(sizeof(*aon_chan), GFP_KERNEL);
| ^
>> drivers/firmware/thead,th1520-aon.c:219:17: error: implicit declaration of function 'kfree'; did you mean 'kvfree'? [-Wimplicit-function-declaration]
219 | kfree(aon_chan);
| ^~~~~
| kvfree
vim +206 drivers/firmware/thead,th1520-aon.c
185
186 /**
187 * th1520_aon_init() - Initialize TH1520 AON firmware protocol interface
188 * @dev: Device pointer for the AON subsystem
189 *
190 * This function initializes the TH1520 AON firmware protocol interface by:
191 * - Allocating and initializing the AON channel structure
192 * - Setting up the mailbox client
193 * - Requesting the AON mailbox channel
194 * - Initializing synchronization primitives
195 *
196 * Return:
197 * * Valid pointer to th1520_aon_chan structure on success
198 * * ERR_PTR(-ENOMEM) if memory allocation fails
199 * * ERR_PTR() with other negative error codes from mailbox operations
200 */
201 struct th1520_aon_chan *th1520_aon_init(struct device *dev)
202 {
203 struct th1520_aon_chan *aon_chan;
204 struct mbox_client *cl;
205
> 206 aon_chan = kzalloc(sizeof(*aon_chan), GFP_KERNEL);
207 if (!aon_chan)
208 return ERR_PTR(-ENOMEM);
209
210 cl = &aon_chan->cl;
211 cl->dev = dev;
212 cl->tx_block = true;
213 cl->tx_tout = MAX_TX_TIMEOUT;
214 cl->rx_callback = th1520_aon_rx_callback;
215
216 aon_chan->ch = mbox_request_channel_byname(cl, "aon");
217 if (IS_ERR(aon_chan->ch)) {
218 dev_err(dev, "Failed to request aon mbox chan\n");
> 219 kfree(aon_chan);
220 return ERR_CAST(aon_chan->ch);
221 }
222
223 mutex_init(&aon_chan->transaction_lock);
224 init_completion(&aon_chan->done);
225
226 return aon_chan;
227 }
228 EXPORT_SYMBOL_GPL(th1520_aon_init);
229
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-03-06 13:16 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250303145917eucas1p171f8fcccadddc035f5773f7026a281e3@eucas1p1.samsung.com>
2025-03-03 14:58 ` [PATCH v1 0/5] TH1520 SoC: Add AON firmware & power-domain support Michal Wilczynski
2025-03-03 14:58 ` Michal Wilczynski
2025-03-03 14:58 ` [PATCH v1 1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node Michal Wilczynski
2025-03-03 14:58 ` Michal Wilczynski
2025-03-03 17:42 ` Krzysztof Kozlowski
2025-03-03 17:42 ` Krzysztof Kozlowski
2025-03-03 17:46 ` Krzysztof Kozlowski
2025-03-03 17:46 ` Krzysztof Kozlowski
2025-03-04 7:43 ` Michal Wilczynski
2025-03-04 7:43 ` Michal Wilczynski
2025-03-04 7:45 ` Krzysztof Kozlowski
2025-03-04 7:45 ` Krzysztof Kozlowski
2025-03-04 7:52 ` Michal Wilczynski
2025-03-04 7:52 ` Michal Wilczynski
2025-03-04 14:24 ` Krzysztof Kozlowski
2025-03-04 14:24 ` Krzysztof Kozlowski
2025-03-03 14:58 ` [PATCH v1 2/5] firmware: thead: Add AON firmware protocol driver Michal Wilczynski
2025-03-03 14:58 ` Michal Wilczynski
2025-03-06 0:04 ` kernel test robot
2025-03-06 0:04 ` kernel test robot
2025-03-06 7:07 ` kernel test robot
2025-03-06 7:07 ` kernel test robot
2025-03-06 13:15 ` kernel test robot [this message]
2025-03-06 13:15 ` kernel test robot
2025-03-03 14:58 ` [PATCH v1 3/5] dt-bindings: power: Add TH1520 SoC power domains Michal Wilczynski
2025-03-03 14:58 ` Michal Wilczynski
2025-03-03 14:59 ` [PATCH v1 4/5] pmdomain: thead: Add power-domain driver for TH1520 Michal Wilczynski
2025-03-03 14:59 ` Michal Wilczynski
2025-03-03 14:59 ` [PATCH v1 5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs Michal Wilczynski
2025-03-03 14:59 ` Michal Wilczynski
2025-03-05 8:04 ` [PATCH v1 0/5] TH1520 SoC: Add AON firmware & power-domain support Michal Wilczynski
2025-03-05 8:04 ` Michal Wilczynski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202503062029.bHmgxF2Q-lkp@intel.com \
--to=lkp@intel.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=drew@pdp7.com \
--cc=guoren@kernel.org \
--cc=jszhang@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=m.szyprowski@samsung.com \
--cc=m.wilczynski@samsung.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=wefu@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.