Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755208AbcDDKCP (ORCPT ); Mon, 4 Apr 2016 06:02:15 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:53846 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754867AbcDDKCO (ORCPT ); Mon, 4 Apr 2016 06:02:14 -0400 Date: Mon, 4 Apr 2016 11:02:05 +0100 From: Russell King - ARM Linux To: Alexandre Belloni Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Dave Martin , Olof Johansson , Doug Anderson , Heiko Stuebner , Russ Dill Subject: Re: [PATCH 2/2] ARM: at91: pm: switch to the PIE infrastructure Message-ID: <20160404100205.GT19428@n2100.arm.linux.org.uk> References: <1459668234-16033-1-git-send-email-alexandre.belloni@free-electrons.com> <1459668234-16033-3-git-send-email-alexandre.belloni@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459668234-16033-3-git-send-email-alexandre.belloni@free-electrons.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 443 Lines: 11 On Sun, Apr 03, 2016 at 09:23:54AM +0200, Alexandre Belloni wrote: > - /* Copy the pm suspend handler to SRAM */ > - at91_suspend_sram_fn = fncpy(at91_suspend_sram_fn, > - &at91_pm_suspend_in_sram, at91_pm_suspend_in_sram_sz); This is proper and correct use of fncpy(). -- RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.