tree: https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git droid4-pending-v5.4 head: 3efaedc5ef6cde5bfde516b6db455b306b5ce5b7 commit: 2d0f14db2d1621061c1cbc73bf22009577902f4c [16/26] tty: n_gsm: Add support for serdev drivers config: x86_64-randconfig-d001-201943 (attached as .config) compiler: gcc-7 (Debian 7.4.0-14) 7.4.0 reproduce: git checkout 2d0f14db2d1621061c1cbc73bf22009577902f4c # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from <command-line>:0:0: include/linux/serdev-gsm.h:29:2: error: unknown type name 'atomic_t' atomic_t asleep; ^~~~~~~~ include/linux/serdev-gsm.h:37:40: error: unknown type name 'u8' int (*output)(struct gsm_serdev *gsd, u8 *data, int len); ^~ include/linux/serdev-gsm.h:39:14: error: unknown type name 'u8' const u8 *buf, int len); ^~ include/linux/serdev-gsm.h:52:7: error: unknown type name 'size_t' size_t len); ^~~~~~ include/linux/serdev-gsm.h:53:1: warning: no semicolon at end of struct or union }; ^ include/linux/serdev-gsm.h:60:51: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration static inline void *gsm_serdev_get_drvdata(struct device *dev) ^~~~~~ include/linux/serdev-gsm.h: In function 'gsm_serdev_get_drvdata': >> include/linux/serdev-gsm.h:62:33: error: implicit declaration of function 'to_serdev_device' [-Werror=implicit-function-declaration] struct serdev_device *serdev = to_serdev_device(dev); ^~~~~~~~~~~~~~~~ include/linux/serdev-gsm.h:62:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion] >> include/linux/serdev-gsm.h:63:27: error: implicit declaration of function 'serdev_device_get_drvdata'; did you mean 'gsm_serdev_get_drvdata'? [-Werror=implicit-function-declaration] struct gsm_serdev *gsd = serdev_device_get_drvdata(serdev); ^~~~~~~~~~~~~~~~~~~~~~~~~ gsm_serdev_get_drvdata include/linux/serdev-gsm.h:63:27: warning: initialization makes pointer from integer without a cast [-Wint-conversion] include/linux/serdev-gsm.h:68:9: error: 'NULL' undeclared (first use in this function) return NULL; ^~~~ include/linux/serdev-gsm.h:68:9: note: each undeclared identifier is reported only once for each function it appears in include/linux/serdev-gsm.h: At top level: include/linux/serdev-gsm.h:71:50: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration static inline void gsm_serdev_set_drvdata(struct device *dev, void *drvdata) ^~~~~~ include/linux/serdev-gsm.h: In function 'gsm_serdev_set_drvdata': include/linux/serdev-gsm.h:73:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct serdev_device *serdev = to_serdev_device(dev); ^~~~~~~~~~~~~~~~ include/linux/serdev-gsm.h:74:27: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct gsm_serdev *gsd = serdev_device_get_drvdata(serdev); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/serdev-gsm.h: In function 'gsm_serdev_set_config': include/linux/serdev-gsm.h:106:10: error: 'ENODEV' undeclared (first use in this function) return -ENODEV; ^~~~~~ include/linux/serdev-gsm.h: In function 'gsm_serdev_register_dlci': include/linux/serdev-gsm.h:121:10: error: 'ENODEV' undeclared (first use in this function) return -ENODEV; ^~~~~~ include/linux/serdev-gsm.h: At top level: include/linux/serdev-gsm.h:146:14: error: unknown type name 'u8' const u8 *buf, int len) ^~ include/linux/serdev-gsm.h: In function 'gsm_serdev_write': include/linux/serdev-gsm.h:151:10: error: 'ENODEV' undeclared (first use in this function) return -ENODEV; ^~~~~~ cc1: some warnings being treated as errors vim +/to_serdev_device +62 include/linux/serdev-gsm.h 42 43 /** 44 * struct gsm_serdev_dlci - serdev-gsm ts 27.010 channel data 45 * @line: ts 27.010 channel, control channel 0 is not available 46 * @receive_buf: function to handle data received for the channel 47 */ 48 struct gsm_serdev_dlci { 49 int line; 50 int (*receive_buf)(struct gsm_serdev_dlci *ops, 51 const unsigned char *buf, 52 size_t len); > 53 }; 54 55 #ifdef CONFIG_SERIAL_DEV_BUS 56 57 int gsm_serdev_register_device(struct gsm_serdev *gsd); 58 void gsm_serdev_unregister_device(struct gsm_serdev *gsd); 59 > 60 static inline void *gsm_serdev_get_drvdata(struct device *dev) 61 { > 62 struct serdev_device *serdev = to_serdev_device(dev); > 63 struct gsm_serdev *gsd = serdev_device_get_drvdata(serdev); 64 65 if (gsd) 66 return gsd->drvdata; 67 68 return NULL; 69 } 70 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip