From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC711C433EF for ; Sun, 13 Mar 2022 06:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233726AbiCMGwi (ORCPT ); Sun, 13 Mar 2022 01:52:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbiCMGwh (ORCPT ); Sun, 13 Mar 2022 01:52:37 -0500 Received: from swift.blarg.de (swift.blarg.de [IPv6:2a01:4f8:c17:52a8::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12BAA36171; Sat, 12 Mar 2022 22:51:29 -0800 (PST) Received: by swift.blarg.de (Postfix, from userid 1000) id EABBD41024; Sun, 13 Mar 2022 07:45:14 +0100 (CET) Date: Sun, 13 Mar 2022 07:45:14 +0100 From: Max Kellermann To: Al Viro Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] include/pipe_fs_i.h: add missing #includes Message-ID: Mail-Followup-To: Al Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220225185431.2617232-1-max.kellermann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 2022/03/13 02:49, Al Viro wrote: > TBH, I'd rather avoid breeding chain includes; sure, mutex.h and wait.h > are extremely common anyway. Oh, well.... In my usual coding style, I expect I can include any header and it will bring its whole dependency chain (which should be as small as possible, but not smaller). This seems cleaner to me, because .c files need to have no insight what a .h file needs (even if the dependencies are "extremely common"). If the kernel coding style does not consider this useful, we can of course easily drop that patch.