Re: kernel version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have included module.h in my source file. and also i compiled using this
opiton:
gcc -D__KERNEL__  -I/usr/src/linux-2.4/include -c <modulename>.Now when i
try to load the module it throws following warning error:
#/sbin/insmod ./<modulename.o>
loading ./<modulename> will taint the kernel:no licence
iam not able to understand why it is showing this error.

Regards,
R.Rupa
----- Original Message -----
From: "Felipe W Damasio" <felipewd@terra.com.br>
To: "Rupa" <rupa.ramakrishna@ionidea.com>
Cc: <lakshmi@nodeinfotech.com>; <kernelnewbies@nl.linux.org>
Sent: Monday, July 08, 2002 7:16 AM
Subject: Re: kernel version


> On Fri, 5 Jul 2002 18:15:17 +0530
> "Rupa" <rupa.ramakrishna@ionidea.com> wrote:
>
> R> In my source file, i have included
> R> #include <linux/version.h>
>
> You don't need it.
>
> As long as you include linux/module.h, linux/version is recursively
> included.
>
> R> and also i complied using this option
> R> gcc -D__MODULE__ -I/usr/include/linux-2.4/include -c <modulename>
>
> And you should get the "unknown kernel version" error.
>
> __MODULE__ is the wrong macro to define, try MODULE and the error
> will not occur.
>
> Throw a __KERNEL__ and you'll be fine.
>
> Felipe

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux