All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: Add missing include of pcm.h to pcm_params.h
@ 2012-06-19 18:31 Mark Brown
  2012-06-20  5:47 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-06-19 18:31 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai; +Cc: alsa-devel, Mark Brown

There's a dependency but no #include.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 include/sound/pcm_params.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h
index f494f1e..37ae12e 100644
--- a/include/sound/pcm_params.h
+++ b/include/sound/pcm_params.h
@@ -22,6 +22,8 @@
  *
  */
 
+#include <sound/pcm.h>
+
 int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm, 
 			   struct snd_pcm_hw_params *params,
 			   snd_pcm_hw_param_t var, int *dir);
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ALSA: Add missing include of pcm.h to pcm_params.h
  2012-06-19 18:31 [PATCH] ALSA: Add missing include of pcm.h to pcm_params.h Mark Brown
@ 2012-06-20  5:47 ` Takashi Iwai
  2012-06-20  9:34   ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2012-06-20  5:47 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

At Tue, 19 Jun 2012 19:31:48 +0100,
Mark Brown wrote:
> 
> There's a dependency but no #include.

I don't mind to put it, but it wasn't done because we didn't want to
let the driver code including only pcm_params.h without pcm.h.


Takashi

> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>  include/sound/pcm_params.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h
> index f494f1e..37ae12e 100644
> --- a/include/sound/pcm_params.h
> +++ b/include/sound/pcm_params.h
> @@ -22,6 +22,8 @@
>   *
>   */
>  
> +#include <sound/pcm.h>
> +
>  int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm, 
>  			   struct snd_pcm_hw_params *params,
>  			   snd_pcm_hw_param_t var, int *dir);
> -- 
> 1.7.10
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ALSA: Add missing include of pcm.h to pcm_params.h
  2012-06-20  5:47 ` Takashi Iwai
@ 2012-06-20  9:34   ` Mark Brown
  2012-06-20 15:51     ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-06-20  9:34 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 476 bytes --]

On Wed, Jun 20, 2012 at 07:47:25AM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > There's a dependency but no #include.

> I don't mind to put it, but it wasn't done because we didn't want to
> let the driver code including only pcm_params.h without pcm.h.

I noticed it because I was writing some library code which only directly
referenced things in pcm_params.h so just included that directly.  The
general idea is that headers shouldn't have external dependencies...

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ALSA: Add missing include of pcm.h to pcm_params.h
  2012-06-20  9:34   ` Mark Brown
@ 2012-06-20 15:51     ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2012-06-20 15:51 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

At Wed, 20 Jun 2012 10:34:25 +0100,
Mark Brown wrote:
> 
> On Wed, Jun 20, 2012 at 07:47:25AM +0200, Takashi Iwai wrote:
> > Mark Brown wrote:
> 
> > > There's a dependency but no #include.
> 
> > I don't mind to put it, but it wasn't done because we didn't want to
> > let the driver code including only pcm_params.h without pcm.h.
> 
> I noticed it because I was writing some library code which only directly
> referenced things in pcm_params.h so just included that directly.  The
> general idea is that headers shouldn't have external dependencies...

True.

This can be an endless bikeshed discussion, so I simply applied the
patch now.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-20 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 18:31 [PATCH] ALSA: Add missing include of pcm.h to pcm_params.h Mark Brown
2012-06-20  5:47 ` Takashi Iwai
2012-06-20  9:34   ` Mark Brown
2012-06-20 15:51     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.