All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 8/8] syscalls/setresuid03: Convert to new API
Date: Mon, 13 Sep 2021 16:46:33 +0200	[thread overview]
Message-ID: <YT9kSW+oEBJVSZkL@pevik> (raw)
In-Reply-To: <3b789dc4-5232-a6d6-d864-7f75c5a0a030@suse.cz>

> On 09. 09. 21 18:32, pvorel wrote:
> >> -??? if (getpwnam("bin") == NULL) {
> >> -??????? tst_brkm(TBROK, NULL, "bin must be a valid user.");
> >> +??? if (TST_ERR != tc->exp_errno) {
> > nit: checkpatch complains (TST_ERR should be second)

> checkpatch.pl wrongly assumes that TST_ERR is a constant.
Yep, variable named upper case is confusing for perl script.
Sorry for not detecting it myself. I suppose we should whitelist
TST_{ERR,PASS,RET} from these checks in our vendored checkpatch.pl.

Kind regards,
Petr

WARNING: multiple messages have this Message-ID (diff)
From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: pvorel <pvorel@suse.de>,
	ltp@lists.linux.it, Richard Palethorpe <rpalethorpe@suse.com>
Subject: Re: [LTP] [PATCH 8/8] syscalls/setresuid03: Convert to new API
Date: Mon, 13 Sep 2021 16:46:33 +0200	[thread overview]
Message-ID: <YT9kSW+oEBJVSZkL@pevik> (raw)
Message-ID: <20210913144633.jnHZZ6nKaqVNAaJKffS1nl1emCOR9cIGsJeA0JoY9xE@z> (raw)
In-Reply-To: <3b789dc4-5232-a6d6-d864-7f75c5a0a030@suse.cz>

> On 09. 09. 21 18:32, pvorel wrote:
> >> -    if (getpwnam("bin") == NULL) {
> >> -        tst_brkm(TBROK, NULL, "bin must be a valid user.");
> >> +    if (TST_ERR != tc->exp_errno) {
> > nit: checkpatch complains (TST_ERR should be second)

> checkpatch.pl wrongly assumes that TST_ERR is a constant.
Yep, variable named upper case is confusing for perl script.
Sorry for not detecting it myself. I suppose we should whitelist
TST_{ERR,PASS,RET} from these checks in our vendored checkpatch.pl.

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2021-09-13 14:46 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09 15:51 [LTP] [PATCH 1/8] syscalls/rename09: Simplify and convert to new API Martin Doucha
2021-09-09 15:51 ` Martin Doucha
2021-09-09 15:51 ` [LTP] [PATCH 2/8] Add SAFE_SETRESUID()/SAFE_SETRESGID() helper functions Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-09 15:51 ` [LTP] [PATCH 3/8] Add tst_check_resuid() and tst_check_resgid() " Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-09 15:51 ` [LTP] [PATCH 4/8] syscalls/setresgid02: Convert to new API Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-10 14:33   ` Cyril Hrubis
2021-09-10 14:33     ` Cyril Hrubis
2021-09-09 15:51 ` [LTP] [PATCH 5/8] syscalls/setresgid03: " Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-09 15:51 ` [LTP] [PATCH 6/8] syscalls/setresuid01: " Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-09 15:51 ` [LTP] [PATCH 7/8] syscalls/setresuid02: " Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-09 15:51 ` [LTP] [PATCH 8/8] syscalls/setresuid03: " Martin Doucha
2021-09-09 15:51   ` Martin Doucha
2021-09-09 16:32   ` pvorel
2021-09-09 16:32     ` pvorel
2021-09-10 14:29     ` Cyril Hrubis
2021-09-10 14:29       ` Cyril Hrubis
2021-09-10 19:05       ` Petr Vorel
2021-09-10 19:05         ` Petr Vorel
2021-09-13  9:12       ` Martin Doucha
2021-09-13  9:12         ` Martin Doucha
2021-09-13 14:11     ` Martin Doucha
2021-09-13 14:11       ` Martin Doucha
2021-09-13 14:46       ` Petr Vorel [this message]
2021-09-13 14:46         ` Petr Vorel
2021-09-13 14:51       ` Cyril Hrubis
2021-09-13 14:51         ` Cyril Hrubis
2021-09-14  5:06         ` Petr Vorel
2021-09-14  5:06           ` Petr Vorel
2021-09-14  9:50           ` Cyril Hrubis
2021-09-14  9:50             ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YT9kSW+oEBJVSZkL@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.