[vfs:work.pages 59/67] include/linux/gfp.h:486:18: error: expected declaration specifiers or '...' before '(' token

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.pages
head:   adcc9126391f7e43d3fdc18c820f13c52125cf1f
commit: 8513f9844db84d9bce51191a26a81efc0a5c7cba [59/67] add pointer-returning variants of __get_free_pages/__get_free_page
config: x86_64-allmodconfig (attached as .config)
reproduce:
        git checkout 8513f9844db84d9bce51191a26a81efc0a5c7cba
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/xen/xen-scsiback.c:236:9: sparse: got {
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:236:9: sparse: got &
   drivers/xen/xen-scsiback.c:236:9: sparse: Trying to use reserved word 'void' as identifier
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got 1
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got }
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got }
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got }
   drivers/xen/xen-scsiback.c:237:23: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:237:23: sparse: got (
   drivers/xen/xen-scsiback.c:237:9: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:239:17: sparse: Trying to use reserved word 'return' as identifier
   drivers/xen/xen-scsiback.c:239:24: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:239:24: sparse: got gnttab_alloc_pages
   drivers/xen/xen-scsiback.c:240:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:240:9: sparse: got }
   drivers/xen/xen-scsiback.c:241:19: sparse: Expected ) in nested declarator
   drivers/xen/xen-scsiback.c:241:19: sparse: got page
   drivers/xen/xen-scsiback.c:241:19: sparse: Trying to use reserved word 'struct' as identifier
   drivers/xen/xen-scsiback.c:241:19: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:241:19: sparse: got }
   drivers/xen/xen-scsiback.c:242:18: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:242:18: sparse: got &
   drivers/xen/xen-scsiback.c:243:23: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:243:23: sparse: got --
   drivers/xen/xen-scsiback.c:244:32: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:244:32: sparse: got &
   drivers/xen/xen-scsiback.c:245:9: sparse: Trying to use reserved word 'return' as identifier
   drivers/xen/xen-scsiback.c:245:16: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:245:16: sparse: got 0
   drivers/xen/xen-scsiback.c:246:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:246:1: sparse: got }
   drivers/xen/xen-scsiback.c:252:9: sparse: Trying to use reserved word 'return' as identifier
   drivers/xen/xen-scsiback.c:252:31: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:252:31: sparse: got (
   drivers/xen/xen-scsiback.c:253:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:253:1: sparse: got }
   drivers/xen/xen-scsiback.c:258:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:258:1: sparse: got }
   drivers/xen/xen-scsiback.c:265:9: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:265:9: sparse: got "\001"
   drivers/xen/xen-scsiback.c:269:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:269:1: sparse: got }
   drivers/xen/xen-scsiback.c:279:18: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:279:18: sparse: got ->
   drivers/xen/xen-scsiback.c:280:12: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:280:12: sparse: got ->
   drivers/xen/xen-scsiback.c:281:12: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:281:12: sparse: got ->
   drivers/xen/xen-scsiback.c:283:13: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:283:13: sparse: got !
   drivers/xen/xen-scsiback.c:283:9: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:286:16: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:286:16: sparse: got =
   drivers/xen/xen-scsiback.c:286:9: sparse: Trying to use reserved word 'for' as identifier
   drivers/xen/xen-scsiback.c:286:23: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:286:23: sparse: got <
   drivers/xen/xen-scsiback.c:286:41: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:286:41: sparse: got ++
   drivers/xen/xen-scsiback.c:288:28: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:288:28: sparse: got ==
   drivers/xen/xen-scsiback.c:288:17: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:290:37: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:290:37: sparse: got &
   drivers/xen/xen-scsiback.c:292:20: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:292:20: sparse: got ->
   drivers/xen/xen-scsiback.c:294:31: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:294:31: sparse: got [
   drivers/xen/xen-scsiback.c:295:25: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:295:25: sparse: got ++
   drivers/xen/xen-scsiback.c:296:30: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:296:30: sparse: got <
   drivers/xen/xen-scsiback.c:296:17: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:299:17: sparse: Trying to use reserved word 'do' as identifier
   drivers/xen/xen-scsiback.c:299:17: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:299:17: sparse: got {
   drivers/xen/xen-scsiback.c:299:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:299:17: sparse: got }
   drivers/xen/xen-scsiback.c:299:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:299:17: sparse: got }
   drivers/xen/xen-scsiback.c:301:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:301:9: sparse: got }
   drivers/xen/xen-scsiback.c:305:17: sparse: Trying to use reserved word 'do' as identifier
   drivers/xen/xen-scsiback.c:305:17: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:305:17: sparse: got {
   drivers/xen/xen-scsiback.c:305:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:305:17: sparse: got }
   drivers/xen/xen-scsiback.c:305:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:305:17: sparse: got }
   drivers/xen/xen-scsiback.c:306:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:306:9: sparse: got }
   drivers/xen/xen-scsiback.c:309:12: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:309:12: sparse: too many errors
   In file included from include/linux/kmod.h:22:0,
                    from include/linux/module.h:13,
                    from drivers/xen/xen-scsiback.c:38:
>> include/linux/gfp.h:486:18: error: expected declaration specifiers or '...' before '(' token
      get_free_pages((gfp_mask), 0)
                     ^
>> drivers/xen/xen-scsiback.c:232:12: note: in expansion of macro 'get_free_page'
    static int get_free_page(struct page **page)
               ^
>> include/linux/gfp.h:486:30: error: expected declaration specifiers or '...' before numeric constant
      get_free_pages((gfp_mask), 0)
                                 ^
>> drivers/xen/xen-scsiback.c:232:12: note: in expansion of macro 'get_free_page'
    static int get_free_page(struct page **page)
               ^
   drivers/xen/xen-scsiback.c: In function 'scsiback_gnttab_data_map_list':
>> include/linux/gfp.h:486:18: warning: passing argument 1 of 'get_free_pages' makes integer from pointer without a cast [-Wint-conversion]
      get_free_pages((gfp_mask), 0)
                     ^
   drivers/xen/xen-scsiback.c:442:7: note: in expansion of macro 'get_free_page'
      if (get_free_page(pg + mapcount)) {
          ^
   include/linux/gfp.h:476:14: note: expected 'gfp_t {aka unsigned int}' but argument is of type 'struct page **'
    extern void *get_free_pages(gfp_t gfp_mask, unsigned int order);
                 ^
   drivers/xen/xen-scsiback.c: In function 'scsiback_exit':
>> include/linux/gfp.h:486:18: warning: passing argument 1 of 'get_free_pages' makes integer from pointer without a cast [-Wint-conversion]
      get_free_pages((gfp_mask), 0)
                     ^
   drivers/xen/xen-scsiback.c:1905:7: note: in expansion of macro 'get_free_page'
      if (get_free_page(&page))
          ^
   include/linux/gfp.h:476:14: note: expected 'gfp_t {aka unsigned int}' but argument is of type 'struct page **'
    extern void *get_free_pages(gfp_t gfp_mask, unsigned int order);
                 ^

sparse warnings: (new ones prefixed by >>)

>> drivers/block/xen-blkback/blkback.c:116:19: sparse: macro "get_free_page" passed 2 arguments, but takes just 1
   drivers/block/xen-blkback/blkback.c:822:29: sparse: macro "get_free_page" passed 2 arguments, but takes just 1
   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
   drivers/block/xen-blkback/blkback.c:117:1: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:117:1: sparse: got {
>> drivers/block/xen-blkback/blkback.c:120:9: sparse: Trying to use reserved word 'do' as identifier
   drivers/block/xen-blkback/blkback.c:120:9: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:120:9: sparse: got {
   drivers/block/xen-blkback/blkback.c:120:9: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:120:9: sparse: got &
>> drivers/block/xen-blkback/blkback.c:120:9: sparse: Trying to use reserved word 'void' as identifier
   drivers/block/xen-blkback/blkback.c:120:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:120:9: sparse: got 1
   drivers/block/xen-blkback/blkback.c:120:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:120:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:120:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:120:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:120:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:120:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:121:23: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:121:23: sparse: got (
>> drivers/block/xen-blkback/blkback.c:121:9: sparse: Trying to use reserved word 'if' as identifier
   drivers/block/xen-blkback/blkback.c:122:17: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:122:17: sparse: got }
   drivers/block/xen-blkback/blkback.c:122:17: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:122:17: sparse: got }
   drivers/block/xen-blkback/blkback.c:123:40: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:123:40: sparse: got &
>> drivers/block/xen-blkback/blkback.c:124:17: sparse: Trying to use reserved word 'return' as identifier
   drivers/block/xen-blkback/blkback.c:124:24: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:124:24: sparse: got gnttab_alloc_pages
   drivers/block/xen-blkback/blkback.c:125:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:125:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:126:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:126:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:126:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:126:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:128:18: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:128:18: sparse: got &
   drivers/block/xen-blkback/blkback.c:129:14: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:129:14: sparse: got ->
   drivers/block/xen-blkback/blkback.c:130:32: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:130:32: sparse: got &
   drivers/block/xen-blkback/blkback.c:132:9: sparse: Trying to use reserved word 'return' as identifier
   drivers/block/xen-blkback/blkback.c:132:16: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:132:16: sparse: got 0
   drivers/block/xen-blkback/blkback.c:133:1: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:133:1: sparse: got }
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Trying to use reserved word 'do' as identifier
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:141:9: sparse: got {
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:141:9: sparse: got &
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Trying to use reserved word 'void' as identifier
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:141:9: sparse: got 1
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:141:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:141:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:141:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:141:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:142:16: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:142:16: sparse: got =
>> drivers/block/xen-blkback/blkback.c:142:9: sparse: Trying to use reserved word 'for' as identifier
   drivers/block/xen-blkback/blkback.c:142:23: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:142:23: sparse: got <
   drivers/block/xen-blkback/blkback.c:142:31: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:142:31: sparse: got ++
   drivers/block/xen-blkback/blkback.c:144:14: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:144:14: sparse: got ->
   drivers/block/xen-blkback/blkback.c:145:32: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:145:32: sparse: got &
   drivers/block/xen-blkback/blkback.c:146:1: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:146:1: sparse: got }
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Trying to use reserved word 'do' as identifier
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:155:9: sparse: got {
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:155:9: sparse: got &
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Trying to use reserved word 'void' as identifier
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:155:9: sparse: got 1
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:155:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:155:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:155:9: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:155:9: sparse: got }
   drivers/block/xen-blkback/blkback.c:156:21: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:156:21: sparse: got ->
>> drivers/block/xen-blkback/blkback.c:156:9: sparse: Trying to use reserved word 'while' as identifier
   drivers/block/xen-blkback/blkback.c:157:17: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:157:17: sparse: got }
   drivers/block/xen-blkback/blkback.c:157:17: sparse: Expected ; at the end of type declaration
   drivers/block/xen-blkback/blkback.c:157:17: sparse: got }
   drivers/block/xen-blkback/blkback.c:160:26: sparse: Expected ) in function declarator
   drivers/block/xen-blkback/blkback.c:160:26: sparse: got &
   drivers/block/xen-blkback/blkback.c:161:22: sparse: Expected ; at end of declaration
   drivers/block/xen-blkback/blkback.c:161:22: sparse: got ->
   drivers/block/xen-blkback/blkback.c:162:21: sparse: Expected ) in function declarator
>> drivers/block/xen-blkback/blkback.c:162:21: sparse: too many errors
   drivers/block/xen-blkback/blkback.c:116:76: error: macro "get_free_page" passed 2 arguments, but takes just 1
    static inline int get_free_page(struct xen_blkif *blkif, struct page **page)
                                                                               ^
   drivers/block/xen-blkback/blkback.c:117:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   drivers/block/xen-blkback/blkback.c: In function 'xen_blkbk_map':
   drivers/block/xen-blkback/blkback.c:822:44: error: macro "get_free_page" passed 2 arguments, but takes just 1
       if (get_free_page(blkif, &pages[i]->page))
                                               ^
   drivers/block/xen-blkback/blkback.c:822:8: error: 'get_free_page' undeclared (first use in this function)
       if (get_free_page(blkif, &pages[i]->page))
           ^
   drivers/block/xen-blkback/blkback.c:822:8: note: each undeclared identifier is reported only once for each function it appears in
--
   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
   drivers/xen/xen-scsiback.c:232:12: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:232:12: sparse: got (
>> drivers/xen/xen-scsiback.c:236:9: sparse: Trying to use reserved word 'do' as identifier
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got {
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:236:9: sparse: got &
>> drivers/xen/xen-scsiback.c:236:9: sparse: Trying to use reserved word 'void' as identifier
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got 1
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got }
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got }
   drivers/xen/xen-scsiback.c:236:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:236:9: sparse: got }
   drivers/xen/xen-scsiback.c:237:23: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:237:23: sparse: got (
>> drivers/xen/xen-scsiback.c:237:9: sparse: Trying to use reserved word 'if' as identifier
>> drivers/xen/xen-scsiback.c:239:17: sparse: Trying to use reserved word 'return' as identifier
   drivers/xen/xen-scsiback.c:239:24: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:239:24: sparse: got gnttab_alloc_pages
   drivers/xen/xen-scsiback.c:240:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:240:9: sparse: got }
   drivers/xen/xen-scsiback.c:241:19: sparse: Expected ) in nested declarator
   drivers/xen/xen-scsiback.c:241:19: sparse: got page
>> drivers/xen/xen-scsiback.c:241:19: sparse: Trying to use reserved word 'struct' as identifier
   drivers/xen/xen-scsiback.c:241:19: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:241:19: sparse: got }
   drivers/xen/xen-scsiback.c:242:18: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:242:18: sparse: got &
   drivers/xen/xen-scsiback.c:243:23: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:243:23: sparse: got --
   drivers/xen/xen-scsiback.c:244:32: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:244:32: sparse: got &
   drivers/xen/xen-scsiback.c:245:9: sparse: Trying to use reserved word 'return' as identifier
   drivers/xen/xen-scsiback.c:245:16: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:245:16: sparse: got 0
   drivers/xen/xen-scsiback.c:246:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:246:1: sparse: got }
   drivers/xen/xen-scsiback.c:252:9: sparse: Trying to use reserved word 'return' as identifier
   drivers/xen/xen-scsiback.c:252:31: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:252:31: sparse: got (
   drivers/xen/xen-scsiback.c:253:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:253:1: sparse: got }
   drivers/xen/xen-scsiback.c:258:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:258:1: sparse: got }
   drivers/xen/xen-scsiback.c:265:9: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:265:9: sparse: got "\001"
   drivers/xen/xen-scsiback.c:269:1: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:269:1: sparse: got }
   drivers/xen/xen-scsiback.c:279:18: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:279:18: sparse: got ->
   drivers/xen/xen-scsiback.c:280:12: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:280:12: sparse: got ->
   drivers/xen/xen-scsiback.c:281:12: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:281:12: sparse: got ->
   drivers/xen/xen-scsiback.c:283:13: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:283:13: sparse: got !
   drivers/xen/xen-scsiback.c:283:9: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:286:16: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:286:16: sparse: got =
>> drivers/xen/xen-scsiback.c:286:9: sparse: Trying to use reserved word 'for' as identifier
   drivers/xen/xen-scsiback.c:286:23: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:286:23: sparse: got <
   drivers/xen/xen-scsiback.c:286:41: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:286:41: sparse: got ++
   drivers/xen/xen-scsiback.c:288:28: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:288:28: sparse: got ==
   drivers/xen/xen-scsiback.c:288:17: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:290:37: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:290:37: sparse: got &
   drivers/xen/xen-scsiback.c:292:20: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:292:20: sparse: got ->
   drivers/xen/xen-scsiback.c:294:31: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:294:31: sparse: got [
   drivers/xen/xen-scsiback.c:295:25: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:295:25: sparse: got ++
   drivers/xen/xen-scsiback.c:296:30: sparse: Expected ) in function declarator
   drivers/xen/xen-scsiback.c:296:30: sparse: got <
   drivers/xen/xen-scsiback.c:296:17: sparse: Trying to use reserved word 'if' as identifier
   drivers/xen/xen-scsiback.c:299:17: sparse: Trying to use reserved word 'do' as identifier
   drivers/xen/xen-scsiback.c:299:17: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:299:17: sparse: got {
   drivers/xen/xen-scsiback.c:299:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:299:17: sparse: got }
   drivers/xen/xen-scsiback.c:299:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:299:17: sparse: got }
   drivers/xen/xen-scsiback.c:301:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:301:9: sparse: got }
   drivers/xen/xen-scsiback.c:305:17: sparse: Trying to use reserved word 'do' as identifier
   drivers/xen/xen-scsiback.c:305:17: sparse: Expected ; at end of declaration
   drivers/xen/xen-scsiback.c:305:17: sparse: got {
   drivers/xen/xen-scsiback.c:305:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:305:17: sparse: got }
   drivers/xen/xen-scsiback.c:305:17: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:305:17: sparse: got }
   drivers/xen/xen-scsiback.c:306:9: sparse: Expected ; at the end of type declaration
   drivers/xen/xen-scsiback.c:306:9: sparse: got }
   drivers/xen/xen-scsiback.c:309:12: sparse: Expected ; at end of declaration
>> drivers/xen/xen-scsiback.c:309:12: sparse: too many errors
   In file included from include/linux/kmod.h:22:0,
                    from include/linux/module.h:13,
                    from drivers/xen/xen-scsiback.c:38:
   include/linux/gfp.h:486:18: error: expected declaration specifiers or '...' before '(' token
      get_free_pages((gfp_mask), 0)
                     ^
   drivers/xen/xen-scsiback.c:232:12: note: in expansion of macro 'get_free_page'
    static int get_free_page(struct page **page)
               ^
   include/linux/gfp.h:486:30: error: expected declaration specifiers or '...' before numeric constant
      get_free_pages((gfp_mask), 0)
                                 ^
   drivers/xen/xen-scsiback.c:232:12: note: in expansion of macro 'get_free_page'
    static int get_free_page(struct page **page)
               ^
   drivers/xen/xen-scsiback.c: In function 'scsiback_gnttab_data_map_list':
   include/linux/gfp.h:486:18: warning: passing argument 1 of 'get_free_pages' makes integer from pointer without a cast [-Wint-conversion]
      get_free_pages((gfp_mask), 0)
                     ^
   drivers/xen/xen-scsiback.c:442:7: note: in expansion of macro 'get_free_page'
      if (get_free_page(pg + mapcount)) {
          ^
   include/linux/gfp.h:476:14: note: expected 'gfp_t {aka unsigned int}' but argument is of type 'struct page **'
    extern void *get_free_pages(gfp_t gfp_mask, unsigned int order);
                 ^
   drivers/xen/xen-scsiback.c: In function 'scsiback_exit':
   include/linux/gfp.h:486:18: warning: passing argument 1 of 'get_free_pages' makes integer from pointer without a cast [-Wint-conversion]
      get_free_pages((gfp_mask), 0)
                     ^
   drivers/xen/xen-scsiback.c:1905:7: note: in expansion of macro 'get_free_page'
      if (get_free_page(&page))
          ^
   include/linux/gfp.h:476:14: note: expected 'gfp_t {aka unsigned int}' but argument is of type 'struct page **'
    extern void *get_free_pages(gfp_t gfp_mask, unsigned int order);
                 ^

vim +486 include/linux/gfp.h

   480	
   481	void *alloc_pages_exact(size_t size, gfp_t gfp_mask);
   482	void free_pages_exact(void *virt, size_t size);
   483	void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask);
   484	
   485	#define get_free_page(gfp_mask) \
 > 486			get_free_pages((gfp_mask), 0)
   487	
   488	#define __get_free_page(gfp_mask) \
   489			__get_free_pages((gfp_mask), 0)

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux