From patchwork Wed Aug 1 18:29:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 10552801 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 468AD15E9 for ; Wed, 1 Aug 2018 18:30:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C0992BA9C for ; Wed, 1 Aug 2018 18:30:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E68A2BA9E; Wed, 1 Aug 2018 18:30:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7AD82BA9C for ; Wed, 1 Aug 2018 18:29:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731399AbeHAUQy (ORCPT ); Wed, 1 Aug 2018 16:16:54 -0400 Received: from mail-it0-f74.google.com ([209.85.214.74]:37702 "EHLO mail-it0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbeHAUQx (ORCPT ); Wed, 1 Aug 2018 16:16:53 -0400 Received: by mail-it0-f74.google.com with SMTP id r10-v6so52894itc.2 for ; Wed, 01 Aug 2018 11:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=E0pOoV86/sap3VuxCkq6uFz8gZPwpjEJfKICnjceoZ0=; b=aqfOhZ6FRy2ioyzCjxdL/cLCDqaSL9SwI6gd2LaExafojxciUD8Jgnoqu1+28Qsbmf vWT0+gxOr8DWuxGI3uR9zXjyBkjklYQDiG/6/r/dYNzcfzixuQ34tjTQ/LV3Jkg4d9q3 Iqpt+4T+XQsZseRpWyPTIc5m3dV9c+LaWxm6AVJvKzDyz5mdCjVqPH7kIZtqsx/DYOHx dsqyviNp1fdYSebgZObaEp1asCj6e5D2bSFQAp53hxF6Y2SpEdFpjIZpbLRxvREV/Zd1 SNKjGWQyne/lZs5jke14WnP2wQ1jduAiRDtWLuP0JKcE6LQ79o+5lhnxZICFitlJPuhS 1AgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=E0pOoV86/sap3VuxCkq6uFz8gZPwpjEJfKICnjceoZ0=; b=RWbsA4lgKtyuuYeWWWIcfToKqLP17Pv8YbL/rzpJjnEruSaRBSWOovQ04VWkc9e61s F2er7v/gPdKAR4OPMXJxl79FhN2pcEB38jKATUZAaVk0k4q0uOVQyPTpnGv9eoH8C+vD yBgCekza91+5P8SHePQSA84gWTMwJZa2ccJmBJREfVSl9KakWvaiHvFeItQgC4wa22JJ bA/2+W5uWi5CzGCfarCWBcoH6p386anU2faDlrdtBMOA3PuZ7bcC5Vtfs7ANL9CzJyDo I3FkzpjKfrDrjQD2AzfKsRFCLP8bV8hEz/iQSjG0Qsj5luHBb4IldVZ3xW5EvBXwLGDQ ocFA== X-Gm-Message-State: AOUpUlHtL32g+5za7iTJz+yLwc/nWVh/FYOmtdL/yAOZ9p+YgGGv8zL9 slcgQwj4MtLs/yC2JsOL9eLMhEIFHpkLmdwLLhw= X-Google-Smtp-Source: AAOMgpcc9L8E7dW6ed5fUeis3PaULv2qAfm2LhAIze+syT3PLNXxiTeEPQhOWjaxeiVLdCiF+vQhwVePxvzbS69twF4= X-Received: by 2002:a6b:6310:: with SMTP id p16-v6mr10561579iog.43.1533148191800; Wed, 01 Aug 2018 11:29:51 -0700 (PDT) Date: Wed, 1 Aug 2018 11:29:43 -0700 Message-Id: <20180801182943.22176-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.18.0.597.ga71716f1ad-goog Subject: [PATCH] sh: dwarf: prefer _THIS_IP_ to current_text_addr From: Nick Desaulniers To: ysato@users.sourceforge.jp, dalias@libc.org Cc: akpm@linux-foundation.org, alexander.levin@verizon.com, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As part of the effort to reduce the code duplication between _THIS_IP_ and current_text_addr(), let's consolidate callers of current_text_addr() to use _THIS_IP_. Signed-off-by: Nick Desaulniers --- arch/sh/kernel/dwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c index 1a2526676a87..bb511e2d9d68 100644 --- a/arch/sh/kernel/dwarf.c +++ b/arch/sh/kernel/dwarf.c @@ -599,7 +599,7 @@ struct dwarf_frame *dwarf_unwind_stack(unsigned long pc, * time this function makes its first function call. */ if (!pc || !prev) - pc = (unsigned long)current_text_addr(); + pc = _THIS_IP_; #ifdef CONFIG_FUNCTION_GRAPH_TRACER /*