From patchwork Thu Aug 20 09:20:19 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: 248033 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp1288959ils; Thu, 20 Aug 2020 05:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd5qjHS04xyTR82iwJFWeGod+pgW03KlrZTljkylIuBqL3Mp+w4mZHpTbnXXEeg88GnHH/ X-Received: by 2002:a50:954d:: with SMTP id v13mr2575780eda.337.1597925286289; Thu, 20 Aug 2020 05:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597925286; cv=none; d=google.com; s=arc-20160816; b=zDoKtKYaYfw4Rmk2VMT44d4GmKVdKEu8TI2O7WsQMdH3pIhVpp40MrMK4htoPas0B8 OvA+7/pwvOQArGxeH+/77YhCb4UTC8SMzsh65c8IF5fB0RYXD+ihlsosxJEufMcs22Zw DmpmzQbE4Vpxo0I7gFn7RCsA/FqR8/1TgGgLyglAuxcoaDeavoFJ4n9oJTamgXUgsMyi W5+nuFlYQ4K17bdpOHLQP0p46/3/xY1bcY2UMwRyyU6pSAxqWlC/qRiERqLSTSfOOhMn U2J7Xoj1XKpUQww7UT1HjdI4q64izq0dqIfHLlcAuKV/N8SAQosItXzm47P2JiAXxlOX Szvg== 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=JTmLZY3YaUSQeVTrmJ1iXa5w7QTIY45VHmnwDrPFqcw=; b=NkgXwpIuK6a5DBkM5VTW7sBhcOHTgskluRVb9W19r2ms9Gd3D7N2IaRaKlKPXJ0fun YlSnGd8qD69aiIqRXzJ8xg6BfQvS/NNdJe4+LMqcVok32ja4m0QlfOk21WGEcZJ8oxcb fck0kT/A6XT7XEwlskbnJmxpxwC7UiHQGRrGArQPiicXr8+/5iqngJ2746CpMqXdE1Hf Oft7SJanq+yJe+Gav6hHuA3uGUiYKJw/pf6uoAUY/gVu5Ar/8OMADGr8TnpoQka9oxFL +G85T6OVOURkGBwG/jy9mEJQS+vQXXnJk4DZ9cqszn1+jrL45eEu9p3+sNYFKZRQBDYe cBcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=axZq+jOm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si1603304edf.572.2020.08.20.05.08.06; Thu, 20 Aug 2020 05:08:06 -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=axZq+jOm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730240AbgHTJ6H (ORCPT + 15 others); Thu, 20 Aug 2020 05:58:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:41928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730027AbgHTJ57 (ORCPT ); Thu, 20 Aug 2020 05:57:59 -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 AE78E22B43; Thu, 20 Aug 2020 09:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597917479; bh=ysS3LGq+470SGw6FYTetlB33DoPN5s8hyLYUhLe+03M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=axZq+jOmz3V16jRSXJrKIrRkFjJgFdgVQfDKeRDco6ihdztoLqToGObBA5u+pOiaK yY02ysj9LOSPFHSyq+3Lz4tHjzzEiRpd0nuzpHsaKF8svOkh5zS0/6jgcW/LlN+KZl q6801/zqBNtu09NUH9E6szrq7E44ofC8oYLbrxZw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grygorii Strashko , Linus Torvalds Subject: [PATCH 4.9 046/212] ARM: percpu.h: fix build error Date: Thu, 20 Aug 2020 11:20:19 +0200 Message-Id: <20200820091604.699539923@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091602.251285210@linuxfoundation.org> References: <20200820091602.251285210@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 @@ -16,6 +16,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