From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by kanga.kvack.org (Postfix) with ESMTP id 568906B0005 for ; Mon, 4 Jan 2016 18:11:10 -0500 (EST) Received: by mail-wm0-f41.google.com with SMTP id f206so4593606wmf.0 for ; Mon, 04 Jan 2016 15:11:10 -0800 (PST) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com. [2a00:1450:400c:c09::243]) by mx.google.com with ESMTPS id r62si1237229wmg.121.2016.01.04.15.11.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jan 2016 15:11:09 -0800 (PST) Received: by mail-wm0-x243.google.com with SMTP id l65so446750wmf.3 for ; Mon, 04 Jan 2016 15:11:09 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <968b4c079271431292fddfa49ceacff576be6849.1451869360.git.tony.luck@intel.com> <20160104120751.GG22941@pd.tnic> Date: Mon, 4 Jan 2016 15:11:08 -0800 Message-ID: Subject: Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit) From: Tony Luck Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: Borislav Petkov , Ingo Molnar , Andrew Morton , Andy Lutomirski , Dan Williams , Robert , Linux Kernel Mailing List , "linux-mm@kvack.org" , linux-nvdimm , X86-ML On Mon, Jan 4, 2016 at 10:08 AM, Andy Lutomirski wrote: > On Mon, Jan 4, 2016 at 9:26 AM, Tony Luck wrote: >> On Mon, Jan 4, 2016 at 4:07 AM, Borislav Petkov wrote: >>> Why not simply: >>> >>> .long (to) - . + (bias) ; >>> >>> and >>> >>> " .long (" #to ") - . + "(" #bias ") "\n" >>> >>> below and get rid of that _EXPAND_EXTABLE_BIAS()? >> >> Andy - this part is your code and I'm not sure what the trick is here. > > I don't remember. I think it was just some preprocessor crud to force > all the macros to expand fully before the assembler sees it. If it > builds without it, feel free to delete it. The trick is definitely needed in the case of # define _EXPAND_EXTABLE_BIAS(x) #x Trying to expand it inline and get rid of the macro led to horrible failure. The __ASSEMBLY__ case where the macro does nothing isn't required ... but does provide a certain amount of symmetry when looking at the two versions of _ASM_EXTABLE_CLASS -Tony -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org