Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933290AbcLMWJe (ORCPT ); Tue, 13 Dec 2016 17:09:34 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34838 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932434AbcLMWJd (ORCPT ); Tue, 13 Dec 2016 17:09:33 -0500 Reply-To: alex.popov@linux.com Subject: Re: [PATCH 1/2] arm64: setup: introduce kaslr_offset() References: <1481417456-28826-1-git-send-email-alex.popov@linux.com> <1481417456-28826-2-git-send-email-alex.popov@linux.com> <20161212112914.GC21248@arm.com> To: Will Deacon Cc: Catalin Marinas , Ard Biesheuvel , Mark Rutland , Rob Herring , Kefeng Wang , AKASHI Takahiro , Jon Masters , David Daney , Ganapatrao Kulkarni , Andrew Morton , Dmitry Vyukov , Nicolai Stange , James Morse , Andrey Ryabinin , Andrey Konovalov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, syzkaller , Quentin Casasnovas From: Alexander Popov Message-ID: <183ee3f1-5e2e-4512-6300-cc804e2baa4e@linux.com> Date: Wed, 14 Dec 2016 01:07:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161212112914.GC21248@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 706 Lines: 19 On 12.12.2016 14:29, Will Deacon wrote: > On Sun, Dec 11, 2016 at 03:50:55AM +0300, Alexander Popov wrote: >> Introduce kaslr_offset() similarly to x86_64 for fixing kcov. >> >> Signed-off-by: Alexander Popov >> --- >> arch/arm64/include/asm/setup.h | 19 +++++++++++++++++++ >> arch/arm64/include/uapi/asm/setup.h | 4 ++-- >> arch/arm64/kernel/setup.c | 8 ++++---- >> 3 files changed, 25 insertions(+), 6 deletions(-) >> create mode 100644 arch/arm64/include/asm/setup.h > > You could probably just stick this in asm/memory.h, since that's where > kimage_vaddr is declared and it would save adding a new header file. Thanks, Will. I'll do that. -- Alexander