[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f0499858-1c3c-5a51-27c6-d3f5e82d1173@nod.at>
Date: Tue, 18 Apr 2017 09:44:20 +0200
From: Richard Weinberger <richard@....at>
To: Matthias Kaehlcke <mka@...omium.org>,
Jeff Dike <jdike@...toit.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H . Peter Anvin" <hpa@...or.com>
Cc: user-mode-linux-devel@...ts.sourceforge.net,
user-mode-linux-user@...ts.sourceforge.net,
linux-kernel@...r.kernel.org,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: Re: [PATCH] um: Include kbuild.h instead of duplicating its macros
Matthias,
Am 17.04.2017 um 22:37 schrieb Matthias Kaehlcke:
> El Mon, Apr 03, 2017 at 12:54:58PM -0700 Matthias Kaehlcke ha dit:
>
>> Signed-off-by: Matthias Kaehlcke <mka@...omium.org>
>> ---
>> arch/x86/um/shared/sysdep/kernel-offsets.h | 9 +--------
>> 1 file changed, 1 insertion(+), 8 deletions(-)
>>
>> diff --git a/arch/x86/um/shared/sysdep/kernel-offsets.h b/arch/x86/um/shared/sysdep/kernel-offsets.h
>> index 46a9df99f3c5..7e1d35b6ad5c 100644
>> --- a/arch/x86/um/shared/sysdep/kernel-offsets.h
>> +++ b/arch/x86/um/shared/sysdep/kernel-offsets.h
>> @@ -2,16 +2,9 @@
>> #include <linux/sched.h>
>> #include <linux/elf.h>
>> #include <linux/crypto.h>
>> +#include <linux/kbuild.h>
>> #include <asm/mman.h>
>>
>> -#define DEFINE(sym, val) \
>> - asm volatile("\n->" #sym " %0 " #val : : "i" (val))
>> -
>> -#define BLANK() asm volatile("\n->" : : )
>> -
>> -#define OFFSET(sym, str, mem) \
>> - DEFINE(sym, offsetof(struct str, mem));
>> -
>> void foo(void)
>> {
>> #include <common-offsets.h>
>> --
>
> Ping, any comment on this patch?
Looks good, nothing exploded while a quick test.
I'll queue it for the next merge window. :-)
Thanks,
//richard
Powered by blists - more mailing lists