Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1726520lqa; Mon, 29 Apr 2024 18:24:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYUYGehFYYL79nIyegmCBfKRnkk4zZpNyC8tmKafmo5pr4WRMPp8JckmnEFwGoZ5TGMTvuOKlMMwJO7CZjwo35iJefFKOGwK4TJBkKvQ== X-Google-Smtp-Source: AGHT+IENI9R4oEDjCcc6q93PGcUV9pw6H4tITCwxsKpu/4bhGeog4o/WVAVV67YhyjSgg3z6jF5Y X-Received: by 2002:a05:6359:e87:b0:186:41ec:cbc3 with SMTP id hr7-20020a0563590e8700b0018641eccbc3mr14003521rwb.8.1714440270683; Mon, 29 Apr 2024 18:24:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714440270; cv=pass; d=google.com; s=arc-20160816; b=z06b3ANCy648nLD+qee4bEsjZGT/qLBRYWRIr0802keyEeVUdZ4v8GXohmNTqbjZgp S37TXLatoiO+6xSW+6PzoSjLpqh1eqkJ6WX7zvSLHKcleYdiqdrsvFPuF83XeLF05EzR psc/FPo+n8kfVj+CLUsos1RvRKufWhVGZ1+lsnU3eQXTS+Gg9pVQwLJrP8J/SOA+Ya55 aPFRy1Lr26GQt2RcQ5YGryMOCv/SxN7qdaViPcVLPwx5xoc+FEFEW0jRwCnabSjBMGr+ 2OBJ+epTTOA6PLDoUlTPifmNIQsWKl4wUmpC3yQhEGXGNqzEEvv/rMKuxE8Ni4Wt31Uw h0ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=efE5nHlj5UYGL54R9+eWOGswekpP2uN9kk9gnkzAlWQ=; fh=ioKjXWiDsmGLNLPCPUXqaTOVR8x3p4UlpCYxNPWJUBE=; b=z0OS+JCZWEMWbe5yhhCQ4EG07Z0oUlHkmvq5vYvhUyg20ZUsYYyDpHlrJ4aXmBobl+ 5e00qI75LjOpmi5rXZQpyrgdM/rv4KSmMVQeozrp2n+ZFCpXpRuivlG2EcqWIRY1AW3Y jpYjdTnLDLDBNVF4LKnkNQKu8WDw3WFpxx6iGwy/cK0ODb3XJ7IoMiysWilm91OvKD8T 5Jolb07buf1MoyWhYlt7vExA5ebg/3xEiGW2tI1Qu0vvdFqxweGid3ypj/jcVEc0Dqag TLpM+Gg+kwRDaWgVwrARMcIs3EMhmhcmmOhaE31wsuZO49jtth5+gVNAP5u1xFgh+El0 w0Mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-163224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t23-20020a656097000000b005fd0a5cc54bsi16532543pgu.220.2024.04.29.18.24.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 18:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-163224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D8EB32842A5 for ; Tue, 30 Apr 2024 01:24:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24DE68BF6; Tue, 30 Apr 2024 01:24:07 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B5101FB2; Tue, 30 Apr 2024 01:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714440246; cv=none; b=l+y3ittb/d7tP4Crc7LYKm1e8U2A5YRxsZcOSo2s8SgrkvglfRUk/tEBQNMCWa9T5QGduhUyAYQmpM1raQnRsnkfGKsiSUbDRoLBsvf9bs0INLDDfJtN2eO3BgISMwVxFhwoRkZoTz8HdOSBkXJ5zkf29TyQPGv8QDv51DKOXHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714440246; c=relaxed/simple; bh=3OdmIOxGoAg3oqSjkLgmDOCC67m6RWSe7VeSKbm1z1c=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=q6J8Mb9/oG5p3R9Uf7jQ+bVbNZmrNtZ0wlnZooUgkgCnUcYeUhhKcvqNtjOQEQfEgKWwWMTTOWAHsLHpV6wpF2zjnlJP+ryqVRjBZ37TsnNwDN/vkD6fhFJPYFAjFumz96lRk/x6BYp0rRfNM2hyk2bciOOP4SNU8eLrYz7Nm2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4VT2Sz3jgCz1RDTg; Tue, 30 Apr 2024 09:20:51 +0800 (CST) Received: from kwepemi500008.china.huawei.com (unknown [7.221.188.139]) by mail.maildlp.com (Postfix) with ESMTPS id 0B58B18005F; Tue, 30 Apr 2024 09:24:01 +0800 (CST) Received: from [10.67.109.254] (10.67.109.254) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 30 Apr 2024 09:24:00 +0800 Message-ID: <6844a9d8-f1a7-738e-105c-e9c44f5c11f4@huawei.com> Date: Tue, 30 Apr 2024 09:23:51 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH -next] proc: Remove unnecessary interrupts.c include To: Andrew Morton CC: , , , , , , , References: <20240428094847.42521-1-ruanjinjie@huawei.com> <20240429093549.f2b9c670f383bed627022f31@linux-foundation.org> Content-Language: en-US From: Jinjie Ruan In-Reply-To: <20240429093549.f2b9c670f383bed627022f31@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500008.china.huawei.com (7.221.188.139) On 2024/4/30 0:35, Andrew Morton wrote: > On Sun, 28 Apr 2024 17:48:47 +0800 Jinjie Ruan wrote: > >> The irqnr.h is included in interrupts.h and the fs.h is included in >> proc_fs.h, they are unnecessary included in interrupts.c, so remove it. >> >> ... >> >> --- a/fs/proc/interrupts.c >> +++ b/fs/proc/interrupts.c >> @@ -1,8 +1,6 @@ >> // SPDX-License-Identifier: GPL-2.0 >> -#include >> #include >> #include >> -#include >> #include >> #include > > Within limits, we prefer that .c files directly include the headers > which they use. If interrupts.c uses nothing from these headers then > OK. If, however, interrupts.c does use things which are defined in > these headers then the inclusion of those headers is desired. Thank you, sorry I'm just learning the rules now.