public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 1/1] endian_switch01.c: Remove useless TST_NO_DEFAULT_MAIN
Date: Thu, 9 Mar 2023 22:02:01 +0100	[thread overview]
Message-ID: <20230309210201.GA451333@pevik> (raw)
In-Reply-To: <CAASaF6y+GqhXUc4-EZHx89nRWcxV2_hRfAzdsMhbjVM4=A_qDw@mail.gmail.com>

> On Thu, Mar 9, 2023 at 12:17 PM Jan Stancek <jstancek@redhat.com> wrote:

> > On Thu, Mar 9, 2023 at 11:44 AM Petr Vorel <pvorel@suse.cz> wrote:

> > > Hi Jan,

> > > out of curiosity, what is main4() used for?

> > It's from 086c14f7a465 ("The following hack fixes the
> > "endian_switch01.c:115: warning: ‘main’ takes only zero or two
> > arguments" warning. Signed-off-by: CAI Qian <caiqian@cclom.cn>.")
> > but I'm not sure it is still used these days.
+1

> > As you found my misplaced TST_NO_DEFAULT_MAIN, that seems to confirm
> > we can do without it. I'll have a look on a ppc system.

> So I agree with your patch here. And then I'd suggest we follow it
Thank you, I merged this patch.


> with one that replaces main4 with

> @@ -42,6 +42,9 @@ void check_le_switch_supported(void)
>                 exit(errno);
>         }

> +       if (!(getauxval(AT_HWCAP) & PPC_FEATURE_TRUE_LE))
> +               tst_brk(TCONF, "Processor does not support little-endian mode");
> +

> What do you think?

Indeed, that's looks to me better. You can add my ack to the patch.
But please test it.

Kind regards,
Petr

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

      reply	other threads:[~2023-03-09 21:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-09 10:33 [LTP] [PATCH 1/1] endian_switch01.c: Remove useless TST_NO_DEFAULT_MAIN Petr Vorel
2023-03-09 10:44 ` Petr Vorel
2023-03-09 11:17   ` Jan Stancek
2023-03-09 12:09     ` Jan Stancek
2023-03-09 21:02       ` Petr Vorel [this message]

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=20230309210201.GA451333@pevik \
    --to=pvorel@suse.cz \
    --cc=jstancek@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox