From patchwork Tue Jan 25 17:21:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 505881 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 p0PHLXKF027502 for ; Tue, 25 Jan 2011 17:21:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128Ab1AYRVc (ORCPT ); Tue, 25 Jan 2011 12:21:32 -0500 Received: from mail-ww0-f42.google.com ([74.125.82.42]:51754 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571Ab1AYRVc (ORCPT ); Tue, 25 Jan 2011 12:21:32 -0500 Received: by wwi17 with SMTP id 17so4230443wwi.1 for ; Tue, 25 Jan 2011 09:21:31 -0800 (PST) Received: by 10.227.20.78 with SMTP id e14mr6243857wbb.175.1295976090872; Tue, 25 Jan 2011 09:21:30 -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 u9sm180520wbg.18.2011.01.25.09.21.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Jan 2011 09:21:30 -0800 (PST) From: jean.pihet@newoldbits.com To: Dave Martin , linux-omap@vger.kernel.org Cc: Jean Pihet Subject: [PATCH] OMAP: fix fncpy API call Date: Tue, 25 Jan 2011 18:21:19 +0100 Message-Id: <1295976079-21228-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:21:34 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/sram.h b/arch/arm/plat-omap/include/plat/sram.h index d673f2c..6a2166d 100644 --- a/arch/arm/plat-omap/include/plat/sram.h +++ b/arch/arm/plat-omap/include/plat/sram.h @@ -21,7 +21,7 @@ extern void *omap_sram_push_address(unsigned long size); 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; \ })