ubuntu/ms/memstick.c:16:28: error: linux/memstick.h: No such file or directory
ubuntu/ms/memstick.c:27: warning: struct memstick_device_id declared inside parameter list
ubuntu/ms/memstick.c:27: warning: its scope is only this definition or declaration, which is probably not what you want
ubuntu/ms/memstick.c:27: warning: struct memstick_dev declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_dev_match:
ubuntu/ms/memstick.c:29: error: MEMSTICK_ANY_ID undeclared (first use in this function)
ubuntu/ms/memstick.c:29: error: (Each undeclared identifier is reported only once
ubuntu/ms/memstick.c:29: error: for each function it appears in.)
ubuntu/ms/memstick.c:31: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:31: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:31: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:32: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:32: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:32: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:33: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:33: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:33: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:39: warning: struct memstick_device_id declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_null_id:
ubuntu/ms/memstick.c:41: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:41: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:41: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_bus_match:
ubuntu/ms/memstick.c:46: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:46: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:46: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:46: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:48: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:48: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:48: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:48: error: invalid use of undefined type struct memstick_driver
ubuntu/ms/memstick.c:51: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:54: warning: passing argument 1 of memstick_null_id from incompatible pointer type
ubuntu/ms/memstick.c:55: warning: passing argument 1 of memstick_dev_match from incompatible pointer type
ubuntu/ms/memstick.c:55: warning: passing argument 2 of memstick_dev_match from incompatible pointer type
ubuntu/ms/memstick.c:57: error: increment of pointer to unknown structure
ubuntu/ms/memstick.c:57: error: arithmetic on pointer to an incomplete type
ubuntu/ms/memstick.c: In function memstick_uevent:
ubuntu/ms/memstick.c:66: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:66: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:66: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:66: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:72: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:75: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:78: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_device_probe:
ubuntu/ms/memstick.c:86: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:86: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:86: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:86: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:88: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:88: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:88: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:88: error: invalid use of undefined type struct memstick_driver
ubuntu/ms/memstick.c:94: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:95: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_device_remove:
ubuntu/ms/memstick.c:105: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:105: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:105: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:105: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:107: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:107: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:107: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:107: error: invalid use of undefined type struct memstick_driver
ubuntu/ms/memstick.c:111: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:112: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:113: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_device_suspend:
ubuntu/ms/memstick.c:124: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:124: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:124: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:124: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:126: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:126: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:126: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:126: error: invalid use of undefined type struct memstick_driver
ubuntu/ms/memstick.c:130: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:131: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_device_resume:
ubuntu/ms/memstick.c:137: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:137: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:137: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:137: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:139: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:139: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:139: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:139: error: invalid use of undefined type struct memstick_driver
ubuntu/ms/memstick.c:143: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:144: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function type_show:
ubuntu/ms/memstick.c:164: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:164: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:164: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:164: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:164: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function category_show:
ubuntu/ms/memstick.c:165: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:165: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:165: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:165: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:165: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function class_show:
ubuntu/ms/memstick.c:166: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:166: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:166: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:166: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c:166: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_free:
ubuntu/ms/memstick.c:190: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:190: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:190: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:190: error: invalid use of undefined type struct memstick_host
ubuntu/ms/memstick.c: In function memstick_free_card:
ubuntu/ms/memstick.c:202: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:202: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:202: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:202: error: invalid use of undefined type struct memstick_dev
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:207: error: expected =, ,, ;, asm or __attribute__ before memstick_dummy_check
ubuntu/ms/memstick.c:213: warning: struct memstick_device_id declared inside parameter list
ubuntu/ms/memstick.c:213: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_alloc_card:
ubuntu/ms/memstick.c:215: error: invalid application of sizeof to incomplete type struct memstick_dev
ubuntu/ms/memstick.c:219: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:219: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:220: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:220: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:221: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:221: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:222: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:223: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:223: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:224: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:225: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:226: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:226: error: memstick_dummy_check undeclared (first use in this function)
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:231: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_detect_change:
ubuntu/ms/memstick.c:233: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:237: warning: struct memstick_request declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_wait_done:
ubuntu/ms/memstick.c:239: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:243: warning: struct memstick_request declared inside parameter list
ubuntu/ms/memstick.c:243: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_wait_for_req:
ubuntu/ms/memstick.c:247: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:248: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:250: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:256: error: expected =, ,, ;, asm or __attribute__ before memstick_get_int
ubuntu/ms/memstick.c:273: error: memstick_get_int undeclared here (not in a function)
ubuntu/ms/memstick.c:273: warning: type defaults to int in declaration of memstick_get_int
ubuntu/ms/memstick.c:275: error: expected =, ,, ;, asm or __attribute__ before memstick_set_rw_reg_adrs
ubuntu/ms/memstick.c:297: error: memstick_set_rw_reg_adrs undeclared here (not in a function)
ubuntu/ms/memstick.c:297: warning: type defaults to int in declaration of memstick_set_rw_reg_adrs
ubuntu/ms/memstick.c:299: error: expected =, ,, ;, asm or __attribute__ before memstick_read_reg
ubuntu/ms/memstick.c:329: error: memstick_read_reg undeclared here (not in a function)
ubuntu/ms/memstick.c:329: warning: type defaults to int in declaration of memstick_read_reg
ubuntu/ms/memstick.c:331: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_power_off:
ubuntu/ms/memstick.c:333: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:333: error: MEMSTICK_POWER_OFF undeclared (first use in this function)
ubuntu/ms/memstick.c:334: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:334: error: MEMSTICK_SERIAL undeclared (first use in this function)
ubuntu/ms/memstick.c:335: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:335: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:338: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_power_on:
ubuntu/ms/memstick.c:340: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:340: error: MEMSTICK_POWER_ON undeclared (first use in this function)
ubuntu/ms/memstick.c:341: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:341: error: MEMSTICK_SERIAL undeclared (first use in this function)
ubuntu/ms/memstick.c:342: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:342: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:346: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_remove_card:
ubuntu/ms/memstick.c:348: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:349: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:350: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_check:
ubuntu/ms/memstick.c:356: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:356: warning: type defaults to int in declaration of __mptr
ubuntu/ms/memstick.c:356: warning: initialization from incompatible pointer type
ubuntu/ms/memstick.c:356: error: invalid use of undefined type struct memstick_host
ubuntu/ms/memstick.c:358: error: memstick_error_t undeclared (first use in this function)
ubuntu/ms/memstick.c:358: error: expected ; before err
ubuntu/ms/memstick.c:359: error: storage size of ms_reg isnt known
ubuntu/ms/memstick.c:359: warning: ISO C90 forbids mixed declarations and code
ubuntu/ms/memstick.c:360: error: storage size of media_id isnt known
ubuntu/ms/memstick.c:362: error: MEMSTICK_POWER_ON undeclared (first use in this function)
ubuntu/ms/memstick.c:362: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:363: warning: passing argument 1 of memstick_power_on from incompatible pointer type
ubuntu/ms/memstick.c:365: error: err undeclared (first use in this function)
ubuntu/ms/memstick.c:365: error: called object memstick_read_reg is not a function
ubuntu/ms/memstick.c:372: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:372: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:373: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:373: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:374: warning: passing argument 1 of memstick_remove_card from incompatible pointer type
ubuntu/ms/memstick.c:377: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:378: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:378: warning: passing argument 1 of memstick_alloc_card from incompatible pointer type
ubuntu/ms/memstick.c:379: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:380: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:381: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:382: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:383: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:384: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:385: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:391: warning: passing argument 1 of memstick_remove_card from incompatible pointer type
ubuntu/ms/memstick.c:393: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:394: warning: passing argument 1 of memstick_power_off from incompatible pointer type
ubuntu/ms/memstick.c:360: warning: unused variable media_id
ubuntu/ms/memstick.c:359: warning: unused variable ms_reg
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:398: warning: struct memstick_request declared inside parameter list
ubuntu/ms/memstick.c:398: warning: struct memstick_host declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_request_done:
ubuntu/ms/memstick.c:400: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:400: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:401: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:402: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:402: error: MEMSTICK_ERR_NONE undeclared (first use in this function)
ubuntu/ms/memstick.c:403: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:404: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:405: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_alloc_host:
ubuntu/ms/memstick.c:415: error: invalid application of sizeof to incomplete type struct memstick_host
ubuntu/ms/memstick.c:417: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:418: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:419: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:420: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:421: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:421: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:421: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:421: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_add_host:
ubuntu/ms/memstick.c:435: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:440: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:441: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:443: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:447: warning: passing argument 1 of memstick_power_off from incompatible pointer type
ubuntu/ms/memstick.c:448: warning: passing argument 1 of memstick_detect_change from incompatible pointer type
ubuntu/ms/memstick.c: In function memstick_remove_host:
ubuntu/ms/memstick.c:455: warning: passing argument 1 of memstick_remove_card from incompatible pointer type
ubuntu/ms/memstick.c:456: warning: passing argument 1 of memstick_power_off from incompatible pointer type
ubuntu/ms/memstick.c:458: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:460: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: In function memstick_free_host:
ubuntu/ms/memstick.c:468: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:472: warning: struct memstick_driver declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_register_driver:
ubuntu/ms/memstick.c:474: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:475: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:476: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:477: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:478: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c:480: error: dereferencing pointer to incomplete type
ubuntu/ms/memstick.c: At top level:
ubuntu/ms/memstick.c:484: warning: struct memstick_driver declared inside parameter list
ubuntu/ms/memstick.c: In function memstick_unregister_driver:
ubuntu/ms/memstick.c:486: error: dereferencing pointer to incomplete type
make[2]: *** [ubuntu/ms/memstick.o] Error 1
make[1]: *** [ubuntu/ms] Error 2
make: *** [ubuntu] Error 2