Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp599147pxb; Wed, 3 Nov 2021 09:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZmPzJFi8QY2WLxdSekkeX2DNicUnKh0fS9bOKZWx4PevuTUJBE2mnYtfMuZzuoR4lIJwq X-Received: by 2002:a17:906:e103:: with SMTP id gj3mr3461043ejb.456.1635956056224; Wed, 03 Nov 2021 09:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635956056; cv=none; d=google.com; s=arc-20160816; b=TaAkNRR0RKQEqaBS2vYoW5OaSrrLB+imo0mWjlf1OZBEY8PSIpIyce4t4uD4cYRmST XK5jUKfzcX7dD4W5gYyjcNYhU3i6/PyWkvHI8ejrFoDJ5SVPKYw4BfpOwhTZd2ks2RjU 568qCwR8/6fldzeL189onKwoVJuf/pYtee+SO4U3VwuAQyj3IPfs5/G9byCBYyGXkj8i 5cEDCa+tDeRm1JN7+deIgdajC5mwqAb8Zj8RTog2f+Ra1HSOw7DwxNn8c54eHNQvWRVj JSTZnseCqXOyrgb9Ty10MdXP0WjZ3cCjeG6TZlzeDPoj6OrCnnG6zhcGZAyfp/Gxzxcg hwzA== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=3bTowwt5/5FwY7SC7Z7E2G8TBByJ4VGdF4azpNrDENU=; b=KZtzDkRTfhALS8aaTdKinCdkULAUy5TMrOb9IXZEmKopFsDDwxIGjzuHfrT2r4A4TB akEERsB2yvzbh/T41kKmXvl2L6NLqYoX1pvyeVPzAJDmUSYUIDkz4LOu5Q7iHDMY/jjf uJlwuSE0Td+6NSGvyREeKH+QJoyhD9e0hvd6Mo8+i9chsqsQ1hITGwlzRr0kYrbwATkf Xm8gQWZQYAwRyGMhuz7+fvep0aITz69X2cv8dkipnc1/dB7gm/kPOqEO6AhU6ynClxBi GoS7vv+vQPFgh3ApAWNVN8THaG+ruaKBknYxdTp6WXk6y8GFmWgDeRk6z0OPrHPjCPCZ jZNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=T7A2QQNu; dkim=neutral (no key) header.i=@suse.cz header.b=BIGJPluq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si5228016edm.449.2021.11.03.09.13.49; Wed, 03 Nov 2021 09:14:16 -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=@suse.cz header.s=susede2_rsa header.b=T7A2QQNu; dkim=neutral (no key) header.i=@suse.cz header.b=BIGJPluq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232645AbhKCQQU (ORCPT + 99 others); Wed, 3 Nov 2021 12:16:20 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:36120 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbhKCQQU (ORCPT ); Wed, 3 Nov 2021 12:16:20 -0400 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 24470218D9; Wed, 3 Nov 2021 16:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1635956023; 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: in-reply-to:in-reply-to:references:references; bh=3bTowwt5/5FwY7SC7Z7E2G8TBByJ4VGdF4azpNrDENU=; b=T7A2QQNugZkq0mPriLjHnqcNU5MZ9XIBAoAlnlDPGoicll4r8McX8fnQLAS3gArwc6QHy/ ybAI0KZkollWMNe2lp8qt4066uya90o/gqi2/8UZB0DcuKpvTdtgWeYIfX2P0REZMcvhXY 4nqdeO1HUymOxec3eLx9NPrZq/TMhNw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1635956023; 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: in-reply-to:in-reply-to:references:references; bh=3bTowwt5/5FwY7SC7Z7E2G8TBByJ4VGdF4azpNrDENU=; b=BIGJPluqIwlb2FEe0penCvEqc/62ILWuThez3GOXABfC79DWq9HQraa+6cu6GvLdK1TZaz GkB5kBg3TyHhpxBA== 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 C7F9513C91; Wed, 3 Nov 2021 16:13:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1NP2Lja1gmHKUAAAMHmgww (envelope-from ); Wed, 03 Nov 2021 16:13:42 +0000 Date: Wed, 3 Nov 2021 17:13:41 +0100 From: Petr Vorel To: Amir Goldstein Cc: Matthew Bobrowski , kernel@collabora.com, Khazhismel Kumykov , Jan Kara , Ext4 , Gabriel Krisman Bertazi , LTP List Subject: Re: [LTP] [PATCH v3 1/9] syscalls: fanotify: Add macro to require specific mark types Message-ID: Reply-To: Petr Vorel 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: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi all, > 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 ;-) +1. And yes, I'll change it while applying it into LTP (no need to repost). Reviewed-by: Petr Vorel Kind regards, Petr > Thanks, > Amir.