From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752339AbbDDI0h (ORCPT ); Sat, 4 Apr 2015 04:26:37 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52502 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbbDDI0b (ORCPT ); Sat, 4 Apr 2015 04:26:31 -0400 Date: Sat, 4 Apr 2015 10:26:26 +0200 From: Greg KH To: Chen Gang Cc: daniel@zonque.org, dh.herrmann@googlemail.com, tixxdz@opendz.org, "linux-kernel@vger.kernel.org" Subject: Re: samples: kdbus: kdbus-workers: Define dummy prime_new() Message-ID: <20150404082626.GA14097@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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