Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1482087lqa; Mon, 29 Apr 2024 09:36:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOjB4yYZiocteWepaK1vwPeB0GFTjIbGuptvMBvpNzaAGiWcHIpHWPhfYfqTerPYOs8dzGUs20WdVlze38WFrR/Kqv+nu1Yj58MW6OrQ== X-Google-Smtp-Source: AGHT+IG3rfbTRxRHgV8Htv94846yYH+XkQsKwYhRVi1XbUbuGg/Ggrg0S0tibhgii+HzVph2C8S+ X-Received: by 2002:a17:906:f203:b0:a58:c239:48ae with SMTP id gt3-20020a170906f20300b00a58c23948aemr170792ejb.12.1714408566603; Mon, 29 Apr 2024 09:36:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714408566; cv=pass; d=google.com; s=arc-20160816; b=mXO8yNq4ZWIn7E9i+2eOq1XWXYoHemll935cuGn8TbHR1TIAyVoBcdhDlP0JfLuZHI Qi1BLrBaAiAnBNeaWJ1vhuSSYzF6MvAHtMS46crBmxdgZqo730jVG2Fvcy+fNVmF1NrL Sg7jYZ2Kmape6HTThvyTBGZQiV87ljLj8R+UkF5jLpJcVGNFN/gYzRXgMAuZKWw7mObl kGRFPAXCv/0sA1UwgpgfxRvSb5crefnyhNtlsZhYTuSotBwgESH74NGRlFGdTm7+Emvj 8xuE9HBAJU1hnTAyxRVRMYDQtmmbc0qiXj3wxKddsL4F7x2kBxfAOGueOszdvY6T+RTI zdgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=XjkVlFyNn0qujmf599vaEVPShr1EOlp2hfaL/UK9AaM=; fh=uQhZL2JlGL8Lb6K+9F1k2gIA3KnVz89jAj8/9TFWEeY=; b=JBnl9SRQx7FZlfmjFIwcmkIvSGSJZenuZxEGsP1HNsUC79WtzeiJj0qXAXFJG1kkpV rBOEhaSgQ5RKo/Mamie0vMWJ8NsJq6qIPEKifCzFp+CZqbDVLijYx6EZRz0aBrvIiI+l woCWxQzH00rKofPhsSpDqUp/tdzFl27u3EVvqRK7XmJ6ISodVoP4oBQT7PmcAiLUKwHa ie8Ros/ZhI4vaYkCN2XjuQEEEvnxNXrdxPP87zipeSCBRnm/8fG6pcZINKZeZVpX+reR Bwir2Cksp//v30PwwNRYWMmYDFlGuTAwFLHv3l5hWyIK+shRNAcR8qq/vFpZuJmzpNmI Bh+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=pEZsWNN+; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-162691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162691-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e5-20020a170906c00500b00a555a2410b3si13733298ejz.105.2024.04.29.09.36.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 09:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=pEZsWNN+; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-162691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162691-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 571C81F21141 for ; Mon, 29 Apr 2024 16:36:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2691385920; Mon, 29 Apr 2024 16:35:53 +0000 (UTC) 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: 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 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.