Message ID | 20210608170449.28031-1-m.chetan.kumar@intel.com (mailing list archive) |
---|---|
Headers | show |
Series | net: iosm: PCIe Driver for Intel M.2 Modem | expand |
Please fix these build failures, thank you: drivers/net/wwan/iosm/iosm_ipc_wwan.c:231:21: error: variable ‘iosm_wwan_ops’ has initializer but incomplete type 231 | static const struct wwan_ops iosm_wwan_ops = { | ^~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:232:3: error: ‘const struct wwan_ops’ has no member named ‘priv_size’ 232 | .priv_size = sizeof(struct iosm_netdev_priv), | ^~~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:232:15: warning: excess elements in struct initializer 232 | .priv_size = sizeof(struct iosm_netdev_priv), | ^~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:232:15: note: (near initialization for ‘iosm_wwan_ops’) drivers/net/wwan/iosm/iosm_ipc_wwan.c:233:3: error: ‘const struct wwan_ops’ has no member named ‘setup’ 233 | .setup = ipc_wwan_setup, | ^~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:233:11: warning: excess elements in struct initializer 233 | .setup = ipc_wwan_setup, | ^~~~~~~~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:233:11: note: (near initialization for ‘iosm_wwan_ops’) drivers/net/wwan/iosm/iosm_ipc_wwan.c:234:3: error: ‘const struct wwan_ops’ has no member named ‘newlink’ 234 | .newlink = ipc_wwan_newlink, | ^~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:234:13: warning: excess elements in struct initializer 234 | .newlink = ipc_wwan_newlink, | ^~~~~~~~~~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:234:13: note: (near initialization for ‘iosm_wwan_ops’) drivers/net/wwan/iosm/iosm_ipc_wwan.c:235:3: error: ‘const struct wwan_ops’ has no member named ‘dellink’ 235 | .dellink = ipc_wwan_dellink, | ^~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:235:13: warning: excess elements in struct initializer 235 | .dellink = ipc_wwan_dellink, | ^~~~~~~~~~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c:235:13: note: (near initialization for ‘iosm_wwan_ops’) drivers/net/wwan/iosm/iosm_ipc_wwan.c: In function ‘ipc_wwan_init’: drivers/net/wwan/iosm/iosm_ipc_wwan.c:319:6: error: implicit declaration of function ‘wwan_register_ops’ [-Werror=implicit-function-declaration] 319 | if (wwan_register_ops(ipc_wwan->dev, &iosm_wwan_ops, ipc_wwan)) { | ^~~~~~~~~~~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c: In function ‘ipc_wwan_deinit’: drivers/net/wwan/iosm/iosm_ipc_wwan.c:333:2: error: implicit declaration of function ‘wwan_unregister_ops’ [-Werror=implicit-function-declaration] 333 | wwan_unregister_ops(ipc_wwan->dev); | ^~~~~~~~~~~~~~~~~~~ drivers/net/wwan/iosm/iosm_ipc_wwan.c: At top level: drivers/net/wwan/iosm/iosm_ipc_wwan.c:231:30: error: storage size of ‘iosm_wwan_ops’ isn’t known 231 | static const struct wwan_ops iosm_wwan_ops = { | ^~~~~~~~~~~~~ cc1: some warnings being treated as errors make[4]: *** [scripts/Makefile.build:272: drivers/net/wwan/iosm/iosm_ipc_wwan.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [scripts/Makefile.build:515: drivers/net/wwan/iosm] Error 2 make[2]: *** [scripts/Makefile.build:515: drivers/net/wwan] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/Makefile.build:515: drivers/net] Error 2 make[1]: *** Waiting for unfinished jobs....
On Tue, 2021-06-08 at 16:00 -0700, David Miller wrote: > > drivers/net/wwan/iosm/iosm_ipc_wwan.c: At top level: > drivers/net/wwan/iosm/iosm_ipc_wwan.c:231:30: error: storage size of > ‘iosm_wwan_ops’ isn’t known > 231 | static const struct wwan_ops iosm_wwan_ops = { > | ^~~~~~~~~~~~~ > cc1: some warnings being treated as errors Yeah, that was expected - needs Loic's WWAN series applied first. :) johannes