From patchwork Tue Jan 25 17:48:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 506241 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0PHmJV7009051 for ; Tue, 25 Jan 2011 17:48:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753212Ab1AYRsS (ORCPT ); Tue, 25 Jan 2011 12:48:18 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:52256 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340Ab1AYRsR (ORCPT ); Tue, 25 Jan 2011 12:48:17 -0500 Received: by wyb28 with SMTP id 28so37993wyb.19 for ; Tue, 25 Jan 2011 09:48:16 -0800 (PST) Received: by 10.227.183.71 with SMTP id cf7mr6217062wbb.195.1295977696622; Tue, 25 Jan 2011 09:48:16 -0800 (PST) Received: from localhost.localdomain (86.119-245-81.adsl-dyn.isp.belgacom.be [81.245.119.86]) by mx.google.com with ESMTPS id m13sm10288260wbz.21.2011.01.25.09.48.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Jan 2011 09:48:15 -0800 (PST) From: jean.pihet@newoldbits.com To: Dave Martin , linux-omap@vger.kernel.org Cc: Jean Pihet Subject: [PATCH v2] OMAP: fix fncpy API call Date: Tue, 25 Jan 2011 18:48:06 +0100 Message-Id: <1295977686-22765-1-git-send-email-j-pihet@ti.com> X-Mailer: git-send-email 1.7.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 25 Jan 2011 17:48:19 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/sram.h b/arch/arm/plat-omap/include/plat/sram.h index d673f2c..f500fc3 100644 --- a/arch/arm/plat-omap/include/plat/sram.h +++ b/arch/arm/plat-omap/include/plat/sram.h @@ -18,10 +18,10 @@ extern void *omap_sram_push_address(unsigned long size); /* Macro to push a function to the internal SRAM, using the fncpy API */ #define omap_sram_push(funcp, size) ({ \ - typeof(&funcp) _res = NULL; \ + typeof(&(funcp)) _res = NULL; \ void *_sram_address = omap_sram_push_address(size); \ if (_sram_address) \ - _res = fncpy(_sram_address, &funcp, size); \ + _res = fncpy(_sram_address, &(funcp), size); \ _res; \ })