From: Jens Axboe <axboe@kernel.dk>
To: Douglas Gilbert <dgilbert@interlog.com>, linux-kernel@vger.kernel.org
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH] tools/io_uring: fix compile breakage
Date: Mon, 14 Sep 2020 19:34:15 -0600 [thread overview]
Message-ID: <fa89c176-df34-8e96-f273-4dd52882a070@kernel.dk> (raw)
In-Reply-To: <20200914213609.141577-1-dgilbert@interlog.com>
On 9/14/20 3:36 PM, Douglas Gilbert wrote:
> It would seem none of the kernel continuous integration does this:
> $ cd tools/io_uring
> $ make
>
> Otherwise it may have noticed:
> cc -Wall -Wextra -g -D_GNU_SOURCE -c -o io_uring-bench.o
> io_uring-bench.c
> io_uring-bench.c:133:12: error: static declaration of ‘gettid’
> follows non-static declaration
> 133 | static int gettid(void)
> | ^~~~~~
> In file included from /usr/include/unistd.h:1170,
> from io_uring-bench.c:27:
> /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note:
> previous declaration of ‘gettid’ was here
> 34 | extern __pid_t gettid (void) __THROW;
> | ^~~~~~
> make: *** [<builtin>: io_uring-bench.o] Error 1
>
> The problem on Ubuntu 20.04 (with lk 5.9.0-rc5) is that unistd.h
> already defines gettid(). So prefix the local definition with
> "lk_".
Thanks Doug - I haven't really been maintaining the examples in
the kernel, only in liburing. I'll apply this one, and hopefully
sync them up for 5.10 in general.
--
Jens Axboe
prev parent reply other threads:[~2020-09-15 1:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 21:36 [PATCH] tools/io_uring: fix compile breakage Douglas Gilbert
2020-09-15 1:34 ` Jens Axboe [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=fa89c176-df34-8e96-f273-4dd52882a070@kernel.dk \
--to=axboe@kernel.dk \
--cc=dgilbert@interlog.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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