Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp755983imm; Fri, 3 Aug 2018 10:58:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfmoR2zBwjJDJvHifuiaGPVbSyh+/tP4udknqfpe/Zs+xNBz/i2bF7Ke7Ne9yk/um16uD3G X-Received: by 2002:a17:902:26c:: with SMTP id 99-v6mr4392377plc.341.1533319091427; Fri, 03 Aug 2018 10:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533319091; cv=none; d=google.com; s=arc-20160816; b=ijb/KT9irItEq1FhvTOV1x4hxbxchjW8ClSPWOIyeSmZkDQvoCTmeijCYrRW7ZEgCC ute83VEEYox7WsVd68ZzRAOiUuvUg5yl195SnA3yCy14y8xzBrns+vpNKDLswEA7ssBg nmTU3jCSfu9UwuqNlZqXwDBHKS7GHFN+iHFGew+Jy6rOe3VscJOgk2DESWSHmvnTo/JN uYfekMMebSlXzKrRy0SDrG0kbUudj1NKXBZOvRMT4LAamzLx8A4iXKPaNFHtZsdmEbeV KR9c1lIV1GFrPy7BWQI0By61vqYHbGNiJrO0p0WVazxccJTeYNtyrb1kxq+CMhIEeRUO hbCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=rgg83pxy6obWL3Dxox2ZjWGijg2ScufSFqUgnhjTfu0=; b=HpHniTEZVj5ADkrHK3HTp1jGEKiUFkLPSRuS7lSh8d9QKHaD1xqHXXlyJkwm+eC6St /tfpS+GTmd3S6eZtPuvPUcMTgjKkTSwuAfQch1ggmJBzMz+ojSH+sMfECB4xHh/WjpZm Cj9tOeWpx4Da+46RCU4j6kyQ5ttL2Vi2j8/fRiZFpErnRPMkWiT0klTK7ykr9VUX3pgw w1cOitqWhNzIrh9wKRmdLoMmHeBZytGt1nPg1sqLDf8RfipnBOmhJlNidb5rp1fPFNXC 9CJRCEeQ3jh3nDhNGYTuLiHJ610pYFxlrsJUxDfbuwU439fTZzKoyoQMY+W88EvK+kAW WCkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24-v6si4002897plo.159.2018.08.03.10.57.56; Fri, 03 Aug 2018 10:58:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729606AbeHCTy0 (ORCPT + 99 others); Fri, 3 Aug 2018 15:54:26 -0400 Received: from simcoe208srvr.owm.bell.net ([184.150.200.208]:43918 "EHLO torfep02.bell.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728079AbeHCTy0 (ORCPT ); Fri, 3 Aug 2018 15:54:26 -0400 Received: from bell.net torfep02 184.150.200.158 by torfep02.bell.net with ESMTP id <20180803175705.YMQI32387.torfep02.bell.net@torspm02.bell.net>; Fri, 3 Aug 2018 13:57:05 -0400 Received: from [192.168.2.49] (really [70.53.62.189]) by torspm02.bell.net with ESMTP id <20180803175705.QJXG31064.torspm02.bell.net@[192.168.2.49]>; Fri, 3 Aug 2018 13:57:05 -0400 Subject: Re: [PATCH] parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions To: Nick Desaulniers Cc: deller@gmx.de, jejb@parisc-linux.org, Nathan Chancellor , Thomas Gleixner , Pravin Shedge , Kate Stewart , Greg KH , linux-parisc@vger.kernel.org, LKML 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> From: John David Anglin Message-ID: <80743c1c-2a8c-7bce-2068-24c63790eba7@bell.net> Date: Fri, 3 Aug 2018 13:57:05 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Cloudmark-Analysis: v=2.2 cv=DZT4krlW c=1 sm=0 tr=0 a=VCUqJnZSONuD0ISaPFNHjQ==:17 a=IkcTkHD0fZMA:10 a=dapMudl6Dx4A:10 a=FBHGMhGWAAAA:8 a=hkL0fQ1ZxZnohGXfZUwA:9 a=QEXdDO2ut3YA:10 a=9gvnlMMaQFpL9xblJ6ne:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-08-02 4:31 PM, Nick Desaulniers wrote: > If I understand your point correctly, is it that you're saying that > _THIS_IP_ should be implemented in terms of inline assembly (as in > what current_text_addr() is currently)? If that's what you mean and > I'm understanding correctly, my point is that we should be preferring > the generic C implementation as that's what's being used in most > places currently, so if it was broken you'd likely already know about > it. Unless unwinding is truly broken by the additional label, I don't > think we need an inline assembly implementation of current_text_addr() > for parisc (or any arch for that matter). If we do, then it can be > localized to the parisc unwinding code, that way it can be > consolidated everywhere else for every other arch. The label breaks the unwind data, not the unwind code.  So, localizing the use of current_text_addr() to the parisc unwind code doesn't help. Personally, I prefer the implementation of current_text_addr() because: 1) The generated code is smaller, and 2) it doesn't introduce any unnecessary labels into the text. As noted, these labels can cause issues with unwinding. Dave -- John David Anglin dave.anglin@bell.net