mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + fixdep-faster-config_-search-v2.patch added to -mm tree
@ 2016-08-24 21:22 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-08-24 21:22 UTC (permalink / raw)
  To: adobriyan, mmarek, mm-commits


The patch titled
     Subject: fixdep: faster CONFIG_ search
has been added to the -mm tree.  Its filename is
     fixdep-faster-config_-search-v2.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/fixdep-faster-config_-search-v2.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/fixdep-faster-config_-search-v2.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexey Dobriyan <adobriyan@gmail.com>
Subject: fixdep: faster CONFIG_ search

Link: http://lkml.kernel.org/r/20160824180305.GA22266@p183.telecom.by
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/basic/fixdep.c |   19 -------------------
 1 file changed, 19 deletions(-)

diff -puN scripts/basic/fixdep.c~fixdep-faster-config_-search-v2 scripts/basic/fixdep.c
--- a/scripts/basic/fixdep.c~fixdep-faster-config_-search-v2
+++ a/scripts/basic/fixdep.c
@@ -114,11 +114,6 @@
 #include <ctype.h>
 #include <arpa/inet.h>
 
-#define INT_CONF ntohl(0x434f4e46)
-#define INT_ONFI ntohl(0x4f4e4649)
-#define INT_NFIG ntohl(0x4e464947)
-#define INT_FIG_ ntohl(0x4649475f)
-
 int insert_extra_deps;
 char *target;
 char *depfile;
@@ -435,22 +430,8 @@ static void print_deps(void)
 	close(fd);
 }
 
-static void traps(void)
-{
-	static char test[] __attribute__((aligned(sizeof(int)))) = "CONF";
-	int *p = (int *)test;
-
-	if (*p != INT_CONF) {
-		fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianness? %#x\n",
-			*p);
-		exit(2);
-	}
-}
-
 int main(int argc, char *argv[])
 {
-	traps();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-24 21:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-24 21:22 + fixdep-faster-config_-search-v2.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).