From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753374AbcILUcd (ORCPT ); Mon, 12 Sep 2016 16:32:33 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:34874 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbcILUcb (ORCPT ); Mon, 12 Sep 2016 16:32:31 -0400 Date: Mon, 12 Sep 2016 13:32:29 -0700 From: Guenter Roeck To: Dave Hansen Cc: Thomas Gleixner , Arnd Bergmann , "open list:ABI/API" , linux-arch , linux-kernel@vger.kernel.org Subject: Re: Build failures in -next: sys_pkey_mprotect etc. undefined Message-ID: <20160912203229.GA2516@roeck-us.net> References: <9d74497b-1522-b350-42fa-49df2df48c4a@roeck-us.net> <57D70B6D.6010208@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57D70B6D.6010208@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On Mon, Sep 12, 2016 at 01:09:17PM -0700, Dave Hansen wrote: > On 09/12/2016 07:55 AM, 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' > > So, I've done what Arnd suggested, but I don't have a working > cross-compiler than can do h8300 or c6x. Could you test the attached > patch and see if it gets things working for you? > Works for both h8300 and c6x. Feel free to add Tested-by: Guenter Roeck > Also, do you have a handy place to grab a cross-compiler for h8300 > without having to build one? The kernel.org ones don't seem to work for > h8300. > Try http://server.roeck-us.net/toolchains/. Should be position independent. Guenter