[COMMITTED] Remove unnecessary include in memmove_chk.c

Message ID 20140626183454.GA4477@spoyarek.pnq.redhat.com
State Committed
Headers

Commit Message

Siddhesh Poyarekar June 26, 2014, 6:34 p.m. UTC
  I have pushed this as obvious since the generated code is identical
before and after on x86_64.  As a bonus, it gets rid of two -Wundef
warnings that were unnecessarily inherited from pagecopy.h.

Siddhesh

commit b97c9ce50d5d004285fc43c3f99b27630a155c5f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Fri Jun 27 00:01:37 2014 +0530

    Remove unnecessary include in memmove_chk
    
    This also has the side-effect of fixing a couple of Wundef warnings
    raised from pagecopy.h.  The generated code is identical before and
    after this patch.
  

Patch

diff --git a/ChangeLog b/ChangeLog
index 506eaed..44f96bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@ 
 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* debug/memmove_chk.c: Remove pagecopy.h include.
+
 	* time/mktime.c (leapyear): Remove inline keyword.  The code is now
 	identical to gnulib mktime.
 
diff --git a/debug/memmove_chk.c b/debug/memmove_chk.c
index f8c4454..10eb632 100644
--- a/debug/memmove_chk.c
+++ b/debug/memmove_chk.c
@@ -20,7 +20,6 @@ 
 
 #include <string.h>
 #include <memcopy.h>
-#include <pagecopy.h>
 
 #ifndef MEMMOVE_CHK
 # define MEMMOVE_CHK __memmove_chk