All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions regarding BUG macro.
@ 2017-02-24 12:10 Varsha Rao
  2017-02-24 14:48 ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Varsha Rao @ 2017-02-24 12:10 UTC (permalink / raw)
  To: outreachy-kernel


[-- Attachment #1.1: Type: text/plain, Size: 441 bytes --]


What is the functionality of unreachable() ?
Isn't the do while loop unnecessary in the given definition ?

#define BUG()                                
    do {                                
        _BUG_OR_WARN(0);                    
        unreachable();                        
    } while (0)

Found the above definition at staging/arch/avr32/include/asm/bug.h 
Also what is the difference between unreachable() and unlikely()?



[-- Attachment #1.2: Type: text/html, Size: 607 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-24 18:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24 12:10 Questions regarding BUG macro Varsha Rao
2017-02-24 14:48 ` [Outreachy kernel] " Greg KH
2017-02-24 18:24   ` Varsha Rao
2017-02-24 18:29     ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.