public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: [patch] 2.6.10-rc2-mm2: OSS ac97_codec.h: #include pci.h
Date: Sat, 20 Nov 2004 12:35:45 +0100	[thread overview]
Message-ID: <20041120113545.GC2754@stusta.de> (raw)
In-Reply-To: <20041118124220.GB2268@holomorphy.com>

On Thu, Nov 18, 2004 at 04:42:20AM -0800, William Lee Irwin III wrote:
> On Thu, Nov 18, 2004 at 02:15:38AM -0800, Andrew Morton wrote:
> > +oss-ac97-quirk-facility.patch
> >  Add and use device quirk lists in this OSS driver
> 
> That patch may not actually be responsible for the warning. It's
> trivially resolved regardless.
> 
> This patch adds a forward declaration of struct pci_dev to repair the
> following warning:
> 
> In file included from sound/oss/emu10k1/hwaccess.h:38,
>                  from sound/oss/emu10k1/cardmi.c:36:
> include/linux/ac97_codec.h:337: warning: `struct pci_dev' declared inside parameter list
> include/linux/ac97_codec.h:337: warning: its scope is only this definition or declaration, which is probably not what you want
> 
> Index: mm2-2.6.10-rc2/include/linux/ac97_codec.h
> ===================================================================
> --- mm2-2.6.10-rc2.orig/include/linux/ac97_codec.h	2004-11-18 02:56:31.000000000 -0800
> +++ mm2-2.6.10-rc2/include/linux/ac97_codec.h	2004-11-18 03:53:05.308878784 -0800
> @@ -334,6 +334,7 @@
>  	int type;               /* quirk type above */
>  };
>  
> +struct pci_dev;
>  extern int ac97_tune_hardware(struct pci_dev *pdev, struct ac97_quirk *quirk, int override);
>  
>  #endif /* _AC97_CODEC_H_ */


Wouldn't it be better to simply #include pci.h?


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc2-mm2-full/include/linux/ac97_codec.h.old	2004-11-20 12:11:31.000000000 +0100
+++ linux-2.6.10-rc2-mm2-full/include/linux/ac97_codec.h	2004-11-20 12:12:26.000000000 +0100
@@ -3,6 +3,7 @@
 
 #include <linux/types.h>
 #include <linux/soundcard.h>
+#include <linux/pci.h>
 
 /* AC97 1.0 */
 #define  AC97_RESET               0x0000      //



  reply	other threads:[~2004-11-20 11:35 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-18 10:15 2.6.10-rc2-mm2 Andrew Morton
2004-11-18 11:36 ` [patch] 2.6.10-rc2-mm2: ISDN divert_init.c compile error Adrian Bunk
2004-11-18 12:10 ` 2.6.10-rc2-mm2 Hirokazu Takata
2004-11-18 13:20   ` 2.6.10-rc2-mm2 Hirokazu Takata
2004-11-18 12:42 ` 2.6.10-rc2-mm2 William Lee Irwin III
2004-11-20 11:35   ` Adrian Bunk [this message]
2004-11-20 11:45     ` [patch] 2.6.10-rc2-mm2: OSS ac97_codec.h: #include pci.h William Lee Irwin III
2004-11-18 12:45 ` 2.6.10-rc2-mm2 William Lee Irwin III
2004-11-18 13:57 ` 2.6.10-rc2-mm2 William Lee Irwin III
2004-11-18 14:31   ` 2.6.10-rc2-mm2 William Lee Irwin III
2004-11-18 15:41 ` [patch] 2.6.10-rc2-mm2: MTD_XIP dependencies Adrian Bunk
2004-11-18 15:51   ` David Woodhouse
2004-11-18 16:34     ` Nicolas Pitre
2004-11-18 17:02       ` Russell King
2004-11-18 21:32       ` Adrian Bunk
2004-11-18 22:31         ` Nicolas Pitre
2004-11-18 23:25           ` Adrian Bunk
2004-11-19  1:58             ` Nicolas Pitre
2004-11-19 13:35               ` Adrian Bunk
2004-11-19 16:35                 ` Nicolas Pitre
2004-11-21 19:56                   ` Adrian Bunk
2004-11-22  0:38                     ` Nicolas Pitre
2004-11-22  7:38                       ` David Woodhouse
2004-11-18 22:51 ` 2.6.10-rc2-mm2 Valdis.Kletnieks
2004-11-19  0:04 ` [patch] 2.6.10-rc2-mm2: `ST_partstat' multiple definition Adrian Bunk
2004-11-20  2:40 ` 2.6.10-rc2-mm2 Lee Revell
2004-11-20 17:24   ` 2.6.10-rc2-mm2 Lee Revell
2004-11-20 18:31 ` 2.6.10-rc2-mm2 William Lee Irwin III
2004-11-20 21:19   ` 2.6.10-rc2-mm2 Christoph Hellwig
2004-11-20 21:29     ` 2.6.10-rc2-mm2 William Lee Irwin III

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=20041120113545.GC2754@stusta.de \
    --to=bunk@stusta.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wli@holomorphy.com \
    /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