Re: [SOUND] hda_intel: build fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 12, 2007 at 03:43:10PM +0100, Takashi Iwai wrote:
> Fair enough.  I agree that removing const is the only reasonable fix> right now.   But from semantics, const is a good thing, and people may> try to add it again later if we get rid of them now.  So, how about to> comment out such as /*const*/ in each place to remind that it's> intentional?
I consider that harder to read and uglier.  If anything maybe somethinglike:
#define __const_devinit[...]static __const_devinit struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_status __devinitdata =
Worth it?  I doubt.
> Also, in your patch to ice1712, you don't have to remove const from the> codes in snd_ice1712_read_eeprom() and snd_ice1712_probe() functions.> They should work as const pointer.
No, that results in warnings:
  CC      sound/pci/ice1712/ice1712.osound/pci/ice1712/ice1712.c: In function ‘snd_ice1712_read_eeprom’:sound/pci/ice1712/ice1712.c:2354: warning: assignment from incompatible pointer typesound/pci/ice1712/ice1712.c: In function ‘snd_ice1712_probe’:sound/pci/ice1712/ice1712.c:2693: warning: assignment from incompatible pointer type
  Ralf
-------------------------------------------------------------------------Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys-and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxxxxxxxx://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux