Odd code in sysrq.c

From: Mike A. Harris (mharris@meteng.on.ca)
Date: Sat Feb 26 2000 - 02:47:51 EST


The following is found in sysrq.c

#ifdef CONFIG_MAGIC_SYSRQ
int sysrq_enabled = 1;
#endif

Can someone explain why? I mean, if CONFIG_MAGIC_SYSRQ is not
enabled at all, then sysrq.c isn't compiled at all - correct?

So if it isn't compiled then the above ifdef will never get
seen. If however CONFIG_MAGIC_SYSRQ *IS* defined, then the
feature is enabled, sysrq.c gets compiled, and the ifdef block
above is automatically going to be true.

So the ifdef is pointless and redundant no?

If not, please explain why.

TTYL

-- 
Mike A. Harris                                     Linux advocate     
Computer Consultant                                  GNU advocate  
Capslock Consulting                          Open Source advocate

Suspicious Anagram #4: Word: PRESIDENT CLINTON OF THE USA Anagram: TO COPULATE HE FINDS INTERNS

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:15 EST