From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 6427D367B9F for ; Fri, 11 Sep 2026 14:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789137770; cv=none; b=tNSpP0nEPMPNzdfO78pphv4I7F8lnRBj/D7fkIYLXReJDFrsnU3b7cjVZNMDYHBURIjj3MWgJ8ugu3gXXQ1IsJne9wBonM3B+HVXdWI4Pm2yfq82zkXOMFgR2t/V23HL+KnoU2+Sqtafj9u+nfQ7pDZDZTSnLLm1JZxGYZy7YrE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789137770; c=relaxed/simple; bh=gz51FBCWhizVrU+7SLeOKliZNk1p8rWeS98CiQ+wXUY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AQHfDqob6mJP5V5/skaB9eAathXxtehBr7tGd9TIgpTJJt22uv+K/u7pcnakApjZJOAMfSkVNInYWMFH3mtWhAM/tbb01WFphMDIPZfwy/mYi8wNSRz4kj9zZMWO2ybVDNMb8lBLLaAa7VSTuQl4Oh0iyai8F/BH+9rzQuhBGpE= 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=TMvGMq1K; arc=none smtp.client-ip=209.85.128.41 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="TMvGMq1K" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-49d05d51553so10378615e9.2 for ; Fri, 11 Sep 2026 07:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1789137765; x=1789742565; 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=hNkJ+Y4UNh/VmhAHfWRxswemkYstE9GZTmx6wz4UC8Q=; b=TMvGMq1KXCQ8s+RpmILsIeGf8K0plpbDc3xU0HxW5q69wJ4IuhPeLCr5JbpsWff46R R339YRUVqRi6/PFpgzO+b+Us8b3f0Fv3RavXH/rvTME6crQSeuZQX5fhsYwkFumrKmhE MEMcuIHBwGYYUdn5MYSsoLeQRLHg/AjEpHokj7Aaii7ap4k7cJKFOQG/tiZUWjFTnYaP lsPtlukinpLRNsdB7EuXrUMMC5LQpfj6AItmxEaYlmVgQ+Cj3hNca/7UM3Qz9RNHGCD0 a+6gAPL2hEEwWw9sRZRHyAcQZxk+Xn8ONLqvZvqEgWqJuBbWYpFcDFky37P6I126tOtP Fcyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789137765; x=1789742565; 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=hNkJ+Y4UNh/VmhAHfWRxswemkYstE9GZTmx6wz4UC8Q=; b=HS0dg8iYyzx4LiEF4QkGpx+EvWvTPCHKi3a0z74oC0ZPwVybxlgeHaShwSl0Wm00ZN fsHUPtJ9Y6HKPS6cCS9SzpFzVA7uk7guCMYB5GsLQJsUaL/2VzkWaoBKfdcxivRDUwv8 YvZ4zoPA14sV0J5ctgQOr7SYYaekrYwpanNYo0hmJ0H7Ah7YZD/JwTfhIvMuaFVIez5I NndRBxtIXlsPsoIvZ7JufOHR576wckskHolVBMtLQVgYJOTX6yoS0yPXjmpxYIWxSPzs E+YfezVZSTwW0aYaD4zVEkrMzD+8umT3LRr2Y1CSkmrQKEQ84Tho/yh0cE5PypfHWjmW f+5Q== X-Forwarded-Encrypted: i=1; AKwUvBxa+rHiY/Snm9BuhyMt3rjudzEa/YV6dYsBvfXvma4WdaDGCsdqgGvhvnRARFpsah92JVvuPPJR8fIABxeEfuA=@vger.kernel.org X-Gm-Message-State: AFuF++k/E02ImQMCV5F+c3Qt4gLFX2d8q276HrXARbZABEjo2uoRiKQ5 Q3V+apZAGrJl+wyLkjNSOuudkpwJpCIq2ELnGpl0hqhQ4NSIjvwNHtFSLMTAwYWO7uE= X-Gm-Gg: AYBFou1SUr+eGjrz7rfBBmQnLrkpICw/YepvAwN8N1Uqoq823dLm8VahgKnzvL5Ykhb oGauexOASOVsrYRfB/pKhnpx8PdACxgOcgMSYn4E+u4OLmBODcPkLncxAIbUuJw2hLJ/o2vi2DQ uHGDzrSNNl+ya2NAQ5ocfkhZEq/GklfsE6Qrw/q2BL/jQ1n0qJgSNm1AQt4DLHj+5fYdhaYr5LB Kx/3llR6ak3Pk8Vpua2NvGxmPVCzCcCUwpk2WbVCbElP2v3J9KKlqprfC88V/UcPt94Kdw+5uNR 5/6XOSvLsFFQr5oy/PgMIOHxdG3dNoK/5/XhwF6sqkr2neVzyFODT8yx64Qywf8LPXzE+X++h57 Herp/DmuaqljaziMZU1tcO+XhXPnHAOmIYMOpQs+ulozKlM8wa9cCEqFlk8FEWvkientTRv7Lqi 574gQ62oc76UQC++c7EZZ6WWzguXd6jYqG15tGFNpjIZjqGJ3dIPuCRBlOogONItD8wNFraXaB9 e1KQPvTngdyHcRQ X-Received: by 2002:a05:600c:e557:20b0:49d:1d6a:4cfb with SMTP id 5b1f17b1804b1-49e619836d6mr35798025e9.1.1789137765611; Fri, 11 Sep 2026 07:42:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 07:42:45 -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 2/6] s390: Avoid indirect includes through linux/module.h -> linux/elf.h Date: Fri, 11 Sep 2026 16:40:32 +0200 Message-ID: <20260911-module-include-elf-v2-2-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-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Several s390 files use declarations that are provided indirectly through linux/module.h -> linux/elf.h: * arch/s390/kernel/nospec-branch.c: s390_kernel_write() -> linux/uaccess.h, * drivers/s390/char/uvdevice.c: copy_to_user(), copy_from_user(), put_user(), get_user() -> linux/uaccess.h; file_operations -> linux/fs.h. Add the missing includes to these files in preparation for removing the linux/elf.h include from linux/module.h. Signed-off-by: Petr Pavlu --- arch/s390/kernel/nospec-branch.c | 1 + drivers/s390/char/uvdevice.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/s390/kernel/nospec-branch.c b/arch/s390/kernel/nospec-branch.c index e11ec15960a1..b62da9e81e79 100644 --- a/arch/s390/kernel/nospec-branch.c +++ b/arch/s390/kernel/nospec-branch.c @@ -2,6 +2,7 @@ #include #include #include +#include #include int nobp = IS_ENABLED(CONFIG_KERNEL_NOBP); diff --git a/drivers/s390/char/uvdevice.c b/drivers/s390/char/uvdevice.c index 4d274a2ee84d..402b8a225d6b 100644 --- a/drivers/s390/char/uvdevice.c +++ b/drivers/s390/char/uvdevice.c @@ -28,6 +28,8 @@ #include #include #include +#include +#include #include #include -- 2.55.0