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 2E58EC77B78 for ; Tue, 2 May 2023 21:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbjEBVNp (ORCPT ); Tue, 2 May 2023 17:13:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjEBVNo (ORCPT ); Tue, 2 May 2023 17:13:44 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656B2172E for ; Tue, 2 May 2023 14:13:40 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E9E5021F97; Tue, 2 May 2023 21:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683062018; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7MmBrPwz8EQ9vGi2G2f1w57m5iT52s3/THikTxdTRrg=; b=wgq8Ap/5ItMTy+a8VnY0nD3UcEa2j99t//KcuoDLgnWLvIBFCi2YXzNvqt6Yv269R7i56M 1SCaDtzS8cA+GNLvr0A9K5MEY330UV4PwqBsb5r4nQyPtFjgQNSB3vA7jFdFKtlUjh0t0v iZ4ui4v5j3qOWagkaYMGy46YXOGSf5E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683062018; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7MmBrPwz8EQ9vGi2G2f1w57m5iT52s3/THikTxdTRrg=; b=v9IYNDe37smv3PEBveG0iwBorvVWY/EwemeEFcv9InGucc4rtWqP8bolZzDOPgHCyHZADb dz815mU1LMQhCkDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 244B3139C3; Tue, 2 May 2023 21:13:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GBLMBwJ9UWRURAAAMHmgww (envelope-from ); Tue, 02 May 2023 21:13:38 +0000 Date: Tue, 2 May 2023 23:07:42 +0200 From: David Sterba To: Josef Bacik Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 1/8] btrfs-progs: sync uapi/btrfs.h into btrfs-progs Message-ID: <20230502210742.GP8111@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <93f8af4b6a6164504f0aeb1221d57c59673f6df5.1681938911.git.josef@toxicpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <93f8af4b6a6164504f0aeb1221d57c59673f6df5.1681938911.git.josef@toxicpanda.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, Apr 19, 2023 at 05:17:12PM -0400, Josef Bacik wrote: > We want to keep this file locally as we want to be uptodate with > upstream, so we can build btrfs-progs regardless of which kernel is > currently installed. Sync this with the upstream version and put it in > kernel-shared/uapi to maintain some semblance of where this file comes > from. > > Signed-off-by: Josef Bacik > --- > --- a/btrfs-fragments.c > +++ b/btrfs-fragments.c > @@ -31,7 +31,7 @@ > #include > #include "kernel-shared/ctree.h" > #include "common/utils.h" > -#include "ioctl.h" > +#include "kernel-shared/uapi/btrfs.h" The includes are now sorted in sections so I moved the uapi header to the beginning of kernel-shared/ . > > --- a/include/kerncompat.h > +++ b/include/kerncompat.h > @@ -576,5 +576,6 @@ typedef struct wait_queue_head_s { > > #define __init > #define __cold > +#define __user I got a compilation error In file included from common/send-stream.c:24: ./kernel-shared/uapi/btrfs.h:141:60: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token 141 | struct btrfs_qgroup_inherit __user *qgroup_inherit; | ^ I did a hotfix to conditionally define __user in uapi.h so the whole kerncompat.h is not included.