Message ID | 20221128024458.46121-2-bgray@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5399110wrr; Sun, 27 Nov 2022 18:46:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RcXMfNK22aauWePGEXoxdEFi2o1mhAnTcoIb+EjcCxJ//XHnNVmcmltYPjNNyyNDIA7e4 X-Received: by 2002:a05:6402:3214:b0:459:278b:7a8b with SMTP id g20-20020a056402321400b00459278b7a8bmr30659513eda.355.1669603618755; Sun, 27 Nov 2022 18:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669603618; cv=none; d=google.com; s=arc-20160816; b=hAsPOdt7u22jumIYUAdK6v+AgDbogQLZLGlb4P/AXJW9KcM6XnkGfWfukLC0GnQdfP YS/4VBXsdgjBMcm1+dRyaxTRi5ymQRopbgR0TwW2LfDOcu3+O/yzi9eoDg2k3iukfPzX CANFAUUVn0WDgUqzV9ghWsaOx1slnfdYesUmEpNtgM0WTY7ZtFu04xMUaXSORIjiyTY3 MiE71rIzNWw8vPplM2nBTR9poCr/S/8++hHmW1UkOt57fQqLdTy+U3WnXHcm2EiGhBlw 9TYYmBGFt4WqzgM+yk3xAtlG0vcNuujDhFxWOJ/3WCGonbyo/4mzqxeLD1akK4Ljat7J 4xxg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iwfM4PqC5xuma4R+LSGOIpPZGvbAwQgR6S4771UnWTI=; b=hdK47W2K6QY1a4E8tNxtWHqKAVkpOyA3TblshZObfPBp3Th6MrTWyeAERYQcsxpn7k exGRRUPsthbdfc82J/Nywk+HheDQ6t5iojqoWpaZrX6pTomugd3kvGV1mXwjB4lpL844 hQS1OgVKART4Z9ebnrNWId88y7PV0eORF4StL/6AxcugrU88IDMMRlVKIUyy1uq4dp03 DMDldNICGERvh01GwpUXLH/+QPDno9ZmJZpDLGS73uquktNya06rP/T5hUTirXNfgjbh 4IsUg2N9THH+xPwnVb6X04FKGVC56YHtQBSFs5c9zyo74nkdMJi6PHEfjQYBkuZNlDR2 v4gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=lcER5PCn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xe10-20020a170907318a00b0078d148dafa3si9644173ejb.329.2022.11.27.18.46.36; Sun, 27 Nov 2022 18:46:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=lcER5PCn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbiK1CqI (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Sun, 27 Nov 2022 21:46:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiK1CqB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 27 Nov 2022 21:46:01 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF30634D; Sun, 27 Nov 2022 18:46:00 -0800 (PST) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AS1jwpV026327; Mon, 28 Nov 2022 02:45:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=iwfM4PqC5xuma4R+LSGOIpPZGvbAwQgR6S4771UnWTI=; b=lcER5PCnXD3gRIjgofak4YhPnvMOjVV1paRtvxqZ/qKxnNgyxGEO7gc3/g4szpjG9iUO uUkaqZ/9ZiXC1maQmxI4ChbY9Qag+7sftqQCX81cp77cdtwtboO0h705TfA644CTefvV qEYAaA2csbe3zy/dE82cIYK/4t62RikxzTOF5PttCbK/nwHtv+7aYLOUcDHFoqp0UG2z dpcbfrnzYhTZ8oTv6fwkJbK8JDK6o2vsrtJHlZ7n793+DNrh74eY4g5q7B1fnUBSlvCt 6ACNLQ9hkbJa0ztxvanSLKTBOi08kXGwn5nT8FfOAPnQk8ix+7gAz32o3tP+3ILf4EcF tw== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3m3vnnumyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Nov 2022 02:45:47 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2AS2a97u032559; Mon, 28 Nov 2022 02:45:45 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06ams.nl.ibm.com with ESMTP id 3m3a2hsurk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Nov 2022 02:45:45 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2AS2jhkq6554252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Nov 2022 02:45:43 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2AA94A405F; Mon, 28 Nov 2022 02:45:43 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C7CA7A4054; Mon, 28 Nov 2022 02:45:42 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 28 Nov 2022 02:45:42 +0000 (GMT) Received: from li-0d7fa1cc-2c9d-11b2-a85c-aed20764436d.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 45A3860306; Mon, 28 Nov 2022 13:45:39 +1100 (AEDT) From: Benjamin Gray <bgray@linux.ibm.com> To: linuxppc-dev@lists.ozlabs.org Cc: ajd@linux.ibm.com, ruscur@russell.cc, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, cmr@bluescreens.de, Benjamin Gray <bgray@linux.ibm.com> Subject: [RFC PATCH 01/13] powerpc/book3s: Add missing <linux/sched.h> include Date: Mon, 28 Nov 2022 13:44:46 +1100 Message-Id: <20221128024458.46121-2-bgray@linux.ibm.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221128024458.46121-1-bgray@linux.ibm.com> References: <20221128024458.46121-1-bgray@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: ZtQhJXBZ7LclClGhMdRk3WlCpSywNXWe X-Proofpoint-GUID: ZtQhJXBZ7LclClGhMdRk3WlCpSywNXWe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-28_02,2022-11-25_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211280018 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750706283843136405?= X-GMAIL-MSGID: =?utf-8?q?1750706283843136405?= |
Series |
Add DEXCR support
|
|
Commit Message
Benjamin Gray
Nov. 28, 2022, 2:44 a.m. UTC
The functions here use struct thread_struct fields, so need to import
the full definition from <linux/sched.h>. The <asm/current.h> header
that defines current only forward declares struct thread_struct.
Failing to include this <linux/sched.h> header leads to a compilation
error when a translation unit does not also include <linux/sched.h>
indirectly.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
---
arch/powerpc/include/asm/book3s/64/kup.h | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon Nov 28, 2022 at 12:44 PM AEST, Benjamin Gray wrote: > The functions here use struct thread_struct fields, so need to import > the full definition from <linux/sched.h>. The <asm/current.h> header > that defines current only forward declares struct thread_struct. > > Failing to include this <linux/sched.h> header leads to a compilation > error when a translation unit does not also include <linux/sched.h> > indirectly. > > Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> > --- > arch/powerpc/include/asm/book3s/64/kup.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/include/asm/book3s/64/kup.h b/arch/powerpc/include/asm/book3s/64/kup.h > index 54cf46808157..84c09e546115 100644 > --- a/arch/powerpc/include/asm/book3s/64/kup.h > +++ b/arch/powerpc/include/asm/book3s/64/kup.h > @@ -194,6 +194,7 @@ > #else /* !__ASSEMBLY__ */ > > #include <linux/jump_label.h> > +#include <linux/sched.h> > > DECLARE_STATIC_KEY_FALSE(uaccess_flush_key); > > -- > 2.38.1
diff --git a/arch/powerpc/include/asm/book3s/64/kup.h b/arch/powerpc/include/asm/book3s/64/kup.h index 54cf46808157..84c09e546115 100644 --- a/arch/powerpc/include/asm/book3s/64/kup.h +++ b/arch/powerpc/include/asm/book3s/64/kup.h @@ -194,6 +194,7 @@ #else /* !__ASSEMBLY__ */ #include <linux/jump_label.h> +#include <linux/sched.h> DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);