From patchwork Sun Mar 15 22:05:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian McMenamin X-Patchwork-Id: 12247 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2FM5qJ3009300 for ; Sun, 15 Mar 2009 22:05:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752373AbZCOWFw (ORCPT ); Sun, 15 Mar 2009 18:05:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752907AbZCOWFw (ORCPT ); Sun, 15 Mar 2009 18:05:52 -0400 Received: from mk-filter-4-a-1.mail.uk.tiscali.com ([212.74.100.55]:30083 "EHLO mk-filter-4-a-1.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373AbZCOWFv (ORCPT ); Sun, 15 Mar 2009 18:05:51 -0400 X-Trace: 163746686/mk-filter-4.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: Al8FAKYYvUlQKS+h/2dsb2JhbACBTc4tg38G X-IronPort-AV: E=Sophos;i="4.38,368,1233532800"; d="scan'208";a="163746686" Received: from 80-41-47-161.dynamic.dsl.as9105.com (HELO newgolddream.info) ([80.41.47.161]) by smtp.tiscali.co.uk with ESMTP; 15 Mar 2009 22:05:46 +0000 Received: from [192.168.62.105] (bossclass.tiscali.co.uk [192.168.62.105]) by newgolddream.info (8.14.3/8.14.3/Debian-4) with ESMTP id n2FM5ePJ019907; Sun, 15 Mar 2009 22:05:42 GMT Subject: [PATCH] snd: aica - fix annoying compiler warning From: Adrian McMenamin To: Alsa-devel , Takashi Iwai Cc: LKML , linux-sh Date: Sun, 15 Mar 2009 22:05:40 +0000 Message-Id: <1237154740.6636.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 X-Spam-Status: No, score=-3.3 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on dragoneye X-Virus-Scanned: ClamAV 0.94.1rc1/9110/Sun Mar 15 05:06:44 2009 on newgolddream.info X-Virus-Status: Clean Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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 --- -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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); spu_enable(); release_firmware(fw_entry); return err;