Skip to content

Instantly share code, notes, and snippets.

@heftig
Created August 14, 2010 03:55
Show Gist options
  • Save heftig/523941 to your computer and use it in GitHub Desktop.
Save heftig/523941 to your computer and use it in GitHub Desktop.
C mm/swapfile.o
mm/swapfile.c: In function ‘scan_swap_map’:
mm/swapfile.c:445:1: warning: ISO C90 forbids mixed declarations and code
mm/swapfile.c:486:30: error: non-static declaration of ‘get_swap_page’ follows static declaration
mm/swapfile.c:445:13: note: previous definition of ‘get_swap_page’ was here
mm/swapfile.c:509:38: error: non-static declaration of ‘get_swap_page_of_type’ follows static declaration
mm/swapfile.c:489:13: note: previous definition of ‘get_swap_page_of_type’ was here
mm/swapfile.c:511:33: error: invalid storage class for function ‘swap_info_get’
mm/swapfile.c:547:22: error: invalid storage class for function ‘swap_entry_free’
mm/swapfile.c:634:26: error: non-static declaration of ‘swap_free’ follows static declaration
mm/swapfile.c:607:6: note: previous definition of ‘swap_free’ was here
mm/swapfile.c:641:50: error: invalid storage class for function ‘page_swapcount’
mm/swapfile.c:865:12: error: invalid storage class for function ‘unuse_pte’
mm/swapfile.c:905:12: error: invalid storage class for function ‘unuse_pte_range’
mm/swapfile.c:941:50: error: invalid storage class for function ‘unuse_pmd_range’
mm/swapfile.c:961:50: error: invalid storage class for function ‘unuse_pud_range’
mm/swapfile.c:981:12: error: invalid storage class for function ‘unuse_vma’
mm/swapfile.c:1011:12: error: invalid storage class for function ‘unuse_mm’
mm/swapfile.c:1039:21: error: invalid storage class for function ‘find_next_to_unuse’
mm/swapfile.c:1078:12: error: invalid storage class for function ‘try_to_unuse’
mm/swapfile.c:1290:13: error: invalid storage class for function ‘drain_mmlist’
mm/swapfile.c:1337:31: error: non-static declaration of ‘map_swap_entry’ follows static declaration
mm/swapfile.c:1310:10: note: previous definition of ‘map_swap_entry’ was here
mm/swapfile.c:1352:13: error: invalid storage class for function ‘destroy_swap_extents’
mm/swapfile.c:1371:1: error: invalid storage class for function ‘add_swap_extent’
mm/swapfile.c:1441:12: error: invalid storage class for function ‘setup_swap_extents’
mm/swapfile.c:1680:28: error: non-static declaration of ‘sys_swapoff’ follows static declaration
mm/swapfile.c:1537:7: note: previous definition of ‘sys_swapoff’ was here
mm/swapfile.c:1684:14: error: invalid storage class for function ‘swap_start’
mm/swapfile.c:1707:14: error: invalid storage class for function ‘swap_next’
mm/swapfile.c:1729:13: error: invalid storage class for function ‘swap_stop’
mm/swapfile.c:1734:12: error: invalid storage class for function ‘swap_show’
mm/swapfile.c:1758:2: error: initializer element is not constant
mm/swapfile.c:1758:2: error: (near initialization for ‘swaps_op.start’)
mm/swapfile.c:1759:2: error: initializer element is not constant
mm/swapfile.c:1759:2: error: (near initialization for ‘swaps_op.next’)
mm/swapfile.c:1760:2: error: initializer element is not constant
mm/swapfile.c:1760:2: error: (near initialization for ‘swaps_op.stop’)
mm/swapfile.c:1762:1: error: initializer element is not constant
mm/swapfile.c:1762:1: error: (near initialization for ‘swaps_op.show’)
mm/swapfile.c:1764:12: error: invalid storage class for function ‘swaps_open’
mm/swapfile.c:1770:2: error: initializer element is not constant
mm/swapfile.c:1770:2: error: (near initialization for ‘proc_swaps_operations.open’)
mm/swapfile.c:1776:122: error: invalid storage class for function ‘procswaps_init’
mm/swapfile.c:1781:1: error: initializer element is not constant
mm/swapfile.c:1785:122: error: invalid storage class for function ‘max_swapfiles_check’
mm/swapfile.c:1790:1: error: initializer element is not constant
mm/swapfile.c:2110:27: error: non-static declaration of ‘sys_swapon’ follows static declaration
mm/swapfile.c:1798:7: note: previous definition of ‘sys_swapon’ was here
mm/swapfile.c:2128:28: error: non-static declaration of ‘si_swapinfo’ follows static declaration
mm/swapfile.c:2112:6: note: previous definition of ‘si_swapinfo’ was here
mm/swapfile.c:2141:12: error: invalid storage class for function ‘__swap_duplicate’
mm/swapfile.c:2245:37: error: non-static declaration of ‘get_swap_info_struct’ follows static declaration
mm/swapfile.c:2241:26: note: previous definition of ‘get_swap_info_struct’ was here
mm/swapfile.c:2415:13: error: invalid storage class for function ‘swap_count_continued’
mm/swapfile.c:2496:13: error: invalid storage class for function ‘free_swap_count_continuations’
mm/swapfile.c:2513:1: error: expected declaration or statement at end of input
mm/swapfile.c: At top level:
mm/swapfile.c:39:13: warning: ‘swap_count_continued’ used but never defined
mm/swapfile.c:41:13: warning: ‘free_swap_count_continuations’ used but never defined
make[1]: *** [mm/swapfile.o] Error 1
make: *** [mm] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment