Changeset 243 for ksyslog


Ignore:
Timestamp:
10/02/13 00:06:05 (11 years ago)
Author:
atzm
Message:

support for kernel 3.x ABI

Location:
ksyslog/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ksyslog/trunk/ksyslog.c

    r242 r243  
    66 
    77#include <linux/module.h> 
     8#include <linux/inet.h> 
    89#include <linux/ip.h> 
    910#include <linux/udp.h> 
     
    6162{ 
    6263        struct file *file; 
    63         struct nameidata nd; 
     64        struct path ppath; 
    6465        mm_segment_t oldfs; 
    6566 
     
    6768        set_fs(get_ds()); 
    6869 
    69         if (unlikely(path_lookup(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &nd))) 
     70        if (unlikely(kern_path(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &ppath))) 
    7071                file = filp_open(path, O_CREAT|O_WRONLY|O_APPEND|O_LARGEFILE, 0600); 
    7172        else 
     
    210211                        entry->data[i] = ' '; 
    211212 
    212         INIT_RCU_HEAD(&entry->rcu); 
    213213        return entry; 
    214214} 
  • ksyslog/trunk/ksyslog.h

    r242 r243  
    99 
    1010#define UDP_ENCAP_KSYSLOG 16 
     11 
     12#ifndef __list_for_each_rcu 
     13#define __list_for_each_rcu(pos, head) \ 
     14        for (pos = rcu_dereference_raw(list_next_rcu(head)); \ 
     15                pos != (head); \ 
     16                pos = rcu_dereference_raw(list_next_rcu(pos))) 
     17#endif 
    1118 
    1219enum ksyslog_facility { 
Note: See TracChangeset for help on using the changeset viewer.