* drivers/char/speakup/synthlist.h fix -Wundef errors
@ 2005-07-27 20:16 Nick Sillik
2005-07-27 20:28 ` Nick Sillik
0 siblings, 1 reply; 2+ messages in thread
From: Nick Sillik @ 2005-07-27 20:16 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
This patch should fix a slew of -Wundef errors in the synthlist.h file
used by the speakup driver.
Nick Sillik
n.sillik@temple.edu
[-- Attachment #2: synthlist_wundef.patch --]
[-- Type: text/plain, Size: 1632 bytes --]
diff -urN a/drivers/char/speakup/synthlist.h b/drivers/char/speakup/synthlist.h
--- a/drivers/char/speakup/synthlist.h 2005-07-27 16:10:04.000000000 -0400
+++ b/drivers/char/speakup/synthlist.h 2005-07-27 16:12:23.000000000 -0400
@@ -10,43 +10,43 @@
#define CFG_TEST(name) (name)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_ACNTPC)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_ACNTPC)
SYNTH_DECL(acntpc)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_ACNTSA)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_ACNTSA)
SYNTH_DECL(acntsa)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_APOLLO)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_APOLLO)
SYNTH_DECL(apollo)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_AUDPTR)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_AUDPTR)
SYNTH_DECL(audptr)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_BNS)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_BNS)
SYNTH_DECL(bns)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_DECEXT)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_DECEXT)
SYNTH_DECL(decext)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_DECTLK)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_DECTLK)
SYNTH_DECL(dectlk)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_DTLK)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_DTLK)
SYNTH_DECL(dtlk)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_KEYPC)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_KEYPC)
SYNTH_DECL(keypc)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_LTLK)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_LTLK)
SYNTH_DECL(ltlk)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_SFTSYN)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_SFTSYN)
SYNTH_DECL(sftsyn)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_SPKOUT)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_SPKOUT)
SYNTH_DECL(spkout)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_TXPRT)
+#ifdef CFG_TEST(CONFIG_SPEAKUP_TXPRT)
SYNTH_DECL(txprt)
#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: drivers/char/speakup/synthlist.h fix -Wundef errors
2005-07-27 20:16 drivers/char/speakup/synthlist.h fix -Wundef errors Nick Sillik
@ 2005-07-27 20:28 ` Nick Sillik
0 siblings, 0 replies; 2+ messages in thread
From: Nick Sillik @ 2005-07-27 20:28 UTC (permalink / raw)
To: Nick Sillik; +Cc: linux-kernel, David Borowski
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
Nick Sillik wrote:
> This patch should fix a slew of -Wundef errors in the synthlist.h file
> used by the speakup driver.
>
> Nick Sillik
> n.sillik@temple.edu
Or maybe we could just eliminate the CFG_TEST from the file all
together.... This patch follows that avenue.
[-- Attachment #2: synthlist_wundef.patch --]
[-- Type: text/plain, Size: 1615 bytes --]
diff -urN a/drivers/char/speakup/synthlist.h b/drivers/char/speakup/synthlist.h
--- a/drivers/char/speakup/synthlist.h 2005-07-27 16:10:04.000000000 -0400
+++ b/drivers/char/speakup/synthlist.h 2005-07-27 16:24:02.000000000 -0400
@@ -7,46 +7,45 @@
/* declare extern built in synths */
#define SYNTH_DECL(who) extern struct spk_synth synth_##who;
#define PASS2
-#define CFG_TEST(name) (name)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_ACNTPC)
+#ifdef CONFIG_SPEAKUP_ACNTPC
SYNTH_DECL(acntpc)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_ACNTSA)
+#ifdef CONFIG_SPEAKUP_ACNTSA
SYNTH_DECL(acntsa)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_APOLLO)
+#ifdef CONFIG_SPEAKUP_APOLLO
SYNTH_DECL(apollo)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_AUDPTR)
+#ifdef CONFIG_SPEAKUP_AUDPTR
SYNTH_DECL(audptr)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_BNS)
+#ifdef CONFIG_SPEAKUP_BNS
SYNTH_DECL(bns)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_DECEXT)
+#ifdef CONFIG_SPEAKUP_DECEXT
SYNTH_DECL(decext)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_DECTLK)
+#ifdef CONFIG_SPEAKUP_DECTLK
SYNTH_DECL(dectlk)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_DTLK)
+#ifdef CONFIG_SPEAKUP_DTLK
SYNTH_DECL(dtlk)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_KEYPC)
+#ifdef CONFIG_SPEAKUP_KEYPC
SYNTH_DECL(keypc)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_LTLK)
+#ifdef CONFIG_SPEAKUP_LTLK
SYNTH_DECL(ltlk)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_SFTSYN)
+#ifdef CONFIG_SPEAKUP_SFTSYN
SYNTH_DECL(sftsyn)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_SPKOUT)
+#ifdef CONFIG_SPEAKUP_SPKOUT
SYNTH_DECL(spkout)
#endif
-#if CFG_TEST(CONFIG_SPEAKUP_TXPRT)
+#ifdef CONFIG_SPEAKUP_TXPRT
SYNTH_DECL(txprt)
#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-27 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-27 20:16 drivers/char/speakup/synthlist.h fix -Wundef errors Nick Sillik
2005-07-27 20:28 ` Nick Sillik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox