On Tue, Oct 03, 2000 at 08:20:12PM +0000, Graham Murray wrote:
> i810_rng.c does not compile when not a module. It fails at line 384,
> which looks as though it should only be included when being built as a
> module.

 This patch fixes this. Could the maintainer comment? Is there a better
 way to do this?


--- linux-240-test9-clean/drivers/char/i810_rng.c       Tue Oct  3 22:12:37 2000
+++ linux/drivers/char/i810_rng.c       Tue Oct  3 22:36:01 2000
@@ -380,7 +380,7 @@
                rng_hw_enabled = 1;
                MOD_INC_USE_COUNT;
        } else {
-#ifndef __alpha__
+#if !defined(__alpha__) && defined (CONFIG_MODULE)
                if (GET_USE_COUNT (THIS_MODULE) > 0)
                        MOD_DEC_USE_COUNT;
                if (GET_USE_COUNT (THIS_MODULE) == 0)

-- 
Regards,
        Rasmus([EMAIL PROTECTED])

``When the president does it, that means that it is not illegal.''
             --Richard M. Nixon, TV interview with David Frost, 1977 May 4
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to