ich versuche gerade Qlogic-Treiber unter Linux 2.6.20 zu kompilieren, was leider nicht so ganz so einfach ist...
make -C /usr/src/linux O=/lib/modules/2.6.20-16-generic/build M=$PWD
liefert folgende Ausgabe:
Code: Alles auswählen
/opt/VMETRO/sas-x86-linux/fibre-channel-drivers/x86-linux/qla2xxx_80001/qla2xxx-8.00.01/qla2xxx_conf.c: In Funktion »conf_init«:
/opt/VMETRO/sas-x86-linux/fibre-channel-drivers/x86-linux/qla2xxx_80001/qla2xxx-8.00.01/qla2xxx_conf.c:41: Warnung: Implizite Deklaration der Funktion »inter_module_register«
/opt/VMETRO/sas-x86-linux/fibre-channel-drivers/x86-linux/qla2xxx_80001/qla2xxx-8.00.01/qla2xxx_conf.c: In Funktion »conf_exit«:
/opt/VMETRO/sas-x86-linux/fibre-channel-drivers/x86-linux/qla2xxx_80001/qla2xxx-8.00.01/qla2xxx_conf.c:47: Warnung: Implizite Deklaration der Funktion »inter_module_unregister«
WARNING: "inter_module_register" [/opt/VMETRO/sas-x86-linux/fibre-channel-drivers/x86-linux/qla2xxx_80001/qla2xxx-8.00.01/qla2xxx_conf.ko] undefined!
WARNING: "inter_module_unregister" [/opt/VMETRO/sas-x86-linux/fibre-channel-drivers/x86-linux/qla2xxx_80001/qla2xxx-8.00.01/qla2xxx_conf.ko] undefined!
Code: Alles auswählen
Das ist der Code:
/*
* QLOGIC LINUX SOFTWARE
*
* QLogic ISP2x00 device driver for Linux 2.6.x
* Copyright (C) 2003-2004 QLogic Corporation
* (www.qlogic.com)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/string.h>
/*
* Extended configuration parameters
*/
#include "qla_opts.h"
MODULE_DESCRIPTION("QLogic Persistent Binding Data Module");
MODULE_AUTHOR("QLogic Corporation");
MODULE_LICENSE("GPL");
char *qla_persistent_str = NULL ;
CONFIG_BEGIN("qla2xxx_conf")
CONFIG_ITEM("OPTIONS", "")
CONFIG_END
static int conf_init(void)
{
QLOPTS_CONFIGURE(qla_persistent_str);
inter_module_register("qla2xxx_conf", THIS_MODULE, qla_persistent_str);
return 0;
}
static void conf_exit (void)
{
inter_module_unregister("qla2xxx_conf");
}
module_init(conf_init);
module_exit(conf_exit);
Christian