On 4/4/15 16:26, Greg KH wrote:
> 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 <[email protected]>
>> ---
>>  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?
> 

OK, thanks. I shall try to finish blackfin within this month. And try
the other archs within next month.

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to