From patchwork Wed Nov 10 01:57:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12611267 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CA76C433F5 for ; Wed, 10 Nov 2021 01:57:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE15B610F8 for ; Wed, 10 Nov 2021 01:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbhKJCAD (ORCPT ); Tue, 9 Nov 2021 21:00:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbhKJCAC (ORCPT ); Tue, 9 Nov 2021 21:00:02 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9227C061764; Tue, 9 Nov 2021 17:57:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=WxJ7AaomevfmvuBVwAfQsKHxkblqaJGiiptTvJ3ff5s=; b=KOAfIrSqS5nm3e64ocHR6Uew+w 51Qd6YzKNuiLZ04xXDV+6cyn+2nopw0br4FA0n/Ie/1nwYUAyZxf0GULHNgjuqJ2QIDUuYZIHqBjZ 7/D9GxqA48v6PVT6p+qbwK13p3KP1SIgMW8+NdsNCKcJDIwmUZ2x/M7jQLFXX4KRW49z2l1T57cMQ WJtOhG4MbM2B0+aBytJDcv7MPiMyNDruZ8i1K5UqlgpFJLBg1yvdkpWulAMxj1zTUztZRclSc/aT/ LH+Yg9+rB2eOeusVZqYAqXklrzZUAlRmDY/8bg44hK6zcyG854HdUzzll53v7et7kAHMtqqHxmfAy d1nbQhwA==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=merlin.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkcrR-008qQI-8m; Wed, 10 Nov 2021 01:57:14 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Linux Kernel Functional Testing , Naresh Kamboju , "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org Subject: [PATCH -next] parisc: stacktrace: add to prevent build error Date: Tue, 9 Nov 2021 17:57:08 -0800 Message-Id: <20211110015708.6512-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org stacktrace.c uses __kernel_text_address() so it needs to include . Otherwise there is a build error: arch/parisc/kernel/stacktrace.c: In function 'walk_stackframe': arch/parisc/kernel/stacktrace.c:25:21: error: implicit declaration of function '__kernel_text_address' [-Werror=implicit-function-declaration] 25 | if (__kernel_text_address(info.ip)) Fixes: aeb1e833a4c3 ("parisc: Switch to ARCH_STACKWALK implementation") Signed-off-by: Randy Dunlap Reported-by: Linux Kernel Functional Testing Cc: Naresh Kamboju Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-parisc@vger.kernel.org --- arch/parisc/kernel/stacktrace.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20211109.orig/arch/parisc/kernel/stacktrace.c +++ linux-next-20211109/arch/parisc/kernel/stacktrace.c @@ -8,6 +8,7 @@ * * TODO: Userspace stacktrace (CONFIG_USER_STACKTRACE_SUPPORT) */ +#include #include #include