From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Oscar Shiang <oscar0225@livemail.tw>
Cc: jkacur@redhat.com, williams@redhat.com, linux-rt-users@vger.kernel.org
Subject: Re: [PATCH] rt-numa: Correct the comment of numa_initialize()
Date: Thu, 23 Dec 2021 17:03:25 +0100 [thread overview]
Message-ID: <YcSdzd3jmjV/rxBB@linutronix.de> (raw)
In-Reply-To: <TYCP286MB1913AD6234046FE1CF1D3877A17E9@TYCP286MB1913.JPNP286.PROD.OUTLOOK.COM>
On 2021-12-23 22:01:07 [+0800], Oscar Shiang wrote:
> --- a/src/lib/rt-numa.c
> +++ b/src/lib/rt-numa.c
> @@ -15,7 +15,7 @@
>
> /*
> * numa_available() must be called before any other calls to the numa library
> - * returns 0 if numa is available, or 1 if numa is not available
> + * returns 1 if numa is available, or 0 if numa is not available
> */
To quote the man page:
Before any other calls in this library can be used numa_available()
must be called. If it returns -1, all other functions in this library
are undefined.
Based on that, neither 0 nor 1 is defined.
Sebastian
next prev parent reply other threads:[~2021-12-23 16:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-23 14:01 [PATCH] rt-numa: Correct the comment of numa_initialize() Oscar Shiang
2021-12-23 16:03 ` Sebastian Andrzej Siewior [this message]
2021-12-25 7:17 ` Oscar Shiang
2021-12-25 16:58 ` John Kacur
2021-12-25 16:43 ` John Kacur
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=YcSdzd3jmjV/rxBB@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=oscar0225@livemail.tw \
--cc=williams@redhat.com \
/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