Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp267806ybt; Tue, 16 Jun 2020 23:57:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3rYa44cF/lOAocV9Y6BgcFJHZvinM5+bWeKe+bKNgGju0q9uYwMICx5o6K6uY/6uTOMeb X-Received: by 2002:a17:906:648e:: with SMTP id e14mr6090665ejm.308.1592377027892; Tue, 16 Jun 2020 23:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592377027; cv=none; d=google.com; s=arc-20160816; b=jOcYWaYUyG4ZLlLnBtRLtyRJ2wa9uvH8YqZpfapdpLwcMW5f6xDy6852mtJfdwFGFv itNXZBKdhYBV/B9wuMMp3Wb8hFXwjzZU0fVwMJpVkBIko07AKuvHk38qGuP2Z0chwXlb ajTQv2LPfZQBs+NkLH/PGmRJOc0kDMfUOzVzLjjlkKigMAuWFmrwJ+lONugszvHvb7Pu dPRh96d4p2zuDnJfgDH8l6uuyEECDuJxQGHHL8VhxpOaIwA4fIVINu2QH3s+WCyTFWee yIVWocM3S0fHsZaOyYOQhMrDeGks5HkHcaxFlthuG+sMkDP7MNLciPN13vMjd5aMiVOA Np5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=I82Xorrr1XjM6lBWAwGlE+SKyRYHFU9LBuME+jptnVI=; b=Uqp0m+Zdu3Vua9kVfs6JHa3yjkqK60aaRpD4Hc7OC4dBTMgiuXJp8cdsyR8RRvtswO ujuopZK/M3m+g2mq26Eb+GT8cAXVwyjUPFGQvk13fsWhRa27ciyp3ziiZY0AirhmGoN3 txfaYjjCXY7mSS9X+YKdC8ePE+auOpFnxkZRKT6/YTmthFGeZLRdcWWJzsTNHPVf36vL 9VwWe9ZkH5zw9/H1sVMfpA3A0dWOlb+T+kmKzUsax55Pm1ZYsvdVGSirri0UoxfjsmYF 2PjMImj+g00LiWj7KgEscW9L+G/Lvo1nUJd3CCvJsGe+TG1W/5yDz+ow/jWqy4cZz0tK gUcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h3vQE7ED; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp9si16267814ejc.698.2020.06.16.23.56.45; Tue, 16 Jun 2020 23:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h3vQE7ED; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726480AbgFQGyy (ORCPT + 99 others); Wed, 17 Jun 2020 02:54:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:54164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgFQGyx (ORCPT ); Wed, 17 Jun 2020 02:54:53 -0400 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5BDB52080D; Wed, 17 Jun 2020 06:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592376892; bh=Q+i1liwJyGwsrJ2eZGcJyopPeA/WKtoMmwsV0guZ5Vk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=h3vQE7ED+NmicrWYNJ2GGVekPeVM27s+Ue5MeVmVowIspYddvu9hxfwgV9nRVXwq+ CirT9FkG/gIJXURFJm8AtNidfPKLepV5v/XFfCGCPCVrV+GJ98rsqe5RiOm4nYwP3f ivyALTaiyDqnAlK+krOmVfn3ufhQuTkWeKgtjzgQ= Received: by mail-lj1-f173.google.com with SMTP id z9so1454325ljh.13; Tue, 16 Jun 2020 23:54:52 -0700 (PDT) X-Gm-Message-State: AOAM533/Wer+/eIKkhLZoG8onOqyWjboY5VNjkb43Rmt+8c3koTsij86 6a0cnbuU/SFH1S+PYdAiLUIZMlV1zrlRkqbSN1g= X-Received: by 2002:a2e:7105:: with SMTP id m5mr2986615ljc.79.1592376890702; Tue, 16 Jun 2020 23:54:50 -0700 (PDT) MIME-Version: 1.0 References: <20200610153935.13794-1-tklauser@distanz.ch> <20200615084314.rwabrkyy7wwgwdxc@distanz.ch> In-Reply-To: <20200615084314.rwabrkyy7wwgwdxc@distanz.ch> From: Guo Ren Date: Wed, 17 Jun 2020 14:54:39 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] csky: remove unusued thread_saved_pc and *_segments functions/macros To: Tobias Klauser Cc: Mao Han , linux-csky@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I can do it. On Mon, Jun 15, 2020 at 4:43 PM Tobias Klauser wrote: > > On 2020-06-13 at 10:42:07 +0200, Guo Ren wrote: > > Acked-by: Guo Ren > > Thanks for the Ack. Are you taking this patch through your own tree or > should I directly submit to someone else? > > > On Wed, Jun 10, 2020 at 11:45 PM Tobias Klauser wrote: > > > > > > These are used nowhere in the tree (except for some architectures which > > > define them for their own use) and were already removed for other > > > architectures in: > > > > > > commit 6474924e2b5d ("arch: remove unused macro/function thread_saved_pc()") > > > commit c17c02040bf0 ("arch: remove unused *_segments() macros/functions") > > > > > > Remove them from arch/csky as well. > > > > > > Signed-off-by: Tobias Klauser > > > --- > > > arch/csky/include/asm/processor.h | 6 ------ > > > arch/csky/kernel/process.c | 10 ---------- > > > 2 files changed, 16 deletions(-) > > > > > > diff --git a/arch/csky/include/asm/processor.h b/arch/csky/include/asm/processor.h > > > index 24442d8e86f9..4800f6563abb 100644 > > > --- a/arch/csky/include/asm/processor.h > > > +++ b/arch/csky/include/asm/processor.h > > > @@ -82,12 +82,6 @@ static inline void release_thread(struct task_struct *dead_task) > > > > > > extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); > > > > > > -#define copy_segments(tsk, mm) do { } while (0) > > > -#define release_segments(mm) do { } while (0) > > > -#define forget_segments() do { } while (0) > > > - > > > -extern unsigned long thread_saved_pc(struct task_struct *tsk); > > > - > > > unsigned long get_wchan(struct task_struct *p); > > > > > > #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) > > > diff --git a/arch/csky/kernel/process.c b/arch/csky/kernel/process.c > > > index 8b3fad062ab2..3da63cf0bfde 100644 > > > --- a/arch/csky/kernel/process.c > > > +++ b/arch/csky/kernel/process.c > > > @@ -30,16 +30,6 @@ asmlinkage void ret_from_kernel_thread(void); > > > */ > > > void flush_thread(void){} > > > > > > -/* > > > - * Return saved PC from a blocked thread > > > - */ > > > -unsigned long thread_saved_pc(struct task_struct *tsk) > > > -{ > > > - struct switch_stack *sw = (struct switch_stack *)tsk->thread.sp; > > > - > > > - return sw->r15; > > > -} > > > - > > > int copy_thread_tls(unsigned long clone_flags, > > > unsigned long usp, > > > unsigned long kthread_arg, > > > -- > > > 2.27.0 > > > > > > > > > -- > > Best Regards > > Guo Ren > > > > ML: https://lore.kernel.org/linux-csky/ > > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/