From: "Paul Rolland" <rol@witbe.net>
To: "'Linux Kernel Mailing List'" <linux-kernel@vger.kernel.org>
Subject: [Patch - 2.5] OSS/Emu10k1
Date: Sun, 5 Jan 2003 16:46:47 +0100 [thread overview]
Message-ID: <013301c2b4d1$a7d872e0$2101a8c0@witbe> (raw)
Hello,
Here are two patches to avoid compilation warnings for Emu10K1 OSS.
Mainly related to set_bit and al. now requiring a void * parameter.
This patch is just doing type cast.
3 [16:45] rol@donald:/usr/src/linux/sound/oss/emu10k1> diff -urN
efxmgr.c.orig efxmgr.c
--- efxmgr.c.orig 2003-01-05 16:42:37.000000000 +0100
+++ efxmgr.c 2003-01-05 16:41:46.000000000 +0100
@@ -64,7 +64,7 @@
match:
for (i = 0; i < NUM_GPRS; i++)
if (mgr->gpr[i].type == GPR_TYPE_CONTROL &&
- test_bit(i, gpr_used) &&
+ test_bit(i, (void *)gpr_used) &&
!strcmp(mgr->gpr[i].name, gpr_name))
return i;
and
7 [16:46] rol@donald:/usr/src/linux/sound/oss/emu10k1> diff -urN
efxmgr.h.orig efxmgr.h
--- efxmgr.h.orig 2003-01-05 16:38:25.000000000 +0100
+++ efxmgr.h 2003-01-05 16:39:53.000000000 +0100
@@ -196,9 +196,9 @@
patch->code_size = pc * 2 - patch->code_start; \
} while(0)
-#define CONNECT(input, output) set_bit(input, &rpatch->route[(output) -
OUTPUT_BASE]);
+#define CONNECT(input, output) set_bit(input, (void
*)(&rpatch->route[(output) - OUTPUT_BASE]));
-#define CONNECT_V(input, output) set_bit(input,
&rpatch->route_v[(output) - OUTPUT_BASE]);
+#define CONNECT_V(input, output) set_bit(input, (void
*)(&rpatch->route_v[(output) - OUTPUT_BASE]));
#define OUTPUT_PATCH_START(patch, nm, ln, i) \
do { \
@@ -221,7 +221,7 @@
mgr->gpr[(g) - GPR_BASE].type = GPR_TYPE_IO; \
mgr->gpr[(g) - GPR_BASE].usage++; \
mgr->gpr[(g) - GPR_BASE].line = ln; \
- set_bit((g) - GPR_BASE, patch->gpr_used); \
+ set_bit((g) - GPR_BASE, (void *)(patch->gpr_used)); \
} while(0)
#define GET_INPUT_GPR(patch, g, ln) \
@@ -229,15 +229,15 @@
mgr->gpr[(g) - GPR_BASE].type = GPR_TYPE_IO; \
mgr->gpr[(g) - GPR_BASE].usage++; \
mgr->gpr[(g) - GPR_BASE].line = ln; \
- set_bit((g) - GPR_BASE, patch->gpr_used); \
- set_bit((g) - GPR_BASE, patch->gpr_input); \
+ set_bit((g) - GPR_BASE, (void *)(patch->gpr_used)); \
+ set_bit((g) - GPR_BASE, (void *)(patch->gpr_input)); \
} while(0)
#define GET_DYNAMIC_GPR(patch, g) \
do { \
mgr->gpr[(g) - GPR_BASE].type = GPR_TYPE_DYNAMIC; \
mgr->gpr[(g) - GPR_BASE].usage++; \
- set_bit((g) - GPR_BASE, patch->gpr_used); \
+ set_bit((g) - GPR_BASE, (void *)(patch->gpr_used)); \
} while(0)
#define GET_CONTROL_GPR(patch, g, nm, a, b) \
@@ -248,7 +248,7 @@
mgr->gpr[(g) - GPR_BASE].min = a; \
mgr->gpr[(g) - GPR_BASE].max = b; \
sblive_writeptr(card, g, 0, b); \
- set_bit((g) - GPR_BASE, patch->gpr_used); \
+ set_bit((g) - GPR_BASE, (void *)(patch->gpr_used)); \
} while(0)
#endif /* _EFXMGR_H */
reply other threads:[~2003-01-05 15:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='013301c2b4d1$a7d872e0$2101a8c0@witbe' \
--to=rol@witbe.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®