Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp511213pxb; Fri, 29 Oct 2021 14:20:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxizNKx9K2AfQhRlODshh40HELUA7iRsJ4oUZS0s3O4ph5k7vC00uyPK0Nwbn+QuUeNrN1j X-Received: by 2002:a05:6602:21c1:: with SMTP id c1mr2036985ioc.198.1635542422943; Fri, 29 Oct 2021 14:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635542422; cv=none; d=google.com; s=arc-20160816; b=b4m15fAxWS02cqUoufU7ovw6jjqMYXjNG6Zk1tNn2NiErRQ44Vzokto98nfqqhek9R wtbNYkgbdxjp90g5lU9he31irQ0ei6oP2GzTcBKEc/PLYd4Y7C2bciATJEc9DXSbo/NE QxqvPpEuqkM/e0SOxy/ZSUFatv89h98yhqQ0ZegdvYdtBy9YmzMAo6ECNggJpufeRxQA WjVx8UwCXOUdlnIYeeExMqgLSwFIm3xyWVJd/KfXwzdS7V4bN74gDq3kSIi9CH0m3/Xs eoW8fqaxl4CF8S8ycdj6pJIYJ/RyOwhu18j9OuEQVHgT2Uj8fgYePeIkcsZ2XsmiuZTM Ct/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qreFYhWU70Suep22llh7jOg04TFPhkO96nB8hw451UU=; b=eHvZggMDhJxJfzVE+RCU7sBeAMJKaG31bb88G/XVJUBPRUbGpbRDKv+Oq+BUO4a6mR Zto8WJ7EmqE9PgWFUghOaRN6xxmgwKc9rKDvbFD3tR2rd8cyRAh51PlJiEF9d5mYVm9o WAper+5tDuUMAfdBqhCTxly2JH76Qe7YtCmDLqhQMEjLKTexg26xYN80mSjxhna+5tZb UFrTrUtnHpoD3Cih58jKRzpwUVaV9JCj/ClU5+nigDjFQ47tdkmkNWlg1dTBGRJZOTuP /jOuEQiAegBUvj8CKXnFYrv7rTVFByQtwV42lLeIF/A1gES4zJlmGwxFZNR2V/sDVWel YpQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si7886802ilr.94.2021.10.29.14.20.10; Fri, 29 Oct 2021 14:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbhJ2VU3 (ORCPT + 99 others); Fri, 29 Oct 2021 17:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhJ2VU2 (ORCPT ); Fri, 29 Oct 2021 17:20:28 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5BB6C061570 for ; Fri, 29 Oct 2021 14:17:59 -0700 (PDT) Received: from localhost (unknown [IPv6:2804:14c:124:8a08::1002]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: krisman) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 170781F45C6F; Fri, 29 Oct 2021 22:17:57 +0100 (BST) From: Gabriel Krisman Bertazi To: jack@suse.com, amir73il@gmail.com, repnop@google.com Cc: ltp@lists.linux.it, khazhy@google.com, kernel@collabora.com, linux-ext4@vger.kernel.org, Gabriel Krisman Bertazi Subject: [PATCH v3 1/9] syscalls: fanotify: Add macro to require specific mark types Date: Fri, 29 Oct 2021 18:17:24 -0300 Message-Id: <20211029211732.386127-2-krisman@collabora.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211029211732.386127-1-krisman@collabora.com> References: <20211029211732.386127-1-krisman@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Like done for init flags and event types, and a macro to require a specific mark type. Reviewed-by: Amir Goldstein Signed-off-by: Gabriel Krisman Bertazi --- testcases/kernel/syscalls/fanotify/fanotify.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testcases/kernel/syscalls/fanotify/fanotify.h b/testcases/kernel/syscalls/fanotify/fanotify.h index a2be183385e4..c67db3117e29 100644 --- a/testcases/kernel/syscalls/fanotify/fanotify.h +++ b/testcases/kernel/syscalls/fanotify/fanotify.h @@ -373,4 +373,9 @@ static inline int fanotify_mark_supported_by_kernel(uint64_t flag) return rval; } +#define REQUIRE_MARK_TYPE_SUPPORTED_ON_KERNEL(mark_type) do { \ + fanotify_init_flags_err_msg(#mark_type, __FILE__, __LINE__, tst_brk_, \ + fanotify_mark_supported_by_kernel(mark_type)); \ +} while (0) + #endif /* __FANOTIFY_H__ */ -- 2.33.0