[omap:droid4-pending-mdm-v5.3 3/15] include/linux/mfd/motorola-mdm.h:60:53: warning: 'struct device' declared inside parameter list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tmlind/linux-omap.git droid4-pending-mdm-v5.3
head:   ac8c78ae24b5535576cb398cb6e6b895ce0f918d
commit: f894040563eaa938691c50884e599515a1b53c31 [3/15] mfd: motmdm: Add Motorola TS 27.010 serdev driver for devices like droid4
config: i386-randconfig-a003-201937 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
        git checkout f894040563eaa938691c50884e599515a1b53c31
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from <command-line>:0:0:
   include/linux/mfd/motorola-mdm.h:37:25: error: field 'gsm_dlci' has incomplete type
     struct gsm_serdev_dlci gsm_dlci;
                            ^
   include/linux/mfd/motorola-mdm.h:38:19: error: field 'node' has incomplete type
     struct list_head node;
                      ^
   include/linux/mfd/motorola-mdm.h:39:2: error: unknown type name 'wait_queue_head_t'
     wait_queue_head_t read_queue;
     ^
   include/linux/mfd/motorola-mdm.h:40:15: error: field 'read_fifo' has incomplete type
     struct kfifo read_fifo;
                  ^
   include/linux/mfd/motorola-mdm.h:42:2: error: unknown type name 'u16'
     u16 id;
     ^
   include/linux/mfd/motorola-mdm.h:45:8: error: unknown type name 'size_t'
           size_t cmdlen,
           ^
   include/linux/mfd/motorola-mdm.h:46:28: error: unknown type name 'size_t'
           unsigned char *rsp, size_t rsplen);
                               ^
   include/linux/mfd/motorola-mdm.h:48:36: error: unknown type name 'size_t'
             const unsigned char *buf, size_t len);
                                       ^
   include/linux/mfd/motorola-mdm.h:51:8: error: unknown type name 'size_t'
           size_t len);
           ^
   include/linux/mfd/motorola-mdm.h:53:45: error: unknown type name 'size_t'
           int cmdid, const unsigned char *buf, size_t count);
                                                ^
   include/linux/mfd/motorola-mdm.h:55:19: error: field 'list' has incomplete type
     struct list_head list;
                      ^
>> include/linux/mfd/motorola-mdm.h:60:53: warning: 'struct device' declared inside parameter list
    int motmdm_register_dlci(struct device *dev, struct motmdm_dlci *mot_dlci);
                                                        ^
>> include/linux/mfd/motorola-mdm.h:60:53: warning: its scope is only this definition or declaration, which is probably not what you want
   include/linux/mfd/motorola-mdm.h:61:56: warning: 'struct device' declared inside parameter list
    void motmdm_unregister_dlci(struct device *dev, struct motmdm_dlci *mot_dlci);
                                                           ^
   include/linux/mfd/motorola-mdm.h:66:4: error: unknown type name 'size_t'
       size_t cmdlen, unsigned char *rsp, size_t rsplen)
       ^
   include/linux/mfd/motorola-mdm.h:66:39: error: unknown type name 'size_t'
       size_t cmdlen, unsigned char *rsp, size_t rsplen)
                                          ^
   include/linux/mfd/motorola-mdm.h:78:30: error: unknown type name 'size_t'
       const unsigned char *buf, size_t count)
                                 ^

vim +60 include/linux/mfd/motorola-mdm.h

    35	
    36	struct motmdm_dlci {
    37		struct gsm_serdev_dlci gsm_dlci;
    38		struct list_head node;
    39		wait_queue_head_t read_queue;
    40		struct kfifo read_fifo;
    41		int line;
    42		u16 id;
    43		int (*send_command)(struct device *dev, struct motmdm_dlci *mot_dlci,
    44				    unsigned long timeout_ms, const unsigned char *cmd,
    45				    size_t cmdlen,
    46				    unsigned char *rsp, size_t rsplen);
    47		int (*handle_command)(struct motmdm_dlci *mot_dlci, int id,
    48				      const unsigned char *buf, size_t len);
    49		int (*receive_data)(struct motmdm_dlci *mot_dlci,
    50				    const unsigned char *buf,
  > 51				    size_t len);
    52		int (*write)(struct device *dev, struct motmdm_dlci *mot_dlci,
  > 53			     int cmdid, const unsigned char *buf, size_t count);
    54		int (*notify)(struct motmdm_dlci *mot_dlci, enum motmdm_state);
    55		struct list_head list;
    56		void *privdata;		/* Do not use, internal data */
    57		void *drvdata;		/* Available for consumer drivers */
    58	};
    59	
  > 60	int motmdm_register_dlci(struct device *dev, struct motmdm_dlci *mot_dlci);
    61	void motmdm_unregister_dlci(struct device *dev, struct motmdm_dlci *mot_dlci);
    62	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux