From patchwork Wed May 11 15:54:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Salisbury X-Patchwork-Id: 1629640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=ps9IcelM; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kz00G41v4z9sG2 for ; Thu, 12 May 2022 01:57:01 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1noohq-0006R8-PX; Wed, 11 May 2022 15:56:54 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1noohl-0006PJ-Uh for kernel-team@lists.ubuntu.com; Wed, 11 May 2022 15:56:49 +0000 Received: from localhost.localdomain (1.general.jsalisbury.us.vpn [10.172.66.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 6464340E9C for ; Wed, 11 May 2022 15:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1652284609; bh=o7b68JUsqzLguBw5flNN9QOkob33WWIPJu/81ZSkz5Y=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ps9IcelMtwGTKuQE16ynB1sL7cHnwSi8pb9VO6UPuLkMBAKaFpGhVimeNAG/yN3sN 0kqS1xxlrgW4NWqjqmnYRUBJ9JnKi6nJ+hNqgwBHMvZ0JRwZlkSfZC6C7KqMLv6Crj fyntXbAazmXz3MLYYPdciJ50E+GUFuUSl09Bommx2fr2rNOqa1EnOaW3epQqLbv/3k /eOwWz5EEvJHt+02kyVAWGsAqZP9xxa1igmZLnV1m9LR5vGKFlbE8iTUEVb1rbAkRa 45VJp4bidS1Hy14jhnS7i3h2975J3oCsXM8WXH2BZTRlsSrquqOo9rMky+MibiRp/f XRjBXolRyD1tQ== From: Joseph Salisbury To: kernel-team@lists.ubuntu.com Subject: [SRU][Jammy][PATCH 1/1] x86/mm: Include spinlock_t definition in pgtable. Date: Wed, 11 May 2022 11:54:05 -0400 Message-Id: <20220511155405.250107-2-joseph.salisbury@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220511155405.250107-1-joseph.salisbury@canonical.com> References: <20220511155405.250107-1-joseph.salisbury@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Sebastian Andrzej Siewior BugLink: https://bugs.launchpad.net/bugs/1972899 This header file provides forward declartion for pgd_lock but does not include the header defining its type. This works since the definition of spinlock_t is usually included somehow via printk. By trying to avoid recursive includes on PREEMPT_RT I avoided the loop in printk and as a consequnce kernel/intel.c failed to compile due to missing type definition. Include the needed definition for spinlock_t. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Dave Hansen Link: https://lkml.kernel.org/r/20211102165224.wpz4zyhsvwccx5p3@linutronix.de (cherry picked from commit 35fa745286ac44ee26ed100c2bd2553368ad193b) Signed-off-by: Joseph Salisbury --- arch/x86/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 448cd01eb3ec..a34430b7af4a 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -22,6 +22,7 @@ #define pgprot_decrypted(prot) __pgprot(__sme_clr(pgprot_val(prot))) #ifndef __ASSEMBLY__ +#include #include #include #include