From: kernel test robot <lkp@intel.com>
To: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Bjorn Andersson <andersson@kernel.org>,
Sebastian Reichel <sre@kernel.org>, Rob Herring <robh@kernel.org>,
Sudeep Holla <sudeep.holla@arm.com>,
Souvik Chakravarty <Souvik.Chakravarty@arm.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Andy Yan <andy.yan@rock-chips.com>,
Bartosz Golaszewski <brgl@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Florian Fainelli <florian.fainelli@broadcom.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>,
Andre Draszik <andre.draszik@linaro.org>,
Kathiravan Thirumoorthy
<kathiravan.thirumoorthy@oss.qualcomm.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org,
Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>,
Srinivas Kandagatla <srini@kernel.org>
Subject: Re: [PATCH v18 01/10] power: reset: reboot-mode: Remove devres based allocations
Date: Thu, 25 Dec 2025 18:16:34 +0800 [thread overview]
Message-ID: <202512251820.e0ZKwuCc-lkp@intel.com> (raw)
In-Reply-To: <20251223-arm-psci-system_reset2-vendor-reboots-v18-1-32fa9e76efc3@oss.qualcomm.com>
Hi Shivendra,
kernel test robot noticed the following build errors:
[auto build test ERROR on cc3aa43b44bdb43dfbac0fcb51c56594a11338a8]
url: https://github.com/intel-lab-lkp/linux/commits/Shivendra-Pratap/power-reset-reboot-mode-Remove-devres-based-allocations/20251224-011508
base: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
patch link: https://lore.kernel.org/r/20251223-arm-psci-system_reset2-vendor-reboots-v18-1-32fa9e76efc3%40oss.qualcomm.com
patch subject: [PATCH v18 01/10] power: reset: reboot-mode: Remove devres based allocations
config: powerpc64-randconfig-r072-20251225 (https://download.01.org/0day-ci/archive/20251225/202512251820.e0ZKwuCc-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 4ef602d446057dabf5f61fb221669ecbeda49279)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251225/202512251820.e0ZKwuCc-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/202512251820.e0ZKwuCc-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/power/reset/reboot-mode.c:94:10: error: call to undeclared function 'kzalloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
94 | info = kzalloc(sizeof(*info), GFP_KERNEL);
| ^
>> drivers/power/reset/reboot-mode.c:94:8: error: incompatible integer to pointer conversion assigning to 'struct mode_info *' from 'int' [-Wint-conversion]
94 | info = kzalloc(sizeof(*info), GFP_KERNEL);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/power/reset/reboot-mode.c:120:2: error: call to undeclared function 'kfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
120 | kfree(info);
| ^
drivers/power/reset/reboot-mode.c:145:3: error: call to undeclared function 'kfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
145 | kfree(info);
| ^
4 errors generated.
vim +/kzalloc +94 drivers/power/reset/reboot-mode.c
66
67 /**
68 * reboot_mode_register - register a reboot mode driver
69 * @reboot: reboot mode driver
70 *
71 * Returns: 0 on success or a negative error code on failure.
72 */
73 int reboot_mode_register(struct reboot_mode_driver *reboot)
74 {
75 struct mode_info *info;
76 struct mode_info *next;
77 struct property *prop;
78 struct device_node *np = reboot->dev->of_node;
79 size_t len = strlen(PREFIX);
80 u32 magic;
81 int ret;
82
83 INIT_LIST_HEAD(&reboot->head);
84
85 for_each_property_of_node(np, prop) {
86 if (strncmp(prop->name, PREFIX, len))
87 continue;
88
89 if (of_property_read_u32(np, prop->name, &magic)) {
90 pr_err("reboot mode %s without magic number\n", prop->name);
91 continue;
92 }
93
> 94 info = kzalloc(sizeof(*info), GFP_KERNEL);
95 if (!info) {
96 ret = -ENOMEM;
97 goto error;
98 }
99
100 info->mode = kstrdup_const(prop->name + len, GFP_KERNEL);
101 if (!info->mode) {
102 ret = -ENOMEM;
103 goto error;
104 } else if (info->mode[0] == '\0') {
105 kfree_const(info->mode);
106 ret = -EINVAL;
107 pr_err("invalid mode name(%s): too short!\n", prop->name);
108 goto error;
109 }
110
111 list_add_tail(&info->list, &reboot->head);
112 }
113
114 reboot->reboot_notifier.notifier_call = reboot_mode_notify;
115 register_reboot_notifier(&reboot->reboot_notifier);
116
117 return 0;
118
119 error:
> 120 kfree(info);
121 list_for_each_entry_safe(info, next, &reboot->head, list) {
122 list_del(&info->list);
123 kfree_const(info->mode);
124 kfree(info);
125 }
126
127 return ret;
128 }
129 EXPORT_SYMBOL_GPL(reboot_mode_register);
130
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-12-25 10:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 17:07 [PATCH v18 00/10] Implement PSCI reboot mode driver for PSCI resets Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 01/10] power: reset: reboot-mode: Remove devres based allocations Shivendra Pratap
2025-12-25 10:16 ` kernel test robot [this message]
2025-12-23 17:07 ` [PATCH v18 02/10] power: reset: reboot-mode: Add support for 64 bit magic Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 03/10] power: reset: reboot-mode: Add support for predefined reboot modes Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 04/10] firmware: psci: Introduce command-based reset in psci_sys_reset Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 05/10] dt-bindings: arm: Document reboot mode magic Shivendra Pratap
2025-12-26 11:07 ` Krzysztof Kozlowski
2025-12-26 17:42 ` Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 06/10] power: reset: Add psci-reboot-mode driver Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 07/10] arm64: dts: qcom: qcm6490: Add psci reboot-modes Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 08/10] arm64: dts: qcom: lemans: " Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 09/10] arm64: dts: qcom: monaco: " Shivendra Pratap
2025-12-23 17:07 ` [PATCH v18 10/10] arm64: dts: qcom: talos: " Shivendra Pratap
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=202512251820.e0ZKwuCc-lkp@intel.com \
--to=lkp@intel.com \
--cc=Souvik.Chakravarty@arm.com \
--cc=andersson@kernel.org \
--cc=andre.draszik@linaro.org \
--cc=andy.yan@rock-chips.com \
--cc=arnd@arndb.de \
--cc=brgl@kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=kathiravan.thirumoorthy@oss.qualcomm.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=lumag@kernel.org \
--cc=mukesh.ojha@oss.qualcomm.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
--cc=shivendra.pratap@oss.qualcomm.com \
--cc=sre@kernel.org \
--cc=srini@kernel.org \
--cc=sudeep.holla@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®