From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3E48F1DA23; Mon, 29 Apr 2024 16:35:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714408552; cv=none; b=fLduC/q9VNRWxIOPl89w/Ea98oa+fxm/83T9Fp7DF2jixqXu/je9RNXIkZJ8siVpPSz5orQmScRYnrM0z/P20WKoSfTGrM9RLDMXVkjlPPDJJjNNfsbzGfB01wcLt2XvjkI/YLTcpZDuHHhZJQxPSWTErtArFmrWNFBV8MrLoO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714408552; c=relaxed/simple; bh=GGjBagnQCW0lryPvoeTSTgt4dXQUdO+O5KSvIq+GuEY=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=Xqy5fFLVeXz3v77OCM5RMoGlqrwDjeFz2mgW5uBcJqdGp01KHQgXIMlCOLNSQBMseI3UfF5oB5bWmaH9g9pwWFcEnFFDBufMunuieW5ZzcBP/JOX/4Z/s1yZWyA+gRPSB6dZ2yygEpFseMRyRrQ/Nz4oOGKltqX+i5SZHbpzTMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=pEZsWNN+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="pEZsWNN+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91403C4AF14; Mon, 29 Apr 2024 16:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1714408551; bh=GGjBagnQCW0lryPvoeTSTgt4dXQUdO+O5KSvIq+GuEY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pEZsWNN+jofkwx7AqvwnZYcu3Y5URHI9av2fEOe5mrTetGwbuTuC/wjmmulYJX9o5 dK0Y9fbyU1a1aZ6rsc5zv67C8ytCOP1BMmo0Ng70n6l64hcTZbrmZ41/e1k81+MP6J CTh4qVrdIis+99pFCJ+S8Htw9utBNT8Fr6JdTPR8= Date: Mon, 29 Apr 2024 09:35:49 -0700 From: Andrew Morton To: Jinjie Ruan Cc: , , , , , , , Subject: Re: [PATCH -next] proc: Remove unnecessary interrupts.c include Message-Id: <20240429093549.f2b9c670f383bed627022f31@linux-foundation.org> In-Reply-To: <20240428094847.42521-1-ruanjinjie@huawei.com> References: <20240428094847.42521-1-ruanjinjie@huawei.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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.