lkml.org 
[lkml]   [2004]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Newbie-warning] MOD_INC_USE_COUNT usage
From
Date
Tim Cambrant <tim@cambrant.com> writes:

> So, why shouldn't this patch be applied?:
>
> --- drivers/ide/pci/generic.c.orig 2004-01-14 17:52:35.000000000 +0100
> +++ drivers/ide/pci/generic.c 2003-11-24 13:54:01.000000000 +0100
> @@ -121,6 +121,7 @@ static int __devinit generic_init_one(st
> return 1;
> }
> ide_setup_pci_device(dev, d);
> + MOD_INC_USE_COUNT;
> return 0;
> }

It isn't that easy - the module must be marked as being in use this
way or (preferably) another.
--
Krzysztof Halasa, B*FH
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.068 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site