[PATCH] Kill warning in ac97_codec

Sam Ravnborg (sam@ravnborg.org)
Mon, 10 Jun 2002 21:33:45 +0200


--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Kill warning from xxx_bit funtions in ac97_codec.
Compiled, but no possibility to test.

Against 2.5.21.

Sam

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ac97.patch"

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.453 -> 1.454
# include/sound/ac97_codec.h 1.3 -> 1.4
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/06/10 sam@mars.ravnborg.org 1.454
# ac97: kill warning: passing arg 2 of `xxx_bit' from incompatible pointer type
# --------------------------------------------
#
diff -Nru a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
--- a/include/sound/ac97_codec.h Mon Jun 10 21:31:23 2002
+++ b/include/sound/ac97_codec.h Mon Jun 10 21:31:23 2002
@@ -160,7 +160,7 @@
unsigned int rates_mic_adc;
unsigned int spdif_status;
unsigned short regs[0x80]; /* register cache */
- unsigned char reg_accessed[0x80 / 8]; /* bit flags */
+ unsigned long reg_accessed[0x80 / BITS_PER_LONG]; /* bit flags */
union { /* vendor specific code */
struct {
unsigned short unchained[3]; // 0 = C34, 1 = C79, 2 = C69

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