Skip to contentSkip to conversation

x86/boot/compressed: Remove unused header includes from kaslr.c

PATCH Applied Borislav Petkov (AMD) 2 participants 2 messages Nov 30, 2024 – Dec 2, 2024 x86

lore
Share & tools
lore

Borislav Petkov (AMD)

author maintainer
#0 lore raw

PATCH 1/1 x86/boot/compressed: Remove unused header includes from kaslr.c

Nothing is using the linux/ namespace headers anymore. Remove them.

---

I'm really surprised how nothing really needs those includes anymore - at least my couple of 100 randbuilds all pass.

 arch/x86/boot/compressed/kaslr.c | 4 ----
 1 file changed, 4 deletions(-)
arch/x86/boot/compressed/kaslr.c +0 -4
index f4d82379bf44..f03d59ea6e40 100644
@@ -25,10 +25,6 @@
 #include "efi.h"
 
 #include <generated/compile.h>
-#include <linux/module.h>
-#include <linux/uts.h>
-#include <linux/utsname.h>
-#include <linux/ctype.h>
 #include <generated/utsversion.h>
 #include <generated/utsrelease.h>
 
Signature · 8 lines
2.43.0


-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#1 lore raw
The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     5daececd4ff533ab316ab360aba0bda1bf01961d
Gitweb:        https://git.kernel.org/tip/5daececd4ff533ab316ab360aba0bda1bf01961d
Author:        Borislav Petkov (AMD) <[email protected]>
AuthorDate:    Sat, 30 Nov 2024 13:26:44 +01:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Mon, 02 Dec 2024 16:44:32 +01:00

x86/boot/compressed: Remove unused header includes from kaslr.c

Nothing is using the linux/ namespace headers anymore. Remove them.

---
 arch/x86/boot/compressed/kaslr.c | 4 ----
 1 file changed, 4 deletions(-)
arch/x86/boot/compressed/kaslr.c +0 -4
index f4d8237..f03d59e 100644
@@ -25,10 +25,6 @@
 #include "efi.h"
 
 #include <generated/compile.h>
-#include <linux/module.h>
-#include <linux/uts.h>
-#include <linux/utsname.h>
-#include <linux/ctype.h>
 #include <generated/utsversion.h>
 #include <generated/utsrelease.h>