tree:
https://github.com/Freescale/linux-fslc pr/218
head: 873af59ba276f436bbba540788de331e222a31d7
commit: 89f28f28d76a0bc4a4d825818e2f50fbd4368235 [11674/16341] MLK-24382-1 irqchip:
imx-intmux: add system PM support
config: arm-vf610m4_defconfig (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/89f28f28d76a0bc4a4d825818e...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/218
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(a)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@lists.01.org