From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760233AbcILPD5 (ORCPT ); Mon, 12 Sep 2016 11:03:57 -0400 Received: from mga07.intel.com ([134.134.136.100]:44408 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759457AbcILPDy (ORCPT ); Mon, 12 Sep 2016 11:03:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,323,1470726000"; d="scan'208";a="1028783594" Subject: Re: Build failures in -next: sys_pkey_mprotect etc. undefined To: Arnd Bergmann , Guenter Roeck References: <9d74497b-1522-b350-42fa-49df2df48c4a@roeck-us.net> <9369809.1DWhqOZ7mo@wuerfel> Cc: Thomas Gleixner , "open list:ABI/API" , linux-arch , linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: <57D6C3D7.2040606@linux.intel.com> Date: Mon, 12 Sep 2016 08:03:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <9369809.1DWhqOZ7mo@wuerfel> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/12/2016 07:59 AM, Arnd Bergmann wrote: > On Monday, September 12, 2016 7:55:33 AM CEST Guenter Roeck wrote: >> Building h8300:allnoconfig ... failed >> Building h8300:h8300h-sim_defconfig ... failed >> Building c6x:dsk6455_defconfig ... failed >> >> [ and more builds for the same architectures ] >> >> -------------- >> Error log: >> arch/h8300/kernel/built-in.o:(.data+0x480): undefined reference to `sys_pkey_mprotect' >> arch/h8300/kernel/built-in.o:(.data+0x484): undefined reference to `sys_pkey_alloc' >> arch/h8300/kernel/built-in.o:(.data+0x488): undefined reference to `sys_pkey_free' >> >> Other architectures (frv, xtensa, score) currently fail to build for other reasons, >> so I don't really know if the above are the only ones affected. > > I think the best solution would be to add them to kernel/sys_ni.c so we can > assign syscall numbers for all architectures regardless of whether they use it > or not (most of them will never use these AFAICT). Urg, sorry about the breakage. I'll see if I can reproduce it and get a patch out later today that does this.