Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752841AbdFSPSk (ORCPT ); Mon, 19 Jun 2017 11:18:40 -0400 Received: from mail-by2nam01on0084.outbound.protection.outlook.com ([104.47.34.84]:24064 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751152AbdFSPSd (ORCPT ); Mon, 19 Jun 2017 11:18:33 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Mon, 19 Jun 2017 18:18:18 +0300 From: Yury Norov To: Florian Fainelli Cc: "open list:GENERIC INCLUDE/ASM HEADER FILES" , Keerthy J , Arnd Bergmann , Dave Gerlach , Tony Lindgren , Catalin Marinas , Will Deacon , Russell King , open list , bcm-kernel-feedback-list@broadcom.com, Greg Kroah-Hartman , Alexandre Belloni , linux-omap@vger.kernel.org, Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 2/4] asm-generic: Provide a fncpy() implementation Message-ID: <20170619151818.pvjygbdvm6arvarq@yury-thinkpad> References: <20170617000744.22158-1-f.fainelli@gmail.com> <20170617000744.22158-3-f.fainelli@gmail.com> <20170618235108.peaxdi367jpkt542@yury-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170618235108.peaxdi367jpkt542@yury-thinkpad> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [85.253.137.34] X-ClientProxiedBy: HE1PR09CA0089.eurprd09.prod.outlook.com (10.174.50.161) To SN1PR0701MB1872.namprd07.prod.outlook.com (10.162.100.22) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR0701MB1872: X-MS-Office365-Filtering-Correlation-Id: 32ef1d86-6a82-4d50-1ab5-08d4b726717e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRV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vdUA0k/OKC0xIWwZ/Ndo2WXKHpDO/3NJ6F9DkyexQGuNNAUZNHfRQDBiYyQRJyqPvo43vKk2mwq6kENzVJhmmKUXmC1xchUXd6u0no+A1;20:4ppfYnNPohFZihRqJL3qXt4vMn3lFgrKOoPrp9gNyir6ofoUU1X6vyYT03hwz9pU/GJolMleqKVUYmGb2zrXK4/Ep2K9nRFHAN5Uf2tXwCR9CGN4CXMd+7Ls/5zN2x60xn5vti082OXgveVM7RxFcCSPSPG9oRLNZrF7wXqRQsIIEhd9KAxFYj3c7PvpVwJn3K8M3vEliu3EwwSfu0XMOzZu8jpWkABDAVP7GY/NADW5IZD3X0hhDDDj8WAmGN2WJu3+dhjY1NfxzY51bCivcJlIgivs7pLlS8fj7vFo0iA6GXdEwV1POx8eDWttQP43vSE1IiqvSQeUJ9gHfFmO4d4cNxaNdRITDDR0h8HpCw+2e6Gu+nrnIwTooqP+ouQz5axWHIzv7i1RqO7Z50KcgvJcgieve072zFHp/2eYfQgWSpstamIPcJlSoccj0+CeQD2/c9y1nh9bO/TYfxGKk4lMALM5OlCrgDsNNIA2vKtUMojarlGg+2kwYtimf/r0g1h6aKv49stvsvFYRVYbcpM0mVvjb8F3sjl0PNiakwQ9uWU7d0eJvFaNTXDYdOGGeu3nUSe97rrXTRKvAXdc8hL4YhOAbTOTWqT/unGIFJY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR0701MB1872;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR0701MB1872; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1872;4:r9fFmdLjXqr5TEkV6tcNZCv/zGIBvhhZMrqmCjp+?= =?us-ascii?Q?wlvR22K+V4vu1IiqCm+ugI6eyxI1NoidOgTtD6hy73qxSN8dmy8j4E+aRhCD?= =?us-ascii?Q?nCQi4J2QigsNaoyIpg2mXjSxJpk6fN1VAqYBkEThKFjyp2N48qS4f8wpcd/B?= =?us-ascii?Q?4nCU6BXojO6KQEQycZAqzkLQ35bhv6HbC3Wc+vtkwK5vVzRGUOuMOrIZui9r?= =?us-ascii?Q?j52iQvU1HYV0ynRCs+Q/hFFEla5H9qYeYSnqhLrtXgM1CygYYYs+ZaH5rFrF?= =?us-ascii?Q?eB6B961AugjxQI1lbKfNbJoOBef18vxc644S3s6l2EvlG5gO+WKV5V10ulzc?= =?us-ascii?Q?ICLI6SNR3dyac7dJg+CMF5vTiPj1+fQjoZ9bWIhd5TXZpzyOHt78EjdMu6yu?= =?us-ascii?Q?wuGO75rRmBGRT96vhGkm4zefSO8JwynPZK9GVD16yvogTMppPtxuFrFJXMIW?= =?us-ascii?Q?NMNKsa97mbXBxHGut9nTS9PgBaxuWP2o6QVtbQ5O2xKytQ2kRvc3TGBAM0KT?= =?us-ascii?Q?E3RZN4w8b8QV7iWccCyIlOarBnwVUIMFVG+7iQSr3OUfr/B5Rxdq41TTqvmu?= =?us-ascii?Q?tBxZFda5ofgiPxOeelBoWscAyW7FrFhtc+CJ+hToQNwJgwWMzfgZGp6Na/IO?= =?us-ascii?Q?sLgiNooHIq3wHsny69Ds90sMKSE8ChQ8gtSla4MSJOZ6gaKkCY6SrLN4SzTd?= =?us-ascii?Q?0TfAHEatWKd9qXolbu8tGlVruV/GA519V6FNUk8llJ4oGHYfG+/gnZ+840LW?= =?us-ascii?Q?NyX+C3XroayUz3IsTtVSvt8cVtqV6/NOOS5o8q6wgUqT4cGW3dSLerBQ+CqO?= =?us-ascii?Q?s/cvWkXR8t/BjbWrlnQbSh0GoGN8eNrWwzRLWcQtOLphtPxWinUPsZOJHgST?= =?us-ascii?Q?z9Gp2oOeAbM2ljVm+7TP0wi/B90N+uWoHvyKK3OkMV3tyLw5v8QUTzcSCRKe?= =?us-ascii?Q?zwJDRHd+KCdWmcqi5QOm7+qwTmpF0xmF9PYVcoaNmnQVHV5o58L2hVMMX/E0?= =?us-ascii?Q?o54sB0b0hgpRGoCvNpQe+EZ8/7XBCF8FE1j5igFa6zYYMGhaxXJ7HAFjD2Ls?= =?us-ascii?Q?/oFxWvT1gthytLJ4xLugPrATKpiUCt61aokLjX5wV0U3K9+m7iYs1i/s8CLE?= =?us-ascii?Q?NzZN5bNl2UA=3D?= X-Forefront-PRVS: 0343AC1D30 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(39840400002)(39850400002)(39450400003)(39410400002)(39400400002)(24454002)(7736002)(25786009)(33716001)(5660300001)(54356999)(2906002)(7416002)(189998001)(76506005)(305945005)(4001350100001)(47776003)(33646002)(229853002)(42186005)(50986999)(76176999)(66066001)(2950100002)(72206003)(50466002)(478600001)(6666003)(42882006)(6496005)(8676002)(81166006)(6916009)(9686003)(110136004)(6246003)(38730400002)(53936002)(1076002)(83506001)(6486002)(6116002)(3846002)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR0701MB1872;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1872;23:+R0cI8b7JvgzwxiJWlyS7hIf8xlciTRuDyG/bOX?= =?us-ascii?Q?U+NVhhp0msK3tMp0OEaeIq/NMuSMvNqstOaXC+4jOAYCmQBQiYrqwf3zsqPg?= =?us-ascii?Q?Oinz2hcd80NhWb0bBug26TiV7EsGlPogEJH9yQ8hzvHBw7HvmFV4465FILxj?= =?us-ascii?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7E03MgSvZ2b8Zvs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1872;7:kBq+1wsMrNuIIp/NepfIPnhCHi6V4Ah6hJVtsjUxmOfY7NfXZXngFs/x5vvPfClEYAIEU/9A6fFHIb8BRF0+qBMweL45bOsiuOc5ZUtlF1YE6ubOD/IcOOBKcRT4Kn2lhnLkuH/G4bdRXzuG06oQCDrghdAS6xdGkYkVlVQKt5kujp8hoYBgJ1QPF36N+ok7K7vesTMSa+zNeC00Pj1Mibo8IWPzem3e13wvOWqn+O1Wl4N/IeQm7o9jHW+94qKnYXwYX3f8JJn9S/LicvFkF627ff8XiEV0GywW9jpXvImm29fciONhsQRIO/bZwEsP0cb+VP9pwYMDjsB/25JXAQfTZp9R5bjLbg0dejUxH28qaIUqVmV1e6pIUMLE9TFu4xU8CaMm+wv2i2VQYiwSAMz6tLJPtMePG+F27+iOFI1/j+Z+XFAaCeN8b8iZu2zitCPS3msj9mM5S+voj/1TN0bnf+Z6eq+AM5FAgGXZg/QCuoqbft4Dhc9M2bZz7TpqOVHu2OZ41Ui57X+yMj8Mh+qe68Ivh7OTS4tyvIV3tdxZofkaipEPpnFvXav8sN1f93hNJMV8OvSku6034CDG9HENlXi0RxIYRQGHglEQJjFcafvsctdFLNOjeeotgshZxwlZKVibveUHNGbfT+pYGPD+NdvZXdrVIM6pPwZyhjuEqPbNsJnB2aWjgLvYvoJLfI4VQx2XrZLRBJhsgSL+JRHko2ysCP1hut+ByEWAa75iVPBCz+asg90bbkPa1YCiuwuhJNWfOVaB47blERo7vV+Y/mKGs8ne6wFm2A0w5rA= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 15:18:30.1031 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0701MB1872 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 23 On Mon, Jun 19, 2017 at 02:51:08AM +0300, Yury Norov wrote: > Hi Florian, > > Some questions and thoughts inline. > > Yury > > On Fri, Jun 16, 2017 at 05:07:42PM -0700, Florian Fainelli wrote: > > Define a generic fncpy() implementation largely based on the ARM version > > that requires an 8 bytes alignment for the destination address where to > > copy this function as well as the function's own address. > > > > Signed-off-by: Florian Fainelli > > --- > > include/asm-generic/fncpy.h | 93 +++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 93 insertions(+) > > create mode 100644 include/asm-generic/fncpy.h One else thing I forgot to ask - now you have the generic implementation for fncpy(), so do you really need to save arm version of it? Yury