Skip to contentSkip to conversation

A beginner spinlock question

DISCUSSION Mike-Ro-Chanel 1 participant 1 message Aug 29, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi All,
I'm writing my first "match" module for iptables.
I use spin_lock_bh()/spin_unlock_bh() functions for mutex between BHs.

My problem:

- I include <linux/spin_lock.h> for mutex functions declaration

- On Red Hat 9.0 with its 2.4.20-8 (redhat) kernel the compilation procedure goes all right.

- If I compile my module with 2.4.21 original (Linus) kernel I get this messages:

warning: implicit declaration of function `local_bh_disable'
warning: implicit declaration of function `local_bh_enable'

Anybody can help Me?

Regards.