Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758375AbZDAXmU (ORCPT ); Wed, 1 Apr 2009 19:42:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754735AbZDAXmF (ORCPT ); Wed, 1 Apr 2009 19:42:05 -0400 Received: from mk-filter-1-a-1.mail.uk.tiscali.com ([212.74.100.52]:27030 "EHLO mk-filter-1-a-1.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbZDAXmD (ORCPT ); Wed, 1 Apr 2009 19:42:03 -0400 X-Trace: 176155451/mk-filter-1.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/80.41.47.161/None/adrian@newgolddream.dyndns.info X-SBRS: None X-RemoteIP: 80.41.47.161 X-IP-MAIL-FROM: adrian@newgolddream.dyndns.info X-MUA: Evolution 2.24.3 X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAC+Y00lQKS+h/2dsb2JhbACBU81vg30G X-IronPort-AV: E=Sophos;i="4.39,309,1235952000"; d="scan'208";a="176155451" Subject: Re: [PATCH] snd: aica - fix annoying compiler warning From: Adrian McMenamin To: Paul Mundt Cc: Takashi Iwai , Alsa-devel , LKML , linux-sh In-Reply-To: <20090330231043.GF19535@linux-sh.org> References: <1237154740.6636.4.camel@localhost.localdomain> <1237190049.6513.3.camel@localhost.localdomain> <20090330231043.GF19535@linux-sh.org> Content-Type: text/plain Date: Thu, 02 Apr 2009 00:41:50 +0100 Message-Id: <1238629310.7455.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1767 Lines: 48 On Tue, 2009-03-31 at 08:10 +0900, Paul Mundt wrote: > On Mon, Mar 16, 2009 at 08:59:20AM +0100, Takashi Iwai wrote: > > At Mon, 16 Mar 2009 07:54:09 +0000, > > Adrian McMenamin wrote: > > > > > > On Mon, 2009-03-16 at 07:31 +0100, Takashi Iwai wrote: > > > > At Sun, 15 Mar 2009 22:05:40 +0000, > > > > Adrian McMenamin wrote: > > > > > > > > > > Cast pointer to data member of struct firmware as a void to end an > > > > > annoying compiler warning. > > > > > > > > > > fix annoying compiler warning > > > > > > > > > > Signed-off-by: Adrian McMenamin > > > > > --- > > > > > > > > > > diff --git a/sound/sh/aica.c b/sound/sh/aica.c > > > > > index 7c920f3..822b119 100644 > > > > > --- a/sound/sh/aica.c > > > > > +++ b/sound/sh/aica.c > > > > > @@ -567,7 +567,7 @@ static int load_aica_firmware(void) > > > > > return err; > > > > > /* write firware into memory */ > > > > > spu_disable(); > > > > > - spu_memload(0, fw_entry->data, fw_entry->size); > > > > > + spu_memload(0, (void *)fw_entry->data, fw_entry->size); > > > > > > > > IMO, it's better to fix spu_memload() to take const pointer instead of > > > > cast. > > > > > > > > > > If that's what you want I can do that but it adds to kernel bloat by > > > having two functions essentially do the same thing. > > > > I meant a fix like below... > > > Is anything happening with this, or should I just ignore it? > I though Takashi's fix was fine/obvious but it doesn't appear to have been pushed upstream (yet?) -- 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/