From: Benoit Boissinot <bboissin@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: const qualifiers on function returns type
Date: Sat, 9 Apr 2005 03:09:09 +0200 [thread overview]
Message-ID: <40f323d005040818095eb63950@mail.gmail.com> (raw)
Hi,
there are some function who are declared this way:
include/linux/cpuset.h:21
extern const cpumask_t cpuset_cpus_allowed(const struct task_struct *p);
I was wondering what means const for a function returns type.
K&R doesn't say anything about this and gcc-4 warns (warning: type
qualifiers ignored on function return type)
If it is a mistake, there are a few functions who should be modified.
Regards,
Benoit
next reply other threads:[~2005-04-09 1:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-09 1:09 Benoit Boissinot [this message]
[not found] <3RcNK-4PC-1@gated-at.bofh.it>
2005-04-09 2:42 ` const qualifiers on function returns type Bodo Eggert
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=40f323d005040818095eb63950@mail.gmail.com \
--to=bboissin@gmail.com \
--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