Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4158325pxb; Tue, 2 Nov 2021 05:15:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu6XINlDFObF46Hk9BTOSsS1AypwrMKoqtSI6VdEzwDMkFMeB7TE2S0kl1Q17baLRMBUTk X-Received: by 2002:a5e:9246:: with SMTP id z6mr25138418iop.168.1635855303955; Tue, 02 Nov 2021 05:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635855303; cv=none; d=google.com; s=arc-20160816; b=wAK3A94A3x7SpvdpoyZy9jAMeu/MRrHnY5x/z4SeoLZ8ggFMjM/6niD7rFHeutPI04 KmtsYCTaR/ePkvcfVseio/u84gUj+JVCDoQTqwXlsl5eZFKGUd1lZPfu01tdcWJ37hfe J8au7dBaovkucPkJxjEhHiCCjztXzj00KbjrH9q9s3c9Z61TyPgBD5zSFFYzTgsQnX+d aILxYGwQu2v9mpM06mLUMhl/isPjHlsjp92BoUDqGoDJMRmnP1YAZJaIxNY8z6si1r1X 2cfVJv3RoCEfviOwXSLYBTtX5v0BuOQmownmpEH2eaL9oU70OQaeHp/gaKpTW32ZHp9v WtIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mRRv7E+69/vVKkYW5342PCyFEeOfIo3cLN4E2lz8zzw=; b=d9GlyzWf+si6NDuLlCerT6qdTzWRilHcl4GRD1CrnXA044RkaeVo0jw8D3sPgn6IAF 0o2+4naQbA8bJWQzzC7ARoktWMeSkoV1hLNEnquNTrWBYwyHWrqXmaOw7RMhvy6unQJT z53H9YHFedyrDZVTfGTin54QAX7uR7FivGzLMLADLbrHJdYK5RKl6ClvzQ+Z4h9+2pM/ HCV7PmCrZ8/XCg9xINBDKOeOmEZAubPXiCBfY7ishGXMvqRdiiHtcL+3Er3/o4Z0F3Pn 6fnVuhT47qXmFMlVInJx4tUqpc0UEU5AqkTC7iyR4b1r1xQUJnjnzLIvbo8xe2tVi8Zs u3CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qLJXf/Np"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si18686296jaa.55.2021.11.02.05.14.21; Tue, 02 Nov 2021 05:15:03 -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=@gmail.com header.s=20210112 header.b="qLJXf/Np"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbhKBMQL (ORCPT + 99 others); Tue, 2 Nov 2021 08:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbhKBMQI (ORCPT ); Tue, 2 Nov 2021 08:16:08 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C28C061714 for ; Tue, 2 Nov 2021 05:13:33 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id h23so8109587ila.4 for ; Tue, 02 Nov 2021 05:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mRRv7E+69/vVKkYW5342PCyFEeOfIo3cLN4E2lz8zzw=; b=qLJXf/NpGMRi+g1+Ss1mT3nGqoA4huV4gw3WrmPl4Rwag3nrrx2Gg4TzaIp1s2Pxtg qWNmf2Zm4kISmuE728jdrTly1UECxCq7PvJ1DdR0NCO8Cxcz32CgRUjHgLn1PiFf/Wqs Dx39R1YZAW2CVnCMYw3YR+sIqU9PBwacrCA9kj96L+PlkryTdzcy3Ryxc08syEOledE7 +oplfcQTepHRS3eFDpIHzngUSa+7IWtAtESX1YpnOsCigYA8AT7u9k9idM+KCzjrcxh7 0jEt/8CtfakiZUwBzyJNTMZ2FlDQ/YKa8G7GfyfIk+aLjvh4x/a+162uZQAc76QzykJf qcMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mRRv7E+69/vVKkYW5342PCyFEeOfIo3cLN4E2lz8zzw=; b=bQ0rJ0OQeCf+Wsk+qDJr5VriAubJY0O2QugW1nN7thyf5uW6qg4t8TwNRyeKHw8B5Y k/xuSgD5tRGxUkhISHqLyL7QSp0IiIYYcWQdtLjhqt7LHYYhN/DIR0MP5mStFQV9PXW0 vzq8ESqAX0vuXXRCcdVTdNFn19Xt0qo+nlRr9U/kHrE5M7T54Q2wan/O94kbH7HtHRh1 dt1dFA4lY/8zEHvvWQWHzNvWXj7kcJkEKYkVBXtaLCeLd2zeU6cPSLD/m0D26mUydKFD y26ohcGhpqt3mx81iwHS8cXhzrAFl8tDi6OCdguxozq2R9FeghaxxEZErROp3vi+XXH0 FqnQ== X-Gm-Message-State: AOAM5325DePSiwoLDWGCa4Yf2PeULfncEBNOrpn3Uz7WBTgJSsx7p+1s 0lNw3s2Xlah6sYM1WuihHc1BFHeg1V2m7pHHFYU= X-Received: by 2002:a92:dc0c:: with SMTP id t12mr16924675iln.198.1635855212646; Tue, 02 Nov 2021 05:13:32 -0700 (PDT) MIME-Version: 1.0 References: <20211029211732.386127-1-krisman@collabora.com> <20211029211732.386127-2-krisman@collabora.com> In-Reply-To: From: Amir Goldstein Date: Tue, 2 Nov 2021 14:13:21 +0200 Message-ID: Subject: Re: [PATCH v3 1/9] syscalls: fanotify: Add macro to require specific mark types To: Matthew Bobrowski Cc: Gabriel Krisman Bertazi , Jan Kara , LTP List , Khazhismel Kumykov , kernel@collabora.com, Ext4 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Nov 2, 2021 at 1:27 PM Matthew Bobrowski wrote: > > 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. Agreed. You can change that while cherry-picking to your branch ;-) Thanks, Amir.