Skip to content
  • Andrew Morton's avatar
    alpha: teach the compiler that BUG doesn't return · ed6b9b97
    Andrew Morton authored
    
    
    Fix things like this:
    
    security/selinux/netnode.c: In function 'sel_netnode_find':
    security/selinux/netnode.c:126: warning: 'idx' may be used uninitialized in this function
    security/selinux/netnode.c: In function 'sel_netnode_sid':
    security/selinux/netnode.c:225: warning: 'ret' may be used uninitialized in this function
    security/selinux/netnode.c:168: warning: 'idx' may be used uninitialized in this function
    
    due to code correctly not expecting BUG() to return.
    
    For some reason this reduces the object code size for that particular file.
    
    Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    Cc: Richard Henderson <rth@twiddle.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ed6b9b97