From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754246AbbIPWJJ (ORCPT ); Wed, 16 Sep 2015 18:09:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44107 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753141AbbIPWJF (ORCPT ); Wed, 16 Sep 2015 18:09:05 -0400 Date: Wed, 16 Sep 2015 15:09:03 -0700 From: Andrew Morton To: Stephen Boyd Cc: Andy Gross , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-soc@vger.kernel.org, linux-mips@linux-mips.org, Hauke Mehrtens , Paul Walmsley , =?UTF-8?Q?Rafa=C5=82_?= =?UTF-8?Q?Mi=C5=82ecki?= , Bjorn Andersson , Andi Kleen Subject: Re: [PATCH 0/3] Add __ioread32_copy() and use it Message-Id: <20150916150903.8021ca66ba76cb31f34021a2@linux-foundation.org> In-Reply-To: <20150916005053.GL23081@codeaurora.org> References: <1442346089-32077-1-git-send-email-sboyd@codeaurora.org> <20150915155815.5a41a8dc537610ab44d8d3dc@linux-foundation.org> <20150916005053.GL23081@codeaurora.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Sep 2015 17:50:53 -0700 Stephen Boyd wrote: > > > > __iowrite32_copy() is marked __visible. I don't actually know what > > that does and Andi's d47d5c8194579bc changelog (which sucks the big > > one) didn't explain it. Apparently it has something to do with being > > implemented in assembly, but zillions of functions are implemented in > > assembly, so why are only two functions marked this way? Anyway, > > __ioread32_copy() is implemented in C so I guess __visible isn't needed > > there. > > Yeah, I didn't add visible because there isn't an assembly > version of __ioread32_copy() so far. I can remove __weak if > desired. I left it there to match __iowrite32_copy() in case > x86 wanted to override it but we can do that later or never. OK. I'd omit the __weak and __visible for now. They can be added later if someone needs them.