From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 6744436920D for ; Fri, 11 Sep 2026 14:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789137769; cv=none; b=aUKuuCUCk5MicifBfP4rA1uSUa2OI8WmwXF27oc1fTtSlWXBBmbMLIpNOjp8Co5mZrGTbwHGONYfwl656RQl6b57SM48gkpmEoz0m8Ii3LqNhVG0Rp+1ospZkNaIvCVaj06xCVtihlM23Efe31H+LGkUHfK5GqlphyN/+AMvUq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789137769; c=relaxed/simple; bh=gz51FBCWhizVrU+7SLeOKliZNk1p8rWeS98CiQ+wXUY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kNWLGF0YlWwimAYB4Uor7+yNnb02ZWvMaVPvDWNkONjg/lhKZaI9WgBJcJ10WhhS+VPJRuNtMB34RBrA6IvOEaquk9/uabx7wE5dqwCw1veeyFl7AgcyWJyRiKIEKMBu41+mcmwXRtH4H8x31mg40/iG+O7l5l9Zh+4YZQEgsOM= 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.53 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-f53.google.com with SMTP id 5b1f17b1804b1-49d05d51553so10378595e9.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=oRsBq1UAyHyYdodPEA3dznt531OHC34YJd1PQt2P0BNoT1SGt9Xwk0ZQqMJ703vCz4 GAAn27qIAnvo+JFbkNouZcDoRGtE8P6YvqBVsYXDJiu9CTNWXms3HmZC5wvu754i4R1T qIx89NfpTs1TixNqYgoDySAIQaWhQK5jrHyfg3TSBwLzrwePj1ATbYLgcSof0lKOZ2V8 iMPI2MQPfLAlVXHI8cnWEs03yP6+mv0KkzrgW233ZIo3qaOGxxiAL/BVBK2JP8ibBX3w Q21Kio3rPFTt8yT9peAZxXkGuZOzQehf62urbC7HWuIhNbPXuWvi65NKz9llk6V7XdDD OdSg== X-Forwarded-Encrypted: i=1; AKwUvByrWLiKEhbv1wRnbIqU6buGM6tYvxOURb+MukdWdz4s976X5agnlqmA2fIpUqWJO7FFLjLNUpE00cgLqJQ=@vger.kernel.org X-Gm-Message-State: AFuF++nwGx0q9AsipazmQ+f3cPnqEwmnZxaTmw03VaNsLdB6OTrwRRZ2 BczlpOElvV8kAMi+N+/2LcGatQAFZ1kGerK6N6ktnbmU147yM1S7Fr2XkYSR88Kk538= X-Gm-Gg: AYBFou0pEW/Rz8vh3OgYKAzm8tyRZ3TCirY2V8ne71WCNN3aw0tycQmxjFhA0ItDA33 R1h2Edh2u8aq5/wyc9G6sb4YRwInjxovgWIBR/U1aYAMTtQvdnL34EsEqbj60NxMh80qcM3H68z xaz9BZa/Fw/rxluydX50ikLmBFcSZEbqg9+87O6m+lZCkp2bhDnDJQ5u8O8f1gpqIviGhG4pbug gOfKtobR0nbicg6RaMA8Iv7wwmhyB846q5JyeaOTZakmxdwOibXFQoaBCDatJfalvwfFko+ZC2p D6GGwf4GgsubSQI9QA2p6eMi1ciUcUYuynNhiDRiimtmJeEMNS9/U9UTpBGeM1O5q33GKdvRefz jTGnNd5Y7Hj7O532jWME6dMlzipLvZnUPZ0APWq8oeu/9KiVv9ujo2hOKra7bRs21XF2TtsA/oW Ji9FjOmErR0GOrv5IJ/z7czPiC7XSu/u6JPme4BN7PnMHkc6jIq0LZNHVMCmRKkTMTApeeg6ULQ 4p+iYcZiaWTnvRz 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-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 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