# \[PATCH\] Compile problems in locking-selftest.c with CONFIG\_DEBUG\_PREEMPT

- From: John Kacur \<hidden\>
- Date: 2008-08-15 15:57:50 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2008/08/1139799
- Thread: https://ratatoskr.run/linux-rt-users/2008/08/1139799/t.md

```text
The attached patch fixes the following compiler error in the rt-kernel
if CONFIG_DEBUG_PREEMPT is enabled.

lib/locking-selftest.c: In function 'dotest':
lib/locking-selftest.c:951: error: incompatible types in initialization
lib/locking-selftest.c:1003: error: incompatible types in assignment
```

## Attachments

- [locking-selftest-fix.patch](https://ratatoskr.run/linux-rt-users/2008/08/1139799/attachment/0) (text/x-patch, 919 bytes)
