From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAA2236654C for ; Fri, 11 Sep 2026 14:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789137773; cv=none; b=sq3FIZRDXTm9nMMSGsRzahtMxY2xT2sQ3XBl6nzcZstfQrV1zbZGs2prM0qzTFAk2R64cXgUIB5eoBBZKuw2KDP7KSwnyiW5CdXXAxwSqtduW+mL/u1sThM1UTXZd0wGXHHsKubMygBdIH044YEAdPAtrsrokJzqauYj3c9Htf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789137773; c=relaxed/simple; bh=vyJh04de2eQI9xDXQLk2SsoY9d27ljdKRQo9PLvYs3c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DmK7SSwcXM8pC7upPYSz9YOJIR/BMhja0/t/gcPVIn/dKWeiwpU0ptzLeo9fMV3nhnUWSeCExYydfaL5mkriUaMjChgEgocV5aMIQ6NMh/njeYAdJoZrTYAfp1fUciBkAzcxvSbW3XFXIAgJwCBrmulsqGgwGMoBQz4uOqii1Yk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Ry9/DkDa; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Ry9/DkDa" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-49ccfae359fso8076475e9.3 for ; Fri, 11 Sep 2026 07:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1789137769; x=1789742569; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=q7y0rlVQh9abTylMWGDq0N15j8M2y0GYhOvmNvpShVQ=; b=Ry9/DkDaFZ4TdwpnSd2qNFVelkgZf0I+sK/vUSrXGJVDvUzGWKFLqdb8UxWJFtIRyd QGt2zLsY13XYCfEcx00KmUUPRDrGz+NYn9CJmX9yUyb6hq7gEJz42IC4MRCnwIaEcpdW tQUujaQLqeUNnfCJTTcjYm7FSljCpemBd6+PukhbHVRJ4Q4stj3C5SASxuwEvbjV0Osg /Q9Xgj+v7KR2zVR2teJezj0miqoZCcV0EC/BLQEfUdpZPOknI1tMHRR4RQUQMW5zLmKr P4KyxRefgvqyrABexKeT1gw6lYCx5pucDAHN4oMpIUKFHJiBPNydC9j33pcTbhnipiQE DZWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789137769; x=1789742569; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=q7y0rlVQh9abTylMWGDq0N15j8M2y0GYhOvmNvpShVQ=; b=j0G/a2qkWj6TUBXW317WLmBQZOBwDKL4JfAMDkQYyuE873n7ZD4yzcv6D9ADSgy5KJ yIhG6iLuyY4d55oKGW+q+MUsy+rf3di2AgwfurcO7Blt+CLkIcAeiKDdExq/ABQlsrUz un31t1KtVEcbwK13V8GXHObFvy5CIJzKLg6JhKKLDTqmmazQwxZTT9pjDERcJx4u2ubu RNOiSiTSc4imRpQ6vSa7WlJSxihtnAVzDyBDk21uuIJ/Tnphytyse7wz/cWM7q+iuvEf 77wZuHCu5pwGFUp6G34Fl5aeXpcb0rKpjoMGtS+r/ewESJkz/EblXlYU8LdGAaD0j/q1 NlCg== X-Forwarded-Encrypted: i=1; AKwUvBwunJoXsjnrfNHF1o9ULfmBFtL0d3I/Et/kjVeG+p9JE4tmMBhO7QomTKIutTYh+xV6CN39lcaq/r/AlO8=@vger.kernel.org X-Gm-Message-State: AFuF++kHib0DNYbTQlwEuDXXyuui4TEX2DwqUUNhB/vhYkCT9RiW/b/g oROcDqnqcEc+QpfRIY2NTxw/DxlBancreeXzaBl9x+09SMi1WPouCAPWc1Nl9/gIARo= X-Gm-Gg: AYBFou2nX8obJunqQKsgUWf7LjNg4JhHFa00f/G6PEeIbu6Pnq0KkInt/OVHgNxChQN L7F8ZhdPr22k/sb6UuaUFvG+ZAH4YctEVT1THnnY13LrANvml/2GDuPo7btHWjkgJXHuIHA2L/C kcPtwVh63SnGcGTXbf2CsrrOXoMJNI7icuxeIdhJCdR5iu/inBI7hlZuswSPLxJquHrPpYfKZ0I n0GzwXkbzMRMwxfTrWRTZJUrMRhFOdSFysIbqeUJBV7AX6T4vR0nkfbVvt0lLrExVjrJRaWiZbO zoYBtoBH2FhFh9MI9lcIy8grxnWh+9gX0AcRWb25oDaheEJOwYEpt4a1TiYL7bBVVo8Jtfnlprf Xy14RE18cnbK5+uGdYyjydX1O+j77MShBRwImfg5dcLkoR4Ttba8TxP0uNvYUrYzGgLQ2aA3Sak MIFxVdZG7a3C0AJSQbShPIZOrgc04svy3aDcdVxQOh/s2Sj1WU6aqdDgKQVzeWa80SAroOj/jWT B5/wA== X-Received: by 2002:a05:600c:4f43:b0:49c:fc6c:be0b with SMTP id 5b1f17b1804b1-49e619bd068mr62359435e9.17.1789137768683; Fri, 11 Sep 2026 07:42:48 -0700 (PDT) Received: from localhost.localdomain ([2001:af0:8000:1409:193:86:92:181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49e60ababd5sm107038405e9.4.2026.09.11.07.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 07:42:48 -0700 (PDT) From: Petr Pavlu To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Peter Huewe , Jarkko Sakkinen , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen Cc: Xin Li , "H. Peter Anvin" , Andy Lutomirski , Christian Borntraeger , Sven Schnelle , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Jason Gunthorpe , Aaron Tomlin , linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-integrity@vger.kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] s390: Remove the asm/mmu_context.h include from asm/elf.h Date: Fri, 11 Sep 2026 16:40:34 +0200 Message-ID: <20260911-module-include-elf-v2-4-954c732975fb@suse.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260911-module-include-elf-v2-0-954c732975fb@suse.com> References: <20260911-module-include-elf-v2-0-954c732975fb@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit The asm/mmu_context.h include was added to asm/elf.h by commit 146e4b3c8b92 ("[S390] 1K/2K page table pages.") in 2008, when the new macro elf_read_implies_exec() used disable_noexec() / current->mm->context.noexec. Commit 043d07084b53 ("[S390] Remove data execution protection") removed that macro in 2011 and asm/elf.h no longer needs asm/mmu_context.h. Several s390 files currently depend on declarations provided indirectly through asm/elf.h -> asm/mmu_context.h: * arch/s390/mm/mmap.c: check_asce_limit() -> asm/pgalloc.h, * arch/s390/kernel/processor.c: enter_lazy_tlb() -> asm/mmu_context.h. Add the missing includes to these files and remove the asm/mmu_context.h include from asm/elf.h. This is a preparatory cleanup for adding the asm/elf.h include in linux/cpufeature.h, which would otherwise create the following cycle: linux/pgtable.h -> asm/pgtable.h -> linux/cpufeature.h -> asm/elf.h -> asm/mmu_context.h -> asm/pgalloc.h -> linux/mm.h -> linux/pgtable.h Signed-off-by: Petr Pavlu --- arch/s390/include/asm/elf.h | 1 - arch/s390/kernel/processor.c | 1 + arch/s390/mm/mmap.c | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h index bb63fa4d20bb..e22e3ab25760 100644 --- a/arch/s390/include/asm/elf.h +++ b/arch/s390/include/asm/elf.h @@ -170,7 +170,6 @@ typedef s390_fp_regs elf_fpregset_t; typedef s390_regs elf_gregset_t; #include /* for task_struct */ -#include /* * This is used to ensure we don't load something for the wrong architecture. diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index e33a3eccda56..76b2c7478c6e 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c @@ -27,6 +27,7 @@ #include #include #include +#include unsigned long __read_mostly elf_hwcap; char elf_platform[ELF_PLATFORM_SIZE]; diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c index ef7bfc87758c..8206f347e00e 100644 --- a/arch/s390/mm/mmap.c +++ b/arch/s390/mm/mmap.c @@ -18,6 +18,7 @@ #include #include #include +#include static unsigned long stack_maxrandom_size(void) { -- 2.55.0