From patchwork Thu Nov 29 18:43:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 1822231 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0677F3FC23 for ; Thu, 29 Nov 2012 18:46:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754797Ab2K2Spn (ORCPT ); Thu, 29 Nov 2012 13:45:43 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:56397 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754698Ab2K2SpO (ORCPT ); Thu, 29 Nov 2012 13:45:14 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so7821002pad.19 for ; Thu, 29 Nov 2012 10:45:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=Pu0SR25O/o2vF4PpTOdseoETC6RRnki5S9QpY2jN89M=; b=M4aj2HIVsjj4Eh+PSG/QuqggvENhWrBLLuzCefI48DhSre3sNTs/ig4Voq8IXgpKmC 3b59/S2js8yriuZJRTT2AbNkjdSQBZhONwKc8z/bdwszLEYMaUjc36zzAdAZkEOcpk3O Ua7Pp13d2oBcnVj0EgKR2TMdvARefWRDTReouB9cL2dXcP4jhSf83+qlOYb36zZ56RN7 Piv5IXr7r3S87FOPkw9cfb48N+lhLEV+dz9jC7d89ZaLqjzvdoP7o+CtHmzaY7rwQqMw IgMTB0Cunipt29u+OUCQaYt8hTAEToMuJfOZYC52VTAVIrbHP4TD0iPievyuwMM0riVn 3qtw== Received: by 10.66.72.100 with SMTP id c4mr63646706pav.64.1354214713813; Thu, 29 Nov 2012 10:45:13 -0800 (PST) Received: from localhost (c-67-168-183-230.hsd1.wa.comcast.net. [67.168.183.230]) by mx.google.com with ESMTPS id kc4sm1616613pbc.23.2012.11.29.10.45.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Nov 2012 10:45:12 -0800 (PST) Date: Thu, 29 Nov 2012 10:43:28 -0800 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, Rusty Russell , Jim Cromie , Borislav Petkov , Andrew Morton , Andi Kleen , Michal Marek , Tony Lindgren , Jonathan Kliegman , Chris Zankel Cc: Bill Pemberton , Fengguang Wu , Sam Ravnborg , linux-kbuild Subject: [PATCH 1/2] init.h: Remove __dev* sections from the kernel Message-ID: <20121129184328.GB15110@kroah.com> References: <20121129184133.GA15110@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20121129184133.GA15110@kroah.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQkEvj5lMY130KPszjK1GYFrvsVcNJk3TaJwOExNdaU4XTzu+E4SZ9sHjMfaKZ71zfd/Z1GN Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Greg Kroah-Hartman With the recent work to remove CONFIG_HOTPLUG, we are starting to get a bunch of __devinit section warnings, despite CONFIG_HOTPLUG always being enabled. So, stop marking the sections entirely, by defining them away the section markings in init.h Signed-off-by: Greg Kroah-Hartman Acked-by: Sam Ravnborg --- include/linux/init.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/init.h b/include/linux/init.h index e59041e..f63692d 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -93,13 +93,13 @@ #define __exit __section(.exit.text) __exitused __cold notrace -/* Used for HOTPLUG */ -#define __devinit __section(.devinit.text) __cold notrace -#define __devinitdata __section(.devinit.data) -#define __devinitconst __constsection(.devinit.rodata) -#define __devexit __section(.devexit.text) __exitused __cold notrace -#define __devexitdata __section(.devexit.data) -#define __devexitconst __constsection(.devexit.rodata) +/* Used for HOTPLUG, but that is always enabled now, so just make them noops */ +#define __devinit +#define __devinitdata +#define __devinitconst +#define __devexit +#define __devexitdata +#define __devexitconst /* Used for HOTPLUG_CPU */ #define __cpuinit __section(.cpuinit.text) __cold notrace @@ -126,10 +126,6 @@ #define __INITRODATA .section ".init.rodata","a",%progbits #define __FINITDATA .previous -#define __DEVINIT .section ".devinit.text", "ax" -#define __DEVINITDATA .section ".devinit.data", "aw" -#define __DEVINITRODATA .section ".devinit.rodata", "a" - #define __CPUINIT .section ".cpuinit.text", "ax" #define __CPUINITDATA .section ".cpuinit.data", "aw" #define __CPUINITRODATA .section ".cpuinit.rodata", "a"