From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752682AbcAYFqH (ORCPT ); Mon, 25 Jan 2016 00:46:07 -0500 Received: from ozlabs.org ([103.22.144.67]:57682 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbcAYFqE (ORCPT ); Mon, 25 Jan 2016 00:46:04 -0500 In-Reply-To: <1453361708-19422-1-git-send-email-aik@ozlabs.ru> To: Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Alexey Kardashevskiy , Paul Mackerras , linux-kernel@vger.kernel.org Subject: Re: [kernel] powerpc: Make vmalloc_to_phys() public Message-Id: <20160125054603.5D55B140326@ozlabs.org> Date: Mon, 25 Jan 2016 16:46:03 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > This makes vmalloc_to_phys() public as there will be another user > (in-kernel VFIO acceleration) for it soon. > > As a part of future little optimization, this changes the helper to call > vmalloc_to_pfn() instead of vmalloc_to_page() as the size of the > struct page may not be power-of-two aligned which will make gcc use > multiply instructions instead of shifts. You should also mention why you need to export it, presumably because whatever new user you have in mind can be built as a module. Acked-by: Michael Ellerman cheers