Flavio, This define is used only for !SMP kernels (search for !SMP in spinlock.h) and spinlock doesn't exist in !SMP kernels (see Unreliable Guide To Locking, chapter 2). ivan --- Flavio Bruno Leitner <flavio@conectiva.com.br> wrote: > > #define spin_lock(lock) (void)(lock) /* Not "unused variable". */ > > Can anyone explain to me how this works? Is it a gcc feature? > I saw it in include/linux/spinlock.h > Thanks. > > > -- > Flávio Bruno Leitner <flavio@conectiva.com> > Pesquisa e Desenvolvimento http://fly.to/fbl > Conectiva Linux http://www.conectiva.com.br/ > - > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > IRC Channel: irc.openprojects.net / #kernelnewbies > Web Page: http://www.kernelnewbies.org/ ===== --------------------------------------------------------- Ivan da Silva Sendin - Computer Security & Cryptography Raw IP,TCP & UDP with Java:http://jpacket.sourceforge.net Campinas - Brasil --------------------------------------------------------- __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/