From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760426AbYAKIzX (ORCPT ); Fri, 11 Jan 2008 03:55:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755817AbYAKIzL (ORCPT ); Fri, 11 Jan 2008 03:55:11 -0500 Received: from public.id2-vpn.continvity.gns.novell.com ([195.33.99.129]:31267 "EHLO public.id2-vpn.continvity.gns.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755783AbYAKIzJ convert rfc822-to-8bit (ORCPT ); Fri, 11 Jan 2008 03:55:09 -0500 Message-Id: <47873D11.76E4.0078.0@novell.com> X-Mailer: Novell GroupWise Internet Agent 7.0.2 HP Date: Fri, 11 Jan 2008 08:55:29 +0000 From: "Jan Beulich" To: Subject: [PATCH 0/4] __cpuinitconst and __devinitconst Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since __cpuinitdata/__devinitdata don't allow const to be specified with them (otherwise .init.data sections with and without the writeable attribute will be generated by the compiler), and since __devinitdata except for embedded systems evaluates to unconditionally and __cpuinitdata at least in most production kernel configurations also likely evaluates to , it seems appropriate to add an additional attribute allowing the respective objects to end up in .rodata rather than .data when not used at initialization time only. Patch 1 introduces __cpuinitconst and a single common code consumer. Patch 2 adds a number of x86 consumers of __cpuinitconst. Patch 3 introduces __devinitconst and common code consumers. Patch 4 adds a number of x86 consumers of __devinitconst. Signed-off-by: Jan Beulich