Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2290950pxb; Mon, 18 Jan 2021 13:40:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaDB+qnBdZtIP/9QbEbHMDyuDeiBRlOZN98r9vhvxxHLaLNgyhJK9vUeZgO3qXYcdMOKgk X-Received: by 2002:a17:906:1348:: with SMTP id x8mr1008100ejb.81.1611006014968; Mon, 18 Jan 2021 13:40:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611006014; cv=none; d=google.com; s=arc-20160816; b=0pg9hgg3Btiw29a5TNoT5wEBMW5h+d7+A9OmPnKzWLnNAxO6gqPzm08QWqoBxURUoZ N8JX8jYSNy2iCXonJalBUGQXbE9yJxgfKUJHD/qRf8LI0lLlEWWPvOOKXp5eDBEhsr2Y DmisI1TTL0GD1EL3vKTr0BUueDT6GrmuHrA3G4sVH1dP42PpwsFEth5psiXdKOZg11xJ 0qgVGh2kwTgdMxkovu37la7Z9rG5hezaMSdk3HzdlNSPnQgOe56oqFOcIkHDCcw9Y+oE vwgK3MljTWM0l5A7y05pQeirdq80ilSCOur1e9DzfQhltn7hmrjhWTiVh+ei4TR3KPM3 mSHA== 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=Ssyo+R+6zUhKCoMuQxzhClzDKEiZFFHyxW/l8YRtKXs=; b=z+Zf1MygFBN6Af7caFippo3jxQ3y8wu669A1bod5c8LNPNZpvym+fIQTBnV6XIjwZV GyY/xx/8TfiA5Vpm3n8GDMKRQWlTnSwbXugcBEp+wGU4cOnFnx3Kxo7YMeUjvrUs0aqF BiCgXGsqLLp0xrQGIkvZFZsGQD+VrWmqgcM6A8tDp/LW8/PJBAn6hFBuUkGp7gc63tcR B6btyPej57b1naSXCsEEJ4UQtLzECGY5PEGGzaqzniN0qoik//frAoxxmrI4BZxIfy3Q JMxRAauAL31OCP1Zsl5b+JK/5ps+6IKVpD4am7Eo4wICwlqgr5rM0uQgIpDsBSEx1yud +ckg== 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 m10si8096261edc.111.2021.01.18.13.39.51; Mon, 18 Jan 2021 13:40:14 -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 S2394685AbhARVff (ORCPT + 99 others); Mon, 18 Jan 2021 16:35:35 -0500 Received: from mail.loongson.cn ([114.242.206.163]:55252 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389448AbhARKDd (ORCPT ); Mon, 18 Jan 2021 05:03:33 -0500 Received: from [10.130.0.55] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxKL6hXAVgG7UGAA--.10640S3; Mon, 18 Jan 2021 18:02:09 +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> Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Burton , Jun-Ru Chang From: Jinyang He Message-ID: <78c9211d-5304-a2b6-3a94-df9b324b7046@loongson.cn> Date: Mon, 18 Jan 2021 18:02:08 +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: <20210115144631.GE15166@alpha.franken.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9DxKL6hXAVgG7UGAA--.10640S3 X-Coremail-Antispam: 1UD129KBjvJXoWxWr4fWryUAF4kZr1ktFy3XFb_yoW5WF1kpF 4qyF48Jr4DAF18Gr13ur12kF1qqw4DXr13GryjgFyUAa4xtwnYg3yvkrnxtr1kAayqg3WU WFZrGFn8C3y5XaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvIb7Iv0xC_tr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Gr0_Cr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l c2xSY4AK67AK6r4DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I 0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWU AVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcV CY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv 67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf 9x07jz7KsUUUUU= X-CM-SenderInfo: pkhmx0p1dqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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