Revision 248,
663 bytes
checked in by atzm, 11 years ago
(diff) |
fixed coding rule
|
Rev | Line | |
---|
[246] | 1 | /* |
---|
| 2 | * ksyslog: In-kernel syslog receiver |
---|
| 3 | * Copyright(C) 2013 Atzm WATANABE All rights reserved |
---|
| 4 | * Distributed under the GPL |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | #ifndef KSYSLOG_COMPAT_H |
---|
| 8 | #define KSYSLOG_COMPAT_H |
---|
| 9 | |
---|
| 10 | #ifndef __list_for_each_rcu |
---|
| 11 | #define __list_for_each_rcu(pos, head) \ |
---|
| 12 | for (pos = rcu_dereference_raw(list_next_rcu(head)); \ |
---|
| 13 | pos != (head); \ |
---|
| 14 | pos = rcu_dereference_raw(list_next_rcu(pos))) |
---|
| 15 | #endif |
---|
| 16 | |
---|
[247] | 17 | #if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0) |
---|
[248] | 18 | static inline void |
---|
| 19 | udp_encap_enable(void) |
---|
[247] | 20 | { |
---|
| 21 | } |
---|
| 22 | #endif |
---|
| 23 | |
---|
[246] | 24 | #if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) |
---|
| 25 | #ifdef CONFIG_PROC_FS |
---|
| 26 | static inline void * |
---|
| 27 | PDE_DATA(const struct inode *inode) |
---|
| 28 | { |
---|
| 29 | return PDE(inode)->data; |
---|
| 30 | } |
---|
| 31 | #endif |
---|
| 32 | #endif |
---|
| 33 | |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.