Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14163072rwb; Sun, 27 Nov 2022 18:58:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6W0IMuDOswfHZhVjRtjtm+YVVNK+iWO3DQWL6eKACY0wfajSaLXu2+ynFswRp2Xk3rYgj1 X-Received: by 2002:a05:6402:2948:b0:463:bc31:2604 with SMTP id ed8-20020a056402294800b00463bc312604mr44858158edb.32.1669604297439; Sun, 27 Nov 2022 18:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669604297; cv=none; d=google.com; s=arc-20160816; b=fSi0FW+UbjzrLV5bgr/7T5s5q043LZ5KaZBJDX/J5iN7i+ZwNtxyLixXIvA2Z1KAi4 JbJ/RuqHqJ4Kxan07z6VA0eWkccoxotvnVoQi3RdX0RGJI844RwpqW8zokYOMy52jXWM m8nzCaHjtWWXZrbjDJeQqlGOon0B76aSBwH312sdIFqa7GMcrsrxYk6tYoZq2tYJh1H2 3fKB3lQTf4DbXWHQsNNhp6rY+E0fFvtmjxHe3O8B0+oAAXOXWMturdq+m8aGMCXcZ9PE YFsCmDc6nJ2CtnOA2r1wh6bcj4i5BeMHX9tqh68VOPcp1AD6i/+CSebqM56+jaIser8d l60Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xb14-20020a170907070e00b00787b9cd2fe3si8823107ejb.844.2022.11.27.18.57.55; Sun, 27 Nov 2022 18:58:17 -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 + 84 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 ); 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 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 Subject: [RFC PATCH 01/13] powerpc/book3s: Add missing 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: X-Mailing-List: linux-kernel@vger.kernel.org The functions here use struct thread_struct fields, so need to import the full definition from . The header that defines current only forward declares struct thread_struct. Failing to include this header leads to a compilation error when a translation unit does not also include indirectly. Signed-off-by: Benjamin Gray --- 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 +#include DECLARE_STATIC_KEY_FALSE(uaccess_flush_key); -- 2.38.1