Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Wed, 10 Oct 2007 06:36:00 -0700
Received: from ftp.linux-mips.org ([194.74.144.162]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Wed, 10 Oct 2007 06:35:59 -0700
Received: from localhost.localdomain ([127.0.0.1]:7659 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S20023203AbXJJNfo (ORCPT <rfc822;dan.stein@onstor.com> + 1 other);
	Wed, 10 Oct 2007 14:35:44 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 10 Oct 2007 14:35:23 +0100 (BST)
Received: from localhost.localdomain ([127.0.0.1]:6635 "EHLO
	dl5rb.ham-radio-op.net") by ftp.linux-mips.org with ESMTP
	id S20023175AbXJJNfV (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Wed, 10 Oct 2007 14:35:21 +0100
Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1])
	by dl5rb.ham-radio-op.net (8.14.1/8.13.8) with ESMTP id l9ADZJgf006395;
	Wed, 10 Oct 2007 14:35:19 +0100
Received: (from ralf@localhost)
	by denk.linux-mips.net (8.14.1/8.14.1/Submit) id l9ADZJMD006394;
	Wed, 10 Oct 2007 14:35:19 +0100
Date:	Wed, 10 Oct 2007 14:35:19 +0100
From:	Ralf Baechle <ralf@linux-mips.org>
To:	Andrew Morton <akpm@linux-foundation.org>
Cc:	linux-kernel@vger.kernel.org, linux-mips@linux-mips.org
Subject: [PATCH] Add assembler equivalents to __init{,date}_refok
Message-ID: <20071010133519.GA6237@linux-mips.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.14 (2007-02-12)
X-archive-position: 16935
X-ecartis-version: Ecartis v1.0.0
Sender:	linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: ralf@linux-mips.org
Precedence: bulk
X-list:	linux-mips
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 10 Oct 2007 13:35:59.0898 (UTC) FILETIME=[7E8D0FA0:01C80B42]

---
I need __INIT_REFOK to fix a MODPOST warning for a few MIPS configs which
have to call init code from .text very early in the game due to bootloader
issues.  __INITDATA_REFOK is just for consistency.

 include/linux/init.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/init.h b/include/linux/init.h
index 74b1f43..031edcc 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -66,8 +66,10 @@
 
 /* For assembly routines */
 #define __INIT		.section	".init.text","ax"
+#define __INIT_REFOK	.section	".text.init.refok","ax"
 #define __FINIT		.previous
 #define __INITDATA	.section	".init.data","aw"
+#define __INITDATA_REFOK .section	".data.init.refok","aw"
 
 #ifndef __ASSEMBLY__
 /*

