From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B37463B584F for ; Thu, 9 Apr 2026 14:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775746118; cv=none; b=XR9IKgMjEW1uud66I39TXrh/3OGzH3sbSfz44l4SJu/Cx3wXhkaTp9X0mR6I80W6SKTFkV7hkbZfcJQpLPb3XSIto79MkDUIvlTEF5jwP+PMEqtVjFKbcnVk+1MPa7nkcQVw16pZ7Sa+UNIQZX0QG/9SRxX022CU/cE5VH5rR/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775746118; c=relaxed/simple; bh=WfKVrJecyCuE8PgNA9MWqesOOVguuvI3ZBzfwDdZE04=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TtkdgAcwjF26u8/6HVuJT2PEMBQjqCz1lNgHCtjPe0/WgnfIu3I8AHUlSRXOePYHSpkziLyx7hTcJpNr1I1PFNrNBGQW2/Yf7psG7Q4G8aOZCQbaBVUkZds6utyHac7SyjgGvV6RcV2cNDeq+83shw2iKur/iN92TdoIRbmPtxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=blUy3oAY; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="blUy3oAY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775746108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=x2j7aQklZWoI3fGHANbfmI9mE1I6x3cbClTKp38MdtA=; b=blUy3oAYNnIc68DHdXplQsSkQn+R4lyo6bPrsAGff3Mh1w+tMEG5CUYreMgJ6vf4J3Krrt NJfrNZ5Nfb+LxpFCR0s553vqcTuNCohviZVGmObgDi16Fk2cxUfHIAPLcy13ssDfT2fY4r Uli9rLMrKmZcR1+KP333uey5Re6PYxE= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-7-Y3b4EH8LNjGd4NdTTIIbgQ-1; Thu, 09 Apr 2026 10:48:27 -0400 X-MC-Unique: Y3b4EH8LNjGd4NdTTIIbgQ-1 X-Mimecast-MFC-AGG-ID: Y3b4EH8LNjGd4NdTTIIbgQ_1775746105 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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 mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8DC2818002F7; Thu, 9 Apr 2026 14:48:25 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.49.64]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 54A893000C1B; Thu, 9 Apr 2026 14:48:21 +0000 (UTC) From: Thomas Huth To: x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: "H. Peter Anvin" , Coiby Xu , linux-kernel@vger.kernel.org Subject: [PATCH] x86/headers: Remove "#include " from set_memory.h Date: Thu, 9 Apr 2026 16:48:19 +0200 Message-ID: <20260409144819.2000120-1-thuth@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 From: Thomas Huth The "#include " has been added to set_memory.h in commit e1e6cd01d933 ("Revert "x86/mm: Remove unused __set_memory_prot()"") to provide the "pgprot_t" type in the prototype of __set_memory_prot(). Later, the prototype of __set_memory_prot() has been removed again, see commit 8a4e92b3260a ("x86/crash: Use set_memory_p() instead of __set_memory_prot()"), but the pgtable.h line has been left in the header. Thus, since it's not required here anymore, remove it now from set_memory.h. However, there is a indirect dependency on pgtable.h in the sev.h header file instead, so we now have to include it there to avoid that the build breaks. Signed-off-by: Thomas Huth --- arch/x86/include/asm/set_memory.h | 1 - arch/x86/include/asm/sev.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h index 4362c26aa992d..8d9f1c9aaa4ce 100644 --- a/arch/x86/include/asm/set_memory.h +++ b/arch/x86/include/asm/set_memory.h @@ -4,7 +4,6 @@ #include #include -#include #define set_memory_rox set_memory_rox int set_memory_rox(unsigned long addr, int numpages); diff --git a/arch/x86/include/asm/sev.h b/arch/x86/include/asm/sev.h index 0e6c0940100f3..3936c821d6b0a 100644 --- a/arch/x86/include/asm/sev.h +++ b/arch/x86/include/asm/sev.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include -- 2.53.0