Message ID | cover.1703647471.git.hanshu-oc@zhaoxin.com |
---|---|
Headers | show |
Series | i2c: add zhaoxin i2c controller driver | expand |
On Wed, Dec 27, 2023 at 12:39:44PM +0800, Hans Hu wrote: > Some common initialization actions are put in the function > wmt_i2c_init(), which is convenient to share with zhaoxin. > > Signed-off-by: Hans Hu <hanshu-oc@zhaoxin.com> I get a build error: CC drivers/i2c/busses/i2c-wmt.o drivers/i2c/busses/i2c-wmt.c:289:5: error: no previous prototype for ‘wmt_i2c_init’ [-Werror=missing-prototypes] 289 | int wmt_i2c_init(struct platform_device *pdev, struct wmt_i2c_dev **pi2c_dev) | ^~~~~~~~~~~~
On 2023/12/28 03:00, Wolfram Sang wrote: > On Wed, Dec 27, 2023 at 12:39:44PM +0800, Hans Hu wrote: >> Some common initialization actions are put in the function >> wmt_i2c_init(), which is convenient to share with zhaoxin. >> >> Signed-off-by: Hans Hu <hanshu-oc@zhaoxin.com> > I get a build error: > > CC drivers/i2c/busses/i2c-wmt.o > drivers/i2c/busses/i2c-wmt.c:289:5: error: no previous prototype for ‘wmt_i2c_init’ [-Werror=missing-prototypes] > 289 | int wmt_i2c_init(struct platform_device *pdev, struct wmt_i2c_dev **pi2c_dev) > | ^~~~~~~~~~~~ Sorry, I only checked after the last V4 patch using sparse/cocci/smatch. Fixed V5 will be re-sent within an hour.