Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946178AbXBPSFR (ORCPT ); Fri, 16 Feb 2007 13:05:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946176AbXBPSFR (ORCPT ); Fri, 16 Feb 2007 13:05:17 -0500 Received: from tomts22.bellnexxia.net ([209.226.175.184]:65255 "EHLO tomts22-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946171AbXBPSFP (ORCPT ); Fri, 16 Feb 2007 13:05:15 -0500 Date: Fri, 16 Feb 2007 13:05:13 -0500 From: Mathieu Desnoyers To: Andrew Morton Cc: Tilman Schmidt , linux-kernel@vger.kernel.org Subject: [PATCH] Move include linux/marker.h to kernel.h Message-ID: <20070216180513.GC14004@Krystal> References: <20070215051408.a7fb7d81.akpm@linux-foundation.org> <45D483D7.2040609@imap.cc> <20070215144142.0c13580a.akpm@linux-foundation.org> <20070215224656.GB6297@Krystal> <20070215154418.88edfcbc.akpm@linux-foundation.org> <20070216003739.GC9851@Krystal> <20070215172242.ab7a6f1e.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20070215172242.ab7a6f1e.akpm@linux-foundation.org> X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.4.34-grsec (i686) X-Uptime: 13:00:38 up 14 days, 8:08, 5 users, load average: 1.20, 1.13, 1.22 User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1645 Lines: 48 Move include linux/marker.h to kernel.h * Andrew Morton (akpm@linux-foundation.org) wrote: > Oh. One could whack [include linux/marker.h] in kernel.h: pretty > much everything includes that. > > But it'd be better to simply require that the clients of this > infrastructure include the appropriate header file. We do that for > everything else and markers aren't special in this regard. It seems like the logical solution. This patch moves this include from Makefile to include/linux/kernel.h. Signed-off-by: Mathieu Desnoyers --- a/Makefile +++ b/Makefile @@ -308,9 +308,7 @@ AFLAGS_KERNEL = # Needed to be compatible with the O= option LINUXINCLUDE := -Iinclude \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ - -include include/linux/autoconf.h \ - -include \ - $(if $(KBUILD_SRC),$(srctree)/)include/linux/marker.h + -include include/linux/autoconf.h CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include -- Mathieu Desnoyers Computer Engineering Ph.D. Candidate, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/