Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5873177rwb; Tue, 9 Aug 2022 05:39:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4pZTUfqi60ZfMiBKFcf/O7ukObUoYtZpOf3qOMRvuATgswtZ+q8dkVpGyW9l1GjZs/693X X-Received: by 2002:a17:902:ef51:b0:16f:9760:182f with SMTP id e17-20020a170902ef5100b0016f9760182fmr17971081plx.87.1660048783798; Tue, 09 Aug 2022 05:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660048783; cv=none; d=google.com; s=arc-20160816; b=ShhtcVznc2v9NC7zxF1YlJbkD0QtSbYtduNHoXmJX5GkT3HKBkdt//dZ+nAo2GdQIA MSAVjVN8qDUBQRJKlhX1Q/zqJBGnvQZQtNp+s1rF+lUgCIwH7v/55CrExAfw5Vz18XUu AOokDdEGTgPRtw/v+djl6Q3hJ/MUtVx8G/Y+IsxBXb9aroNVicOvUNVN1OCV6XlxJrHo oP1s2cIxM9ttokbKv8xu+ZXO5e6zGuEOx20PTn6VVDlYF28HB38lBM0Bms7CiBYlH9X7 6ZSauL8QL7a2+7hCTZGM2uwbeOGErhHA/myKxMirZs9bOBITfai6ZD3UJ8RQUE4hu/zW j+MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SGWevMXzkufbDxBhWb6AylspYC62Yg64Iug7nHkUqro=; b=ILCwCM8oHT+SkcAVWdIhHxo+okPRUY5kaiRRTZkwmC07hNppEABTY9MdOLzBMR1zu1 v6zCJsfQKYqJjg3ih5y8AIjRDMkDGxm5b9nDlnDaWgzegFgaIyEhPChQqkt88f/YOYIF BlmD1zG4yWP8q/WZVS38dlwEKO7SJWbqz2YzyiM8wU7E7eJ3hQpsZdd0/2fKSpYqz5/p hCYdxsZS0GcVXVq/htAnF9FZK3Yg7RLhCJQCC+bjniKqvSijoVTJ/RDqcNjUPrR4XPSN SouquAFntnD6U6co5DYAdqesW4L2OGlJuPmrVCjF33vslBfldYU4wd2BYDIuN91glw43 fIvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UM44pjqS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a65560b000000b0041d67aea419si7938946pgs.149.2022.08.09.05.39.28; Tue, 09 Aug 2022 05:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UM44pjqS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241979AbiHIMaX (ORCPT + 99 others); Tue, 9 Aug 2022 08:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241730AbiHIMaV (ORCPT ); Tue, 9 Aug 2022 08:30:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA2E3DC6; Tue, 9 Aug 2022 05:30:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E05CAB80B7F; Tue, 9 Aug 2022 12:30:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2F39C433D6; Tue, 9 Aug 2022 12:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660048216; bh=/SnO4BJYRWuajWBkA7JCZ80eUfTk9NyFhp9hieh+2hI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UM44pjqSiczAg922y/efQWAh6UKxnSay/joUxzpOfG+Ly1GuCOFjcjV0bUwNf8ZpI 4SyQOMYTRIcK9G3J7/pVpxqPKZw1AgCO40dHVFwhnAxbD4qg4vvF1N8SrVb4+qVycX Mq93iFx4Fx2nC41lMRprROsx3sPGq/khYy2r/bd3nUX/iSqwBDfqfIoILwc0PCNjfO d6+GHAOGlcNRXr6YL5eIH8p46p1NDu8ovVgLWnMvsJsVzTNahEcaaBo8TgAVZmvXDS H5hIjh3JW0asw55kLXU4RfLJKSZB9rzXwRX270Q7N6RGEEyoM7DueDoECL+yVRRAKy DN9PfbqTdDn1Q== Date: Tue, 9 Aug 2022 14:30:11 +0200 From: Christian Brauner To: David Howells Cc: linux-fsdevel@vger.kernel.org, Ian Kent , Alexander Viro , Christian Brauner , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH] uapi: Remove the inclusion of linux/mount.h from uapi/linux/fs.h Message-ID: <20220809123011.7lqq27ms7zmcgaia@wittgenstein> References: <163410.1659964655@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <163410.1659964655@warthog.procyon.org.uk> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 08, 2022 at 02:17:35PM +0100, David Howells wrote: > Hi, > > We're seeing issues in autofs and xfstests whereby linux/mount.h (the UAPI > version) as included indirectly by linux/fs.h is conflicting with > sys/mount.h (there's a struct and an enum). (The linux/mount.h and sys/mount.h is painful for userspace too btw.) > > Would it be possible to just remove the #include from linux/fs.h (as patch > below) and rely on those hopefully few things that need mount flags that don't > use the glibc header for them working around it by configuration? > > David > --- > uapi: Remove the inclusion of linux/mount.h from uapi/linux/fs.h > > Remove the inclusion of from uapi/linux/fs.h as it > interferes with definitions in sys/mount.h - but linux/fs.h is needed by > various things where mount flags and structs are not. > > Note that this will likely have the side effect of causing some build > failures. > > Reported-by: Ian Kent > Signed-off-by: David Howells > cc: Alexander Viro > cc: Christian Brauner > cc: linux-fsdevel@vger.kernel.org > cc: linux-api@vger.kernel.org > --- Yeah, I think this is ok. Reviewed-by: Christian Brauner (Microsoft)