Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261795AbVBIGhd (ORCPT ); Wed, 9 Feb 2005 01:37:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261796AbVBIGhd (ORCPT ); Wed, 9 Feb 2005 01:37:33 -0500 Received: from fsmlabs.com ([168.103.115.128]:63210 "EHLO fsmlabs.com") by vger.kernel.org with ESMTP id S261795AbVBIGh2 (ORCPT ); Wed, 9 Feb 2005 01:37:28 -0500 Date: Tue, 8 Feb 2005 23:38:12 -0700 (MST) From: Zwane Mwaikambo To: Linux Kernel cc: John Levon , Andrew Morton Subject: [PATCH] OProfile: exit.text referenced in init.text Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 41 The linker doesn't complain, but i got this error on ARM which has similar code. oprofile_arch_exit: discarded in section `.exit.text' from arch/arm/oprofile/built-in.o arch/arm/oprofile/built-in.o(.init.text+0x4c): In function `oprofile_init': : relocation truncated to fit: R_ARM_PC24 oprofile_arch_exit oprofile_arch_init() oprofile_arch_exit() __exit nmi_exit() __exit exit_driverfs() Signed-off-by: Zwane Mwaikambo ===== arch/i386/oprofile/nmi_int.c 1.27 vs edited ===== --- 1.27/arch/i386/oprofile/nmi_int.c 2005-01-30 23:33:47 -07:00 +++ edited/arch/i386/oprofile/nmi_int.c 2005-02-08 23:08:33 -07:00 @@ -70,7 +70,7 @@ static int __init init_driverfs(void) } -static void __exit exit_driverfs(void) +static void exit_driverfs(void) { sysdev_unregister(&device_oprofile); sysdev_class_unregister(&oprofile_sysclass); @@ -420,7 +420,7 @@ int __init nmi_init(struct oprofile_oper } -void __exit nmi_exit(void) +void nmi_exit(void) { if (using_nmi) exit_driverfs(); - 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/