From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helge Deller Subject: Re: [PATCH] parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions Date: Tue, 7 Aug 2018 22:30:53 +0200 Message-ID: <74f19f24-fc6a-748d-3778-26ee0bfb2d40@gmx.de> References: <20180801182258.17834-1-ndesaulniers@google.com> <78c667f9-5c8b-3835-83eb-4b59e27e4f7e@bell.net> <54b2139b-53d2-01c5-f240-93a692cdbc59@bell.net> <536ef1b1-cfa2-f66d-4261-fb8405964632@bell.net> <80743c1c-2a8c-7bce-2068-24c63790eba7@bell.net> <81a7e33a-0403-b6d4-fcba-c2168a608ba6@bell.net> <1d577675-c337-d433-f235-1e46e5d56d4c@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: dave.anglin@bell.net, jejb@parisc-linux.org, Nathan Chancellor , Thomas Gleixner , Pravin Shedge , Kate Stewart , Greg KH , linux-parisc@vger.kernel.org, LKML , Alistair Strachan To: Nick Desaulniers Return-path: In-Reply-To: List-ID: List-Id: linux-parisc.vger.kernel.org On 07.08.2018 20:11, Nick Desaulniers wrote: > On Fri, Aug 3, 2018 at 3:34 PM Helge Deller wrote: >> So, your patch is basically OK and doesn't break anything. >> But I agree with Dave and Andrew, that THIS_IP is ugly. > > I don't disagree, and other maintainers have remarked on _THIS_IP_ > being ugly, but renaming it en masse is a tree wide change, which I'm > trying to avoid at the moment. Understandable. > It sounds like we have a working patch? Are there 64b parisc machines > to test on, or can this get merged? Go ahead and merge it. In addition, somehow I'd prefer if there would be a way to add to include/linux/kernel.h: +#if !defined(_THIS_IP_) #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) +#endif That way it would somehow be possible to replace that label calulation by the preferable inline assembly of current_text_address()... Helge