Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1919252pxb; Mon, 18 Jan 2021 03:34:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9n6NK7SoHvyoHlwDwUo6OItzv6paOXSoa7K8bNhI6JDxPxNrxWeoUTYP8AZPG3OkoPKvT X-Received: by 2002:a50:d80c:: with SMTP id o12mr18227486edj.338.1610969651429; Mon, 18 Jan 2021 03:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610969651; cv=none; d=google.com; s=arc-20160816; b=nTJMqhUHJQrEazd/kCcrN5ooHPBCj2m1fIddzUuFAZVwWyGRYRiNzudsHwE9lX1Czl q8aBDIadLe25T/iOUtTsOT/a/lGrTaNSnWC3EGtwCL4oeAaPVpcqJI4H6AQiPvLFFJcU ByG6LhdvXOIvmJFuQet9/VDcqBnstpg9R037Obn4fPKRlNPy9DMUrsZpORtvrkALUXWs aQ+CQESe42NyZocflmiCvHK3HpWbSPNHIcTTLvmJs/6CDOp66kCxw2UQbHwU9iDbB2is UQZbJbgxI1xxnkZt7M6V/SlJ7hppPUvw4udLEPYoXTl9s8es/pZU3ObxYvfcsNMBnh6Q /uQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=VN+l91+JqnmXFc5uubgAz+DTfH4lQxSA5dkM5ELPeds=; b=G5eFhhcN1LUa9gXBZe3fkHIqoB3SAHaZt6fQhh8apwZmwCPUPQ7kw6a73BOKoh4pge rQbhLeARfg318KrBqVol6aKaEpNscgJvT491plZJG439p7gL7czcczuaCa34s08XYtQK UNt4t3MURqZDj4x44SYvH/CZuQgYd55Ixfh/UWA7NABxaQYsHazig6YTHshTtve5sKcC k65qIeq62BqBOZzoeBU5A6sT0tBzSZUAqVfTji56qLLd8yFcgNi5WiI/hkzppjrXBa8U LNjU4gzP/ZBP82HYitPTUNJSiZM6Ksiv+xGaHtCfW9a4s9z9DWfZgYG7RN1Y3F6eXnoK 92uQ== 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 dn22si8259081edb.175.2021.01.18.03.33.48; Mon, 18 Jan 2021 03:34:11 -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 S2390291AbhARL3e (ORCPT + 99 others); Mon, 18 Jan 2021 06:29:34 -0500 Received: from mail.loongson.cn ([114.242.206.163]:43916 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390252AbhARL2J (ORCPT ); Mon, 18 Jan 2021 06:28:09 -0500 Received: from [10.130.0.55] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx++SOcAVgx78GAA--.11326S3; Mon, 18 Jan 2021 19:27:10 +0800 (CST) Subject: Re: [PATCH 1/4] MIPS: process: Reorder header files To: Thomas Bogendoerfer 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> Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Burton , Jun-Ru Chang From: Jinyang He Message-ID: <5c7740e2-8a9f-42be-6f36-62398b96179b@loongson.cn> Date: Mon, 18 Jan 2021 19:27:09 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <78c9211d-5304-a2b6-3a94-df9b324b7046@loongson.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9Dx++SOcAVgx78GAA--.11326S3 X-Coremail-Antispam: 1UD129KBjvJXoWxuFyUXr1rAFyxArykJr1kKrg_yoW5AFWfpF 4qyF48Jr4DAF18XF13ur12kF1qqws8Wr1fKryjgF1UAa42ywnYq3yvkrnxtr1kZayqg3WU WFW7GFn8Cws8XaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvIb7Iv0xC_tr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8JVWxJw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzVAYIcxG8wCY 02Avz4vE14v_Gw4l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV Aqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r12 6r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x kF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE 14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf 9x07jxgAwUUUUU= X-CM-SenderInfo: pkhmx0p1dqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping? On 01/18/2021 06:02 PM, 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 > #include > * #include arch_initcall > * #include kallsyms_lookup_name > * #include __kernel_text_address > #include > #include > * #include nmi_cpu_backtrace > * #include ADDR_NO_RANDOMIZE > #include > * #include PR_FP_MODE_FR > #include > * #include PF_KTHREAD > * #include in_sched_functions > #include > * #include task_stack_page > #include > #include > #include > #include > #include > > * #include current->thread.abi->vdso->size > * #include ALMASK > #include > #include > * #include dsemul_thread_cleanup > * #include init_dsp > #include > #include > * #include lose_fpu > * #include mips_instruction > #include > * #include on_irq_stack > * #include get_irq_regs > * #include KU_USER > #include > * #include is_msa_enabled > * #include ST0_CU0 > * #include VDSO_RANDOMIZE_SIZE > * #include MIPS32_EF_R1 > #include > > > Here about this file config is: > > Enable: > CONFIG_HOTPLUG_CPU, CONFIG_MIPS_FP_SUPPORT, CONFIG_STACKPROTECTOR, > CONFIG_CPU_LOONGSON64, CONFIG_KALLSYMS, CONFIG_64BIT > > Disable: > CONFIG_CPU_R3000, CONFIG_CPU_TX39XX, CONFIG_MIPS_MT_FPAFF, > CONFIG_CPU_MICROMIPS > CONFIG_MIPS_O32_FP64_SUPPORT, CONFIG_32BIT, CONFIG_MIPS32_O32 > > 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? > > Thanks, > Jinyang