Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4113929pxb; Tue, 2 Nov 2021 04:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDxKPTVvOnaRkggzwourqnOTsTmsiTpC6fzvBiL43J5WZ4eCKo320OoksQu4SchWXeDYCq X-Received: by 2002:a05:6402:3592:: with SMTP id y18mr2632951edc.343.1635852504109; Tue, 02 Nov 2021 04:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635852504; cv=none; d=google.com; s=arc-20160816; b=rr6jF/vW+r6iD5HFMFBrHfQIPSo/6NKtUIfhUspbGf7HUbrbD8jvoHtU+bLK7CU6/k Vole/AutMBJ3KFosOHQi+6hxAaR5Bvbyl9YfDJzxd12C68OIU6s7D7W0ri9C8xsr12aM BjDdU9YvaLOXn3k6HjTzDxPqoronBss9pzFCXC0XtByvd9ZjChFHBMprH4XOobN8Rb0h 9XV6U0+3DnhDkDDoi4uRmnbMhHl4+PZIn8KeHs+KYBrhxp4TXAuvgniIPMgMBDMjyPCN RyyIUciq8KYfMCHYaCAGdJbWzPm1c5zy03EfiwStAcB3yj068alzuDsJC7wPEkr7GMa7 wrpQ== 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=poO7iQ5eLKf23Vik4rTBqi9mweJB4HMVhR7eOi0UAbo=; b=bKTUhqYcZG0SM2IoSe/a/IBsBcUTJCh+YdbtTUKlx10mW9Bcad7ciIxcCrFkBYWczA 46UrK/fotrnYT4+OJ90ABNDNU+tdiaXjmRYieFf17fTDNTdcz44cndwpavt7JOF2rNCF Kp1SAtBwx3cQTf8QphuLsCymXRk/CECXopZwTAGQHAVcWWRCF9+TSQdEWCho+tRs0nLP 145x56TTl2a6NKlRm+mQrEKeN8BFcL2qY6jDZwwuAv+burmyV3yX+vwkjg6yxotEKEX/ EuhlX7rX3UdINCaPpSEHOTPB3rxm1RcXGwylFzuTBPebaWgEvpd3Cc9f5MqrC0Va1+4J Ga0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=LTaCvNxR; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si38581163eda.624.2021.11.02.04.27.54; Tue, 02 Nov 2021 04:28:24 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=LTaCvNxR; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbhKBLaW (ORCPT + 99 others); Tue, 2 Nov 2021 07:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhKBLaV (ORCPT ); Tue, 2 Nov 2021 07:30:21 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7F3EC061714 for ; Tue, 2 Nov 2021 04:27:46 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id h74so5256321pfe.0 for ; Tue, 02 Nov 2021 04:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=poO7iQ5eLKf23Vik4rTBqi9mweJB4HMVhR7eOi0UAbo=; b=LTaCvNxR0cU5QQZ/mGtUD1AgqG97RDQhxXF0Gegn7YTWQCHB23dO5jkzpBqUpnUqs4 XF9rdFlDf6WZbe6jfqR3Xv2VYtUpQ72TNmmUVfADhgVPMijGiWYY+bgJR6eUmllEA/JA kUaqp1A2Bx4hEjCk5acipKIDDOszsTCeUWoj81Hv4Pfd5M5YF4MZDVPktOcHTYZ1hWNC ElRVxcNN96vRxWA6cECPf982llkgbJvI3CtnMqppLEk5fxtrvQS1RBEbZRqzuVdzMeuD h0t8qSzHC2zJQhc7D+8k+OEuDAEeSp85fO6+kcxPVOsfRmADpSM/jEUr1lMQmxy7WABf XNEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=poO7iQ5eLKf23Vik4rTBqi9mweJB4HMVhR7eOi0UAbo=; b=353g32oud7dyXm11qA2GKEEVGXQX6C7e9HkcFcOjupgOJUpKIemSp3dsr+M38VBZaF 4ftFjotVQuj2daiM1NZoZ0gBUc2VRAGxHI7aWLa0rTAJ7Lv3LPcchWtbRJZ6XeeoD1nL 0jyrJ1tldWHt2w5xG6bU8KZkRnKMeqP5k+2pyVFXGvzyMgEcQOUIftQsaRvw4UvqVMaT nw1KtFB9iJIqZ4YyADmcKC/+/rC1Pw1j1G9kiXeT7tl3uQnbU7sS+WP69yjyCHBQ2AXX VmdIOJwFAo2oEfdd8lg0R7zQ/m5FaJsOCrJubq6zSvrdYd9l0b2dvlYlgSCi8inK/F8g LFyQ== X-Gm-Message-State: AOAM5302AsvzW+158uZXSR76L5QF5NSvhWiR0jkd/ds5rcFO4SMOyTVD 0E/KXmdgKp7J2DVaKyRqoawc6Q== X-Received: by 2002:a05:6a00:1348:b0:481:179c:ce9b with SMTP id k8-20020a056a00134800b00481179cce9bmr9552491pfu.27.1635852466038; Tue, 02 Nov 2021 04:27:46 -0700 (PDT) Received: from google.com (64.157.240.35.bc.googleusercontent.com. [35.240.157.64]) by smtp.gmail.com with ESMTPSA id 13sm2267614pjb.37.2021.11.02.04.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 04:27:45 -0700 (PDT) Date: Tue, 2 Nov 2021 11:27:38 +0000 From: Matthew Bobrowski To: Gabriel Krisman Bertazi Cc: jack@suse.com, amir73il@gmail.com, ltp@lists.linux.it, khazhy@google.com, kernel@collabora.com, linux-ext4@vger.kernel.org Subject: Re: [PATCH v3 1/9] syscalls: fanotify: Add macro to require specific mark types Message-ID: References: <20211029211732.386127-1-krisman@collabora.com> <20211029211732.386127-2-krisman@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211029211732.386127-2-krisman@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Oct 29, 2021 at 06:17:24PM -0300, Gabriel Krisman Bertazi wrote: > 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__ */ A nit, but I'm of the opinion that s/_ON_/_BY_ within the macro name. Otherwise, this looks OK to me. Reviewed-by: Matthew Bobrowski /M