Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2306554pxb; Mon, 18 Jan 2021 14:14:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyySJDwXOztPPQg4tyTP8khX86Orga5wdfv28/8PVMDY0UY/AP6F9cOMme0XG5z8bGc/3w7 X-Received: by 2002:a17:906:46d3:: with SMTP id k19mr1072286ejs.546.1611008077125; Mon, 18 Jan 2021 14:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611008077; cv=none; d=google.com; s=arc-20160816; b=du8luIugNiCRdAcxLyOxuV+sg2UQld/BpR3d4a5qCgb52EQEsHciLbY0YSckW+610z jzcJc0CjgvkqkL4ciS/FCq1p00iliCm97v9E74EZVYVb+MdtI9aRFsnklk+usIQttLvB R9AtXAJXBvJrFOWlZgktRBvBAXYIihV09f4uNG3bw/o8B2Ki69XDCnVwRn7U8tOUlPpg XWGLsssbAny5QWt85BZPf/YM4vpvE3uswjyAnZRllDlNgtsH/iEb6Jfmc7R9PCDclKrJ aK489rO5E98JcFdqihLxvdRZDU6qD4WoccIiOTO8+vjyc45pMyB0Dh454/EvQuCSLucv yitg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8D3aRT+eoTPX8Z+uDSDswojV/2aTjrytpCqokVYNE4I=; b=dkWk5mofiMIGHFL772xAG8r37EuPqsdJrv12s4A/IgHl7koiZCCB0T4mVOiZgjnN4U mL3oXJlPDaPFiRrLytbL9TO+zaCZaLpQo9Zk7KMv2i3ONyAMEIfuK3Ad/ZH9D5PK7tCu Ik95NWBSLYoaIKs1SZzMdM37iB6YltY6iJTl0IYg5GxvYpWrsdlKNGWkGQGaCr6N6Y+v b2vh3o2GLp6PdpLzooJScwwPTeGGdfMM0pTanfX2qVu8DiZIAZzUf8/cLFMXCBX2UNaz zNqqk/0SsV9PH9ADLDzsprm2/BKJiuFktHwLmHDZK+ufK7e30PVdgJd1d6ZfU7kbqZgl /XCw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr20si1641361ejc.23.2021.01.18.14.14.11; Mon, 18 Jan 2021 14:14:37 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387557AbhARWMk (ORCPT + 99 others); Mon, 18 Jan 2021 17:12:40 -0500 Received: from elvis.franken.de ([193.175.24.41]:34741 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732848AbhARWMi (ORCPT ); Mon, 18 Jan 2021 17:12:38 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1l1cke-00048Q-00; Mon, 18 Jan 2021 23:11:56 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id A6B9DC09A7; Mon, 18 Jan 2021 23:11:37 +0100 (CET) Date: Mon, 18 Jan 2021 23:11:37 +0100 From: Thomas Bogendoerfer To: Jinyang He Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Burton , Jun-Ru Chang Subject: Re: [PATCH 1/4] MIPS: process: Reorder header files Message-ID: <20210118221137.GA5818@alpha.franken.de> References: <1610454557-25867-1-git-send-email-hejinyang@loongson.cn> <1610454557-25867-2-git-send-email-hejinyang@loongson.cn> <20210115144631.GE15166@alpha.franken.de> <78c9211d-5304-a2b6-3a94-df9b324b7046@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78c9211d-5304-a2b6-3a94-df9b324b7046@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 06:02:08PM +0800, Jinyang He wrote: > On 01/15/2021 10:46 PM, Thomas Bogendoerfer wrote: > > > On Tue, Jan 12, 2021 at 08:29:14PM +0800, Jinyang He wrote: > > > Just reorder the header files. > > This alone isn't worth a commit, IMHO. I bet there are lots of includes > > no longer needed, so removing and sorting them is ok for me. > > > > Thomas. > > > > Hi, Thomas, > > Thanks for your advice. I analyzed majority of the symbols in this file. > The following are examples of header file references: > > Space indicates that it cannot be found. (Maybe I missed it.) > > Header files Examples in this file > #include > * #include get_online_cpus > * #include EOPNOTSUPP > [..] thank you for doing this. > By including only these header files which marked by '*', I have been able > to compile and use certain functions (unwind_stack) normally. So are other > header files no longer needed? > > In addition, includes , and > includes . What should we do? send a patch, which deletes the not needed #includes ;-) Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]