linux-next: build failure after merge of the regulator tree
Hi all,
After merging the regulator tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/regulator/rk808-regulator.c:312:18: warning: 'struct rk808_board' declared inside parameter list
struct rk808_board *pdata)
^drivers/regulator/rk808-regulator.c:312:18: warning: its scope is only this definition or declaration, which is probably not what you want drivers/regulator/rk808-regulator.c: In function 'rk808_regulator_dts':drivers/regulator/rk808-regulator.c:340:8: error: dereferencing pointer to incomplete type
pdata->rk808_init_data[i] = rk808_reg_matches[i].init_data;
^
drivers/regulator/rk808-regulator.c:341:8: error: dereferencing pointer to incomplete type
pdata->of_node[i] = rk808_reg_matches[i].of_node;
^
drivers/regulator/rk808-regulator.c: In function 'rk808_regulator_probe':
drivers/regulator/rk808-regulator.c:359:43: error: dereferencing pointer to incomplete type
pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
^
drivers/regulator/rk808-regulator.c:364:8: warning: passing argument 2 of 'rk808_regulator_dts' from incompatible pointer type
ret = rk808_regulator_dts(client, pdata);
^
drivers/regulator/rk808-regulator.c:311:12: note: expected 'struct rk808_board *' but argument is of type 'struct rk808_board *'
static int rk808_regulator_dts(struct i2c_client *client,
^
drivers/regulator/rk808-regulator.c:370:19: error: dereferencing pointer to incomplete type
reg_data = pdata->rk808_init_data[i];
^
drivers/regulator/rk808-regulator.c:379:26: error: dereferencing pointer to incomplete type
config.of_node = pdata->of_node[i];
^Caused by commit 2cd64ae3d57b ("regulator: RK808: Add regulator driver for RK808").
I have reverted that commit and all the following ones in the regulator tree that touch this file.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Mark Brown
maintainerQuoted 2 lines · Stephen Rothwell
drivers/regulator/rk808-regulator.c:312:18: warning: 'structrk808_board' declared inside parameter list
structrk808_board*pdata)
Chris, as previously requested please send me any changes needed to update for the changes in the MFD driver.
Quoted 6 lines · Mark Brown
Quoted 2 lines · Stephen Rothwell
drivers/regulator/rk808-regulator.c:312:18: warning: 'structrk808_board' declared inside parameter list
structrk808_board*pdata)Chris, as previously requested please send me any changes needed to update for the changes in the MFD driver.
Yes, I have modified the rk808.h, so rk808-regulator.c lacks some structure now. Please help me review the patch "[PATCH v10 3/3] regulator: RK808: Remove pdata from the regulator" It contains the corresponding changes.
Hi,
Quoted 7 lines · Mark Brown
Quoted 2 lines · Stephen Rothwell
drivers/regulator/rk808-regulator.c:312:18: warning: 'structrk808_board' declared inside parameter list
structrk808_board*pdata)Chris, as previously requested please send me any changes needed to update for the changes in the MFD driver.
See <https://patchwork.kernel.org/patch/4873501/>
-Doug
Mark Brown
maintainerQuoted 5 lines · Chris Zhong
Yes, I have modified the
rk808.h, sork808-regulator.clacks some structure now.
Please help me review the patch "[PATCH v10 3/3] regulator: RK808: Remove pdata from the regulator"
It contains the corresponding changes.
...which you sent to me overnight. It's applied now so -next should be fine tomorrow, thanks.