mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Olien <dmo@osdl.org>
To: perex@suse.cz
Cc: alsa-devel@alsa-project.or, rusty@rustcorp.com.au,
	linux-kernel@vger.kernel.org
Subject: [TRIVIAL PATCH] Fix compiler warning from asound.h
Date: Fri, 17 Jan 2003 12:07:42 -0800	[thread overview]
Message-ID: <20030117120742.A16125@acpi.pdx.osdl.net> (raw)


Here's a trivial patch that cleans up several compiler warnings from
the source file sound/core/pcm_native.c. The fix is in the header file
asound.h.


diff -ur linux-2.5.59_original/include/sound/asound.h linux-2.5.59_trivial_patch/include/sound/asound.h
--- linux-2.5.59_original/include/sound/asound.h	Thu Jan 16 18:22:22 2003
+++ linux-2.5.59_trivial_patch/include/sound/asound.h	Fri Jan 17 11:27:20 2003
@@ -259,9 +259,15 @@
 	SNDRV_PCM_STATE_DRAINING,	/* stream is draining */
 	SNDRV_PCM_STATE_PAUSED,		/* stream is paused */
 	SNDRV_PCM_STATE_SUSPENDED,	/* hardware is suspended */
-	SNDRV_PCM_STATE_LAST = SNDRV_PCM_STATE_SUSPENDED,
 };
 
+/*
+ * This define is used to range check the sndrv_pcm_state enumeration type.
+ * If new states are added to sndrv_pcm_state, then update this
+ * define to reflect the last member of the enumeration.
+ */
+#define	SNDRV_PCM_STATE_LAST  SNDRV_PCM_STATE_SUSPENDED
+
 enum {
 	SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
 	SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,

                 reply	other threads:[~2003-01-17 19:58 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=20030117120742.A16125@acpi.pdx.osdl.net \
    --to=dmo@osdl.org \
    --cc=alsa-devel@alsa-project.or \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    --cc=rusty@rustcorp.com.au \
    /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®