public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Richard Palethorpe <rpalethorpe@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library
Date: Tue, 29 Jun 2021 08:15:28 +0100	[thread overview]
Message-ID: <87wnqd2lbj.fsf@suse.de> (raw)
In-Reply-To: <YNniPHlHTVyiz74B@pevik>

Hello,

Petr Vorel <pvorel@suse.cz> writes:

> Hi Richie,
>
>> +#if LTPLIB
>> +#define TEST(SCALL) _Pragma("GCC error \"Do not use TEST macro in library\"")
>> +#define TEST_VOID(SCALL) _Pragma("GCC error \"Do not use TEST_VOID macro in library\"")
>
> It'd be nice to document "Do not use TEST() macro in library" in LTP Library API
> Writing Guidelines [1].

Yes, I will submit this in the Sparse patch set today.

>
> Kind regards,
> Petr
>
> [1] https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines


-- 
Thank you,
Richard.

  reply	other threads:[~2021-06-29  7:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21 11:38 [LTP] [PATCH 1/3] scripts/coccinelle: Add headers to lib checks and fix macro fix Richard Palethorpe
2021-06-21 11:38 ` [LTP] [PATCH 2/3] API: Remove TEST macro usage from library headers Richard Palethorpe
2021-06-21 11:38 ` [LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library Richard Palethorpe
2021-06-28 14:52   ` Petr Vorel
2021-06-29  7:15     ` Richard Palethorpe [this message]
2021-08-10 15:17 ` [LTP] [PATCH 1/3] scripts/coccinelle: Add headers to lib checks and fix macro fix 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=87wnqd2lbj.fsf@suse.de \
    --to=rpalethorpe@suse.de \
    --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