From patchwork Mon Aug 3 12:18:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 247379 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp1187574ilo; Mon, 3 Aug 2020 05:56:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6o1ebB8FO2SddbJ4VVk3VSPmhzYlXqIm22t1WNYMSA4WMf0Xw5NAyElFvfSINngRgqqA6 X-Received: by 2002:a05:6402:613:: with SMTP id n19mr1281662edv.230.1596459415592; Mon, 03 Aug 2020 05:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596459415; cv=none; d=google.com; s=arc-20160816; b=KUxlw5LqIRs2oeKaOGD7FYXDUQVxIqTEs3VYKGLZg5xKnOxrgbzogG19JC2i21JrbA CUQt9+1PaRq+ZuR/z8Oht83UkmzBvmsu7Mx4KNJvn5FgnKdYkuN8rUqNHFIxqYnMzzGs MovTfbq1q6DQ67WzFORTB8TkSQq07W/OWq/rnOVYHwsReu2hq2C3PZEuAflwbFG36n8l iT+NrUVo6QR4iakWEAjYQDz6OMfQcp6CRh6UUyLhBdHyPz0wjp8W8AUgGz0dG/53m4rh yAWJJr5HsUNG2VM9JD2sAFnDy4wQfg6v/93nx+7j282Q3Kx81qNuNG1n8nlJMzG59y6L 7pNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4WfMajKQLpxzlXMBTtyzdOpOTWoGUQGSArIG5o+qDu8=; b=HLR1YJBV7z/OmtereDzeRBYhUdtcZRRoaEAOO8HpMPlSqTFtjstU6pi0hY/PqSKlYL kC1bxR6932YbvvQdVG7oCPGZpXyexyyQwjraFoYX2q51OlsPWWj6+IqHwoc3EGq+6cii jDroUpQi1SsATLr3WTje9WoDW8IPOTvcDH39z2aoNEoFq2LcPvGKx+Ovr+jHqlCtg7VP wXmOpA+Pobx/WIAKWdqyGl0vUs/LTUdzcT/kRwUX42lD9HYqUHY6rIgwuKKCNLMM4QlL E1hjFHLATwYihE/xJ+KV/6FiRjdVDXPCckSoaL2y9nTEiUsEWaK+iPJBnG4Ly138jGjr Wzmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hYawputu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si10622653ejh.723.2020.08.03.05.56.55; Mon, 03 Aug 2020 05:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hYawputu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726835AbgHCMV5 (ORCPT + 15 others); Mon, 3 Aug 2020 08:21:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:45362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbgHCMVz (ORCPT ); Mon, 3 Aug 2020 08:21:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1085C20738; Mon, 3 Aug 2020 12:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596457313; bh=47QAnSMoOVMr8QHQNgdXK4N904/7dAfTkxp4OLgXePU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hYawputuZiS6r6a61BHzDLVOKnfxzrh0ebm4E/ZtKMX3Z+ha/amdNOOViUhRwUgud Dse81Drgbp3sIHHDHmsppanqt+hAgmOypC+nGKu+wYjLvK8Tr542gItUIzNN7jPqzp w1Z7A9p2R+5Rl3eBQmdy99Xu7QsHsEWlCx9zIqRE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grygorii Strashko , Linus Torvalds Subject: [PATCH 5.7 022/120] ARM: percpu.h: fix build error Date: Mon, 3 Aug 2020 14:18:00 +0200 Message-Id: <20200803121903.930048559@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803121902.860751811@linuxfoundation.org> References: <20200803121902.860751811@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Grygorii Strashko commit aa54ea903abb02303bf55855fb51e3fcee135d70 upstream. Fix build error for the case: defined(CONFIG_SMP) && !defined(CONFIG_CPU_V6) config: keystone_defconfig CC arch/arm/kernel/signal.o In file included from ../include/linux/random.h:14, from ../arch/arm/kernel/signal.c:8: ../arch/arm/include/asm/percpu.h: In function ‘__my_cpu_offset’: ../arch/arm/include/asm/percpu.h:29:34: error: ‘current_stack_pointer’ undeclared (first use in this function); did you mean ‘user_stack_pointer’? : "Q" (*(const unsigned long *)current_stack_pointer)); ^~~~~~~~~~~~~~~~~~~~~ user_stack_pointer Fixes: f227e3ec3b5c ("random32: update the net random state on interrupt and activity") Signed-off-by: Grygorii Strashko Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/arm/include/asm/percpu.h | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm/include/asm/percpu.h +++ b/arch/arm/include/asm/percpu.h @@ -5,6 +5,8 @@ #ifndef _ASM_ARM_PERCPU_H_ #define _ASM_ARM_PERCPU_H_ +#include + /* * Same as asm-generic/percpu.h, except that we store the per cpu offset * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7