* [freescale-fslc:5.4-2.3.x-imx 11674/19343] drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
@ 2021-06-11 9:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-11 9:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4576 bytes --]
Hi Joakim,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef8eb7d4787bee4be718a83b6c73fb8cc7e8f158
commit: 89f28f28d76a0bc4a4d825818e2f50fbd4368235 [11674/19343] MLK-24382-1 irqchip: imx-intmux: add system PM support
config: arm-randconfig-r011-20210611 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/Freescale/linux-fslc/commit/89f28f28d76a0bc4a4d825818e2f50fbd4368235
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 89f28f28d76a0bc4a4d825818e2f50fbd4368235
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/irqchip/irq-imx-intmux.c: In function 'imx_intmux_probe':
>> drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
169 | intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
| ^~
drivers/irqchip/irq-imx-intmux.c:172:19: error: 'struct intmux_data' has no member named 'saved_reg'
172 | if (!intmux_data->saved_reg)
| ^~
vim +169 drivers/irqchip/irq-imx-intmux.c
128
129 static int imx_intmux_probe(struct platform_device *pdev)
130 {
131 struct device_node *np = pdev->dev.of_node;
132 struct intmux_data *intmux_data;
133 struct resource *res;
134 int i;
135 int channum;
136 int ret;
137
138 ret = of_property_read_u32(np, "nxp,intmux_chans", &channum);
139 if (ret)
140 channum = 1;
141
142 intmux_data = devm_kzalloc(&pdev->dev, sizeof(*intmux_data) +
143 channum *
144 sizeof(intmux_data->irqchip_data[0]),
145 GFP_KERNEL);
146 if (!intmux_data)
147 return -ENOMEM;
148
149 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
150 intmux_data->regs = devm_ioremap_resource(&pdev->dev, res);
151 if (IS_ERR(intmux_data->regs)) {
152 dev_err(&pdev->dev, "failed to initialize reg\n");
153 return PTR_ERR(intmux_data->regs);
154 }
155
156 intmux_data->ipg_clk = devm_clk_get(&pdev->dev, "ipg");
157 if (IS_ERR(intmux_data->ipg_clk)) {
158 ret = PTR_ERR(intmux_data->ipg_clk);
159 dev_err(&pdev->dev, "failed to get ipg clk: %d\n", ret);
160 return ret;
161 }
162
163 intmux_data->channum = channum;
164 intmux_data->pdev = pdev;
165 spin_lock_init(&intmux_data->lock);
166
167 if (IS_ENABLED(CONFIG_PM)) {
168 /* save CHANIER register */
> 169 intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
170 sizeof(u32) * channum,
171 GFP_KERNEL);
172 if (!intmux_data->saved_reg)
173 return -ENOMEM;
174 }
175
176 ret = clk_prepare_enable(intmux_data->ipg_clk);
177 if (ret) {
178 dev_err(&pdev->dev, "failed to enable ipg clk: %d\n", ret);
179 return ret;
180 }
181
182 for (i = 0; i < channum; i++) {
183 intmux_data->irqchip_data[i].chanidx = i;
184 intmux_data->irqchip_data[i].irq = platform_get_irq(pdev, i);
185 if (intmux_data->irqchip_data[i].irq <= 0) {
186 dev_err(&pdev->dev, "failed to get irq\n");
187 return -ENODEV;
188 }
189
190 intmux_data->irqchip_data[i].domain = irq_domain_add_linear(np,
191 32,
192 &imx_intmux_domain_ops,
193 &intmux_data->irqchip_data[i]);
194 if (!intmux_data->irqchip_data[i].domain) {
195 dev_err(&intmux_data->pdev->dev,
196 "failed to create IRQ domain\n");
197 return -ENOMEM;
198 }
199
200 irq_set_chained_handler_and_data(intmux_data->irqchip_data[i].irq,
201 imx_intmux_irq_handler,
202 &intmux_data->irqchip_data[i]);
203 }
204
205 platform_set_drvdata(pdev, intmux_data);
206
207 return 0;
208 }
209
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32533 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-11 9:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 9:01 [freescale-fslc:5.4-2.3.x-imx 11674/19343] drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg' kernel test robot
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.