From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Thu, 19 Nov 2020 11:06:43 +0100 Subject: [LTP] [PATCH v3 1/5] fanotify12: Drop incorrect hint In-Reply-To: <20201113164944.26101-2-pvorel@suse.cz> References: <20201113164944.26101-1-pvorel@suse.cz> <20201113164944.26101-2-pvorel@suse.cz> Message-ID: <20201119100643.GB2785@yuki.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > hint "CONFIG_FANOTIFY_ACCESS_PERMISSIONS not configured in kernel?" > is wrong here (fanotify12 does not use FAN_ACCESS_PERM). > > Suggested-by: Amir Goldstein > Signed-off-by: Petr Vorel > --- > testcases/kernel/syscalls/fanotify/fanotify12.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/testcases/kernel/syscalls/fanotify/fanotify12.c b/testcases/kernel/syscalls/fanotify/fanotify12.c > index fcb7ec0d3..7f23fc9dc 100644 > --- a/testcases/kernel/syscalls/fanotify/fanotify12.c > +++ b/testcases/kernel/syscalls/fanotify/fanotify12.c > @@ -146,10 +146,6 @@ static int setup_mark(unsigned int n) > "FAN_OPEN_EXEC not supported in " > "kernel?"); > return -1; > - } else if (errno == EINVAL) { > - tst_brk(TCONF | TERRNO, > - "CONFIG_FANOTIFY_ACCESS_PERMISSIONS " > - "not configured in kernel?"); > }else { > tst_brk(TBROK | TERRNO, > "fanotify_mark(%d, FAN_MARK_ADD | %s, " Looking at the source there is the same message just couple of lines below this one, should we get rid of that one as well? -- Cyril Hrubis chrubis@suse.cz