Received: by 10.223.185.116 with SMTP id b49csp4860541wrg; Wed, 7 Mar 2018 02:12:28 -0800 (PST) X-Google-Smtp-Source: AG47ELuTMdLk/De4KGdPgO0yqteSDkQs0x/YUQg22fBkmJg9t1tFCSINArUHKVX6qAM76lDasB2e X-Received: by 10.98.201.88 with SMTP id k85mr7227403pfg.9.1520417547958; Wed, 07 Mar 2018 02:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520417547; cv=none; d=google.com; s=arc-20160816; b=B7TfH6a45N7sCK8yZjAenETL2OFcpOVFeksLL12MP5vXLdCok04Y41VEV5O7lM/KFs WPSpxFLm4klQZERNdK5Ve3wvCybkDzz8ieGzT74hiWMIpw6MBadyNrDIHqUnSNnLMEdo xJeOVx11TznXp1rKE57rGk3jz9P8IddFzeP/cA3wEM9+7q1Fcqd1hEsNHfepuIp9hUu1 yAv6jKO7cQhECqii60uCMtQGcbxWMZbIVrjm1fmFfNtdm+JlJAJjZLDAGxgveTJ0JAQy Mb76WFVfst2YkJ+rebcKeo9CwUKMFCXwAOn3PHGuOwzMmiEM6P+NQ/90b4puhC6DNz5T 4oyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=BXmvaSIphW6zKty2U3eHJcP6mnkAAfcCzu09HeQZu34=; b=zvyobTOaz65QRlGnKZgXti8U/biGKC6eFyecIbbl/7o2PNWkE3QkjoXNJA3IwrptSG lYr8VruSEVsOCKfSoF6vDckiuIt/IvdA0w+Lnq54yGfXbYImjp/TQ6+gQYrS7b4G+Da0 fLWzIKmmU4ir53KFKowLNUcJL9Q0tVEOi93N7hmpbLNnZozIXwikjWPd/EGbG6hE4kL3 dNjIncisc/327cYeM4YCFO+iJR4R4sO+3eOdyOzOwFTG7jr+OG+ZDpcFJzbeyDIjtjOB 8VrAMjoWUgueoemUdoPFIBaLWj0D2onhCHzQedIgMt3mNp3ALGw6hdoOguYn/9MykWMz lQ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r2UeQOq7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e67si4823455pgc.274.2018.03.07.02.12.12; Wed, 07 Mar 2018 02:12:27 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r2UeQOq7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751322AbeCGKLS (ORCPT + 99 others); Wed, 7 Mar 2018 05:11:18 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:46871 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751127AbeCGKLP (ORCPT ); Wed, 7 Mar 2018 05:11:15 -0500 Received: by mail-pf0-f193.google.com with SMTP id z10so739030pfh.13 for ; Wed, 07 Mar 2018 02:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=BXmvaSIphW6zKty2U3eHJcP6mnkAAfcCzu09HeQZu34=; b=r2UeQOq7f77Nz4IeQo6w5WS26Tl/Ss4xnqtw5wl5aDjPZVD5Pfr9Qj9NqPNlpHowym CWDZWM6hMEeVX08Tw+quNut3UuKQMJ13EaQaJ3QlKnIvysczv+HNdsK5yzYdBLiRvufi YnJvHFh+uAAGaOOgPAkeynG8A8byfiUXhYfREmduiapezuAN6a9xuUevAnWwyCrOwIuk CUae47EmoxUJlHUVZFqh75g5kcMW8fQmmdJ3vW8wR2xTlg+TFDB41WGvzftrfGcECvUP 3GRejjrauhrLcHEOruKwDBgn6AOmFqYr4DcMUjGbktFW6S1CQUuii81GaN66sE2ws8JS ZWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=BXmvaSIphW6zKty2U3eHJcP6mnkAAfcCzu09HeQZu34=; b=e21h0+Gqrtpw5jnVSkkr7a6gvH23SfLQqUIWSaBQy2hdy8oZVdiuyfZThK1p1NBZk7 ws8vqRVkoFtgH7rkKhzxAWplIfqRI/7wyeWVogUKziTkfaG2YJAIFs90l9QvU5EzG/cV LOz73pTbqZZtx/DdeqJW93SnR4Vl3AjgZbQBkwPDIjwUrKfoS/vowyO/YdtmTRyhFbh3 E4k9y+UMthEzWv2hk3XKXK0KN6AW/LbdsQ/gb0ZAxV24uWTDcT0Qq8JOGXzN36QFWRRJ Peay8s4WgRp4nfkiEquWfvw3eN5GRd5GrOw1xcdjaMm3zbw7fWIF5yk66S77DD3FSuR8 Jtug== X-Gm-Message-State: APf1xPD2ds8ZXW/y6LkO+EFT1zcEYkOwGv4uAYFovr8gmvNhAMDAxB6d HMorFx1+pamxnVF6RdZ3WpVRfQ== X-Received: by 10.99.66.135 with SMTP id p129mr18039576pga.220.1520417474956; Wed, 07 Mar 2018 02:11:14 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id 202sm27198369pgd.32.2018.03.07.02.11.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 02:11:14 -0800 (PST) From: Greentime Hu X-Google-Original-From: Greentime Hu To: linux-kernel@vger.kernel.org, arnd@arndb.de, greentime@andestech.com, green.hu@gmail.com, sergey.senozhatsky.work@gmail.com, sergey.senozhatsky@gmail.com, sfr@canb.auug.org.au, peterz@infradead.org, pmladek@suse.com Subject: [PATCH] nds32: To use the generic dump_stack() Date: Wed, 7 Mar 2018 18:10:11 +0800 Message-Id: <20180307101011.28689-1-greentime@andestech.com> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the generic dump_stack() instead of nds32 one because they are doing the same thing. Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/kernel/traps.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c index 8828b4aeb72b..6e34eb9824a4 100644 --- a/arch/nds32/kernel/traps.c +++ b/arch/nds32/kernel/traps.c @@ -156,18 +156,6 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg) pr_emerg("\n"); } -void dump_stack(void) -{ - unsigned long *base_reg; - if (!IS_ENABLED(CONFIG_FRAME_POINTER)) - __asm__ __volatile__("\tori\t%0, $sp, #0\n":"=r"(base_reg)); - else - __asm__ __volatile__("\tori\t%0, $fp, #0\n":"=r"(base_reg)); - __dump(NULL, base_reg); -} - -EXPORT_SYMBOL(dump_stack); - void show_stack(struct task_struct *tsk, unsigned long *sp) { unsigned long *base_reg; -- 2.16.1