lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20130305164806.GA8515@udknight>
Date:	Wed, 6 Mar 2013 00:48:06 +0800
From:	Wang YanQing <udknight@...il.com>
To:	hpa@...or.com
Cc:	tglx@...utronix.de, mingo@...hat.com, x86@...nel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH v2]x86:boot: Remove unneccessary headers

asm/segment.h come from setup.S:
we used to need GDT_ENTRY_BOOT_CS
to setup gdt, but now we don't need it,
boot_gdt had been moved to kernel/head_32.S

generated/utsrelease.h come from setup.S:
we used to define kernel_version in setup.S,
but we don't need it now, because the
definition of kernel_version had been move
to boot/version.c

asm/e820.h come from setup.S:
we used to do the memory detect in setup.S,
but we don't need it now, because
we do memory detect in boot/memory.c

I can't finger out the commits import the changes
above, because all the changes happened before git
epoch :)

asm/page_types.h come from setup.S:
we used to need the __PAGE_OFFSET define
in page_types.h to compute ramdisk_max,
but now we don't need it in header.S anymore,
cf8fa920c(i386: handle an initrd in highmem (version 2))
remove it.

This patch remove the unneeded head files included
in header.S.

Signed-off-by: Wang YanQing <udknight@...il.com>
---
Changes:
V1-V2:
1:add more detail and long long log

 arch/x86/boot/header.S | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
index 9ec06a1..43a3502 100644
--- a/arch/x86/boot/header.S
+++ b/arch/x86/boot/header.S
@@ -15,11 +15,7 @@
  *
  */
 
-#include <asm/segment.h>
-#include <generated/utsrelease.h>
 #include <asm/boot.h>
-#include <asm/e820.h>
-#include <asm/page_types.h>
 #include <asm/setup.h>
 #include <asm/bootparam.h>
 #include "boot.h"
-- 
1.7.12.4.dirty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ