Re: [PATCH]: cmpci 6.82 released

Willy Tarreau
2004-05-02T19:37:31Z

Hi all,

I just happened to fail to compile cmpci-6.82 on 2.4.26 with SMP, because
of order of includes. Basically, interrupt.h references files which use
smp_processor_id() which references current, and this one is not declared
yet. This trivial patch fixes it, at least on 2.4.26.

Regards,
Willy

--- ./drivers/sound/cmpci.c.orig Sun May 2 21:20:42 2004
+++ ./drivers/sound/cmpci.c Sun May 2 21:20:52 2004
@@ -109,9 +109,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/string.h>
-#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/sched.h>
+#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/sound.h>
#include <linux/slab.h>