dtrace4linux/linux — Issue #11: invalid storage class for function 'DEFINE_SEMAPHORE'
Author: msabramo
Created: 2012-02-29 20:23:01+00:00
State: open

```
Executing: /home/marca/src/dtrace4linux/newlinux/tools/make-me
make -C /lib/modules/2.6.32-38-generic/build M=/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver
CC [M] /home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.o
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c: In function 'dmutex_init':
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c:48: warning: type defaults to 'int' in declaration of 'DEFINE_SEMAPHORE'
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c:48: warning: parameter names (without types) in function declaration
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c:48: error: invalid storage class for function 'DEFINE_SEMAPHORE'
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c:51: error: 'null_sema' undeclared (first use in this function)
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c:51: error: (Each undeclared identifier is reported only once
/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.c:51: error: for each function it appears in.)
make[3]: *** [/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver/mutex.o] Error 1
make[2]: *** [_module_/home/marca/src/dtrace4linux/newlinux/build-2.6.32-38-generic/driver] Error 2
make[1]: *** [kernel] Error 2
tools/bug.sh
make: *** [all] Error 1
```

```
marca@ubuntu:~/src/dtrace4linux/newlinux$ uname -a
Linux ubuntu 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686 GNU/Linux

marca@ubuntu:~/src/dtrace4linux/newlinux$ ack-grep DEFINE_SEMAPHORE
driver/mutex.c
48:static DEFINE_SEMAPHORE(null_sema);
```