From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261290AbTDOLx7 (for ); Tue, 15 Apr 2003 07:53:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261294AbTDOLx7 (for ); Tue, 15 Apr 2003 07:53:59 -0400 Received: from ns.suse.de ([213.95.15.193]:33555 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S261290AbTDOLx5 (for ); Tue, 15 Apr 2003 07:53:57 -0400 Date: Tue, 15 Apr 2003 14:05:24 +0200 From: Andi Kleen To: M?ns Rullg?rd Cc: Andi Kleen , linux-kernel@vger.kernel.org Subject: Re: Writing modules for 2.5 Message-ID: <20030415120524.GA13567@wotan.suse.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 15, 2003 at 02:00:45PM +0200, M?ns Rullg?rd wrote: > Andi Kleen writes: > > > > What magic needs to be done when writing modules for linux 2.5.x? > > > Insmod tells me "Invalid module format" and the kernel log says "No > > > module found in object". I've tried to mimic the foo.mod.c stuff in > > > the kernel tree, but I can't figure out the right way to do it. > > > > Welcome to the wonderful new world of in kernel module loading, finally > > with understandable error messages. Now bad error reporting is not limited > > to netlink anymore. > > > > You need -DKBUILD_BASENAME=name > > Should I also add -DKBUILD_MODNAME=name? Yes. -Andi