Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	alsa-devel@alsa-project.org, perex@suse.cz,
	linux-kernel@vger.kernel.org
Subject: Re: [SOUND] hda_intel: build fix
Date: Mon, 12 Mar 2007 12:04:30 +0100	[thread overview]
Message-ID: <s5h8xe2soxt.wl%tiwai@suse.de> (raw)
In-Reply-To: <20070310190513.GA24435@linux-mips.org>

At Sat, 10 Mar 2007 19:05:13 +0000,
Ralf Baechle wrote:
> 
>   CC [M]  sound/pci/hda/hda_intel.o
> sound/pci/hda/hda_intel.c:1508: error: position_fix_list causes a section type conflict
> 
> Gcc like its __devinitdata readable not const, it seems.  An alternative
> fix would be to remove the __devinitdata attribute but that would result
> in slight runtime bloat.
> 
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

It's no big problem to remove const in these cases, but allowing const
with __devinitdata seems the right fix to me...


Takashi


> 
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index b9a8e23..63b6854 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -1505,7 +1505,7 @@ static int azx_dev_free(struct snd_device *device)
>  /*
>   * white/black-listing for position_fix
>   */
> -static const struct snd_pci_quirk position_fix_list[] __devinitdata = {
> +static struct snd_pci_quirk position_fix_list[] __devinitdata = {
>  	SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_NONE),
>  	{}
>  };
> -
> 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/
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  parent reply	other threads:[~2007-03-12 11:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070310190513.GA24435@linux-mips.org>
2007-03-10 19:26 ` [SOUND] ice1712: build fixes Ralf Baechle
     [not found] ` <20070310192641.GA24602@linux-mips.org>
2007-03-10 19:27   ` Ralf Baechle
2007-03-10 19:35 ` Ralf Baechle
2007-03-12 11:04 ` Takashi Iwai [this message]
2007-03-12 13:53   ` [SOUND] hda_intel: build fix Ralf Baechle
     [not found]   ` <20070312135351.GA11974@linux-mips.org>
2007-03-12 14:43     ` Takashi Iwai
2007-03-12 15:46       ` Ralf Baechle
     [not found]       ` <20070312154647.GC11974@linux-mips.org>
2007-03-12 16:38         ` Takashi Iwai
2007-03-13 12:42           ` Ralf Baechle
2007-03-10 19:05 Ralf Baechle

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=s5h8xe2soxt.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    --cc=ralf@linux-mips.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