From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A32DC64E8A for ; Thu, 3 Dec 2020 11:38:10 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BC42120758 for ; Thu, 3 Dec 2020 11:38:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC42120758 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D328B6B0068; Thu, 3 Dec 2020 06:38:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CE2E96B0070; Thu, 3 Dec 2020 06:38:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C210C6B0071; Thu, 3 Dec 2020 06:38:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0249.hostedemail.com [216.40.44.249]) by kanga.kvack.org (Postfix) with ESMTP id AA0886B0068 for ; Thu, 3 Dec 2020 06:38:08 -0500 (EST) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 70506181AEF23 for ; Thu, 3 Dec 2020 11:38:08 +0000 (UTC) X-FDA: 77551772256.03.tiger10_0e045c8273bb Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin03.hostedemail.com (Postfix) with ESMTP id 52CF528A4E8 for ; Thu, 3 Dec 2020 11:38:08 +0000 (UTC) X-HE-Tag: tiger10_0e045c8273bb X-Filterd-Recvd-Size: 3623 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Thu, 3 Dec 2020 11:38:07 +0000 (UTC) Date: Thu, 3 Dec 2020 11:38:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1606995486; bh=YcyvvUezMxBr5iQC9U29enni79mpQC6SEVnoM4ijSv0=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=UB8hN//sNMPcuTKW391+1ia7rjHfMi0Pvb3jesumkNCwx7HHS8BFykcqh/Ex6OaN5 B82z1sNq8DqdRWEVt1iUBN6w4LsE2H0lXTUjPbNpzNbMS9RQmfvSJPqZFW5BPqsQwa 2QEueNnjYomhPkpbMIzWai9x/9u/1L8fmYTVKMw7PyBtmG+LmwcvLzGGz/VPuwo/sp OLWo6+VTueVQ4jlsiEvc6qGqjNd9kfxRFGkdSZC9xm414/BFjRTBCaxsQHKMIbftu0 0+JGxrGLEdG7OjUhMFn1Fln5HGWQF1/2tyShD5czl54JLHYfxgX4tdN7clwhrhzaCM JhXCYuifvILbw== From: Will Deacon To: kernel test robot Cc: Sumit Garg , kbuild-all@lists.01.org, Linux Memory Management List Subject: Re: [linux-next:master 7808/9562] watchdog_hld.c:undefined reference to `hw_nmi_get_sample_period' Message-ID: <20201203113801.GB31188@willie-the-truck> References: <202012031509.4O5ZoWNI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202012031509.4O5ZoWNI-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Dec 03, 2020 at 03:13:11PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 0eedceafd3a63fd082743c914853ef4b9247dbe6 > commit: 367c820ef08082e68df8a3bc12e62393af21e4b5 [7808/9562] arm64: Enable perf events based hard lockup detector > config: arm64-randconfig-r023-20201203 (attached as .config) > compiler: aarch64-linux-gcc (GCC) 9.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=367c820ef08082e68df8a3bc12e62393af21e4b5 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 367c820ef08082e68df8a3bc12e62393af21e4b5 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > aarch64-linux-ld: Unexpected GOT/PLT entries detected! > aarch64-linux-ld: Unexpected run-time procedure linkages detected! > aarch64-linux-ld: kernel/watchdog_hld.o: in function `hardlockup_detector_event_create': > >> watchdog_hld.c:(.text+0x68): undefined reference to `hw_nmi_get_sample_period' Looks like the Kconfig dependencies aren't quite right here. Sumit -- what do you think about the fix below? Will --->8 diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7d3440770b14..fe0d30a749b6 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -170,7 +170,7 @@ config ARM64 select HAVE_NMI select HAVE_PATA_PLATFORM select HAVE_PERF_EVENTS - select HAVE_PERF_EVENTS_NMI if ARM64_PSEUDO_NMI + select HAVE_PERF_EVENTS_NMI if ARM64_PSEUDO_NMI && HW_PERF_EVENTS select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI select HAVE_PERF_REGS select HAVE_PERF_USER_STACK_DUMP