Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1369393pxu; Mon, 23 Nov 2020 20:34:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJx70TRzzBiSzV8PI87STtgl5L+yrY/napY2A5ZcXP7si34+EmnPWFQBhucLKEa9gmaFtVV7 X-Received: by 2002:a05:6402:17b4:: with SMTP id j20mr2378263edy.24.1606192482864; Mon, 23 Nov 2020 20:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606192482; cv=none; d=google.com; s=arc-20160816; b=M/Dtxi5VHqBGuVnlchlouEqDXr1BTF4CZCj/KFjlBxiEXk/kbygJNg1K/6901mFrMp gf8ofsU5WxEhcMeumf0uQ8Z45BMwRCUwHAZd/+DZ0GU8BYPHZfOpSGa4w/AfL3y1EJ9E rxgDktUuzx8NpLKoaEo5HFE1zsOIIQoJpHdycQh0PVEfCqSCQFzq0RkhYI1yEXzgdhs2 qETaPLm8/xG6jWLzr8vYIX/adx7h65edXtVso6y9zgjdex/oOZf2sL+UckAos3uD6jy2 TiLA1K7gK91sb+t1z5i73QOHOz/QsWiyYXA688LUqHt59JG9fJs/rCPtJP95EBvPJc0Q CFgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0a+L2vO2HovlAZe8jqSyXeWxRplZR/dwbuwzMDr2H6M=; b=WMD9mj2ZGsgpcbaURzujpOiMTXsIw4fsYB1jDd7DE3//fKMTX7LVSy89DQ+mJrk+z3 nyZnTbWHYsFn2EiK7MfIEBQQNvVMeverKvWKC2sAfDOOOXaIIkuG/4SeVi5OjoqrVXQk P73ERtwjLVwUSH3740eJvFm/l6T19wTT0YHOtnvQdCnDSr9gxVRmNl/41SHh6Ezf5NvZ m5CIdDp+k1y2dxtZ2B/Tk4V5luhWgYu8vwgraYSCISH65xYr4H14a9xi+fnBUAQP+5u0 n8A0lF/3VPCkjIRdYo7vZ74IvawXeczkMm/e6PgwCxS1HBBOpAHtEvJRUCRJUp4VGF5E ypuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zxLUe7lM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 e12si7724386eje.644.2020.11.23.20.34.20; Mon, 23 Nov 2020 20:34:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=zxLUe7lM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732759AbgKWNdq (ORCPT + 99 others); Mon, 23 Nov 2020 08:33:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:35260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730017AbgKWMZg (ORCPT ); Mon, 23 Nov 2020 07:25:36 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 36F0C2076E; Mon, 23 Nov 2020 12:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134334; bh=9TNSILEiZYYklOtuCxbobqHGVG427ZMFU/vmbkl3gqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zxLUe7lMivdlRl/B7V3OHdQ/3TqQgyy+1zm82iNFtsPjpBS7sBsTi1snFY4ePkFke 1JkGZGXfbp+Zui+41E9IdbwFABfCaykXO1Wb5zuVxx45wcJ0L2xGNodIptgZ3j9kaZ Kw9B1li1sPN7JXpyYfHh+sdQYodma/B0BTiRPJYE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Guenter Roeck , Daniel Axtens Subject: [PATCH 4.9 34/47] powerpc/uaccess-flush: fix missing includes in kup-radix.h Date: Mon, 23 Nov 2020 13:22:20 +0100 Message-Id: <20201123121807.210505651@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.530891002@linuxfoundation.org> References: <20201123121805.530891002@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Axtens Guenter reports a build failure on cell_defconfig and maple_defconfg: In file included from arch/powerpc/include/asm/kup.h:10:0, from arch/powerpc/include/asm/uaccess.h:12, from arch/powerpc/lib/checksum_wrappers.c:24: arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: data definition has no type or storage class [-Werror] DECLARE_STATIC_KEY_FALSE(uaccess_flush_key); ^~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: type defaults to ‘int’ in declaration of ‘DECLARE_STATIC_KEY_FALSE’ [-Werror=implicit-int] arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: parameter names (without types) in function declaration [-Werror] arch/powerpc/include/asm/book3s/64/kup-radix.h: In function ‘prevent_user_access’: arch/powerpc/include/asm/book3s/64/kup-radix.h:18:6: error: implicit declaration of function ‘static_branch_unlikely’ [-Werror=implicit-function-declaration] if (static_branch_unlikely(&uaccess_flush_key)) ^~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: error: ‘uaccess_flush_key’ undeclared (first use in this function); did you mean ‘do_uaccess_flush’? if (static_branch_unlikely(&uaccess_flush_key)) ^~~~~~~~~~~~~~~~~ do_uaccess_flush arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: note: each undeclared identifier is reported only once for each function it appears in cc1: all warnings being treated as errors This is because I failed to include linux/jump_label.h in kup-radix.h. Include it. Reported-by: Guenter Roeck Signed-off-by: Daniel Axtens Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/book3s/64/kup-radix.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/include/asm/book3s/64/kup-radix.h +++ b/arch/powerpc/include/asm/book3s/64/kup-radix.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_KUP_RADIX_H #define _ASM_POWERPC_BOOK3S_64_KUP_RADIX_H +#include DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);