All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Cleanup: Remove misplaced config.h include
       [not found] <20120807144318.GA30155@Krystal>
@ 2012-08-07 14:46 ` David Goulet
  0 siblings, 0 replies; 2+ messages in thread
From: David Goulet @ 2012-08-07 14:46 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev, dgoulet

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Merged! Thx

Mathieu Desnoyers:
> config.h should _always_ be included first, before system headers,
> to ensure coherent size_t across the file.
> 
> We force the config.h inclusion by the compiler, so this is not an
> issue (configure.ac: DEFAULT_INCLUDES="-I\$(top_srcdir)
> -I\$(top_builddir) -I\$(top_builddir)/src
> -I\$(top_builddir)/include -include config.h"), but let's remove
> this misleading line of code.
> 
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> 
> --- diff --git a/src/common/hashtable/rculfhash.c
> b/src/common/hashtable/rculfhash.c index 776f9f3..423d186 100644 
> --- a/src/common/hashtable/rculfhash.c +++
> b/src/common/hashtable/rculfhash.c @@ -157,7 +157,6 @@ #include
> <stdint.h> #include <string.h>
> 
> -#include "config.h" #include <urcu.h> #include <urcu-call-rcu.h> 
> #include <urcu/arch.h>
> 
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJQISpMAAoJEELoaioR9I02IkMH/ilFqFAfZEUcKcheR6ZI0Nco
DrL8gyfVIJYcxQFUyduqSsc1vSOtqzlyF3OvyyfHgJBo1HilODrqRBJP5/ZBflDz
DgKkk46c2e3lrSm8pfjHgRDVPiPhTd+axyVjZ/dyGvrMvcPcjLH/QS/tEF1ziXP6
urVW4FT515fXUUYRPyd5K+ooWArlxwQTxExwpayHUqI8VmHHs9fqxjOB7YnkRhyl
vpoQSzyiHsjCPvk1YJoTeC1p5BJmy8YckkwUhNgxgiuuPUMDfhWMoUC76oj2AAR0
TM7m9NgjpdAOEr5TAXFhFJVb8FNaH7nuymiXD/o0aF0/k9ko5vBP5Tdo6RV3xGI=
=c0ji
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Cleanup: Remove misplaced config.h include
@ 2012-08-07 14:43 Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2012-08-07 14:43 UTC (permalink / raw)
  To: dgoulet; +Cc: lttng-dev

config.h should _always_ be included first, before system headers, to
ensure coherent size_t across the file.

We force the config.h inclusion by the compiler, so this is not an issue
(configure.ac: DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)
-I\$(top_builddir)/src -I\$(top_builddir)/include -include config.h"),
but let's remove this misleading line of code.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
---
diff --git a/src/common/hashtable/rculfhash.c b/src/common/hashtable/rculfhash.c
index 776f9f3..423d186 100644
--- a/src/common/hashtable/rculfhash.c
+++ b/src/common/hashtable/rculfhash.c
@@ -157,7 +157,6 @@
 #include <stdint.h>
 #include <string.h>
 
-#include "config.h"
 #include <urcu.h>
 #include <urcu-call-rcu.h>
 #include <urcu/arch.h>

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-07 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120807144318.GA30155@Krystal>
2012-08-07 14:46 ` [PATCH] Cleanup: Remove misplaced config.h include David Goulet
2012-08-07 14:43 Mathieu Desnoyers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.