From: Greg KH <gregkh@linuxfoundation.org>
To: Chen Gang <xili_gchen_5257@hotmail.com>
Cc: daniel@zonque.org, dh.herrmann@googlemail.com, tixxdz@opendz.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: samples: kdbus: kdbus-workers: Define dummy prime_new()
Date: Sat, 4 Apr 2015 10:26:26 +0200 [thread overview]
Message-ID: <20150404082626.GA14097@kroah.com> (raw)
In-Reply-To: <BLU436-SMTP721B967F60324017574ED5B9F10@phx.gbl>
On Sat, Apr 04, 2015 at 06:17:23AM +0800, Chen Gang wrote:
> Quite a few of architures (e.g. blackfin, cris, frv ...) do not support
> memfd_create system call which is used in prime_new(). So define a dummy
> one.
>
> The related error (with allmodconfig under blackfin):
>
> CC [M] samples/kfifo/inttype-example.o
> samples/kdbus/kdbus-workers.c: In function ‘prime_new’:
> samples/kdbus/kdbus-workers.c:930:18: error: ‘__NR_memfd_create’ undeclared (first use in this function)
> p->fd = syscall(__NR_memfd_create, "prime-area", MFD_CLOEXEC);
> ^
> samples/kdbus/kdbus-workers.c:930:18: note: each undeclared identifier is reported only once for each function it appears in
> make[2]: *** [samples/kdbus/kdbus-workers] Error 1
>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
> samples/kdbus/kdbus-workers.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
As Richard said, please hook up these syscalls to those architectures.
Don't you want to use the feature there? Why hasn't it been added yet?
thanks,
greg k-h
next prev parent reply other threads:[~2015-04-04 8:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-03 22:17 Chen Gang
2015-04-03 22:42 ` Richard Weinberger
2015-04-04 21:18 ` Chen Gang
2015-04-04 8:26 ` Greg KH [this message]
2015-04-04 22:25 ` Chen Gang
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=20150404082626.GA14097@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=daniel@zonque.org \
--cc=dh.herrmann@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tixxdz@opendz.org \
--cc=xili_gchen_5257@hotmail.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
Powered by JetHome