From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757639Ab0GTAYR (ORCPT ); Mon, 19 Jul 2010 20:24:17 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:61123 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754734Ab0GTAYP (ORCPT ); Mon, 19 Jul 2010 20:24:15 -0400 Date: Mon, 19 Jul 2010 17:23:10 -0700 From: Randy Dunlap To: Stephen Rothwell , Scott Smedley , gregkh@suse.de Cc: linux-next@vger.kernel.org, LKML , Marek Lindner , Simon Wunderlich , Andrew Lunn , b.a.t.m.a.n@lists.open-mesh.net Subject: [PATCH -next] staging: don't use default init_module/cleanup_module function names Message-Id: <20100719172310.87625ce4.randy.dunlap@oracle.com> In-Reply-To: <20100719133841.babc9ccb.sfr@canb.auug.org.au> References: <20100719133841.babc9ccb.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4C44EC93.00FF:SCFMA4539814,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fromy: Randy Dunlap Fix two staging drivers to use module_init()/module_exit() instead of default init_module() and cleanup_module() function names so that there are no name conflicts when both are built-in. drivers/staging/dt3155/built-in.o: In function `cleanup_module': (.text+0xc0): multiple definition of `cleanup_module' drivers/staging/batman-adv/built-in.o:(.text+0x330): first defined here drivers/staging/dt3155/built-in.o: In function `init_module': (.text+0xe60): multiple definition of `init_module' drivers/staging/batman-adv/built-in.o:(.text+0x400): first defined here Signed-off-by: Randy Dunlap Cc: Scott Smedley Cc: Marek Lindner Cc: Simon Wunderlich Cc: Andrew Lunn Cc: b.a.t.m.a.n@lists.open-mesh.net Cc: Greg Kroah-Hartman