Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327206
b: refs/heads/master
c: f341980
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Wagner authored and Tejun Heo committed Sep 14, 2012
1 parent f394e83 commit 505438e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83b061fc09489fb1b827f65cdca014c37ed224bb
refs/heads/master: f3419807716be503c06f399b2bcbc68823be3a78
1 change: 1 addition & 0 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
#include <net/netns/generic.h>
#include <net/rtnetlink.h>
#include <net/sock.h>
#include <net/cls_cgroup.h>

#include <asm/uaccess.h>

Expand Down
6 changes: 6 additions & 0 deletions trunk/include/net/cls_cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ struct cgroup_cls_state
u32 classid;
};

extern void sock_update_classid(struct sock *sk);

#ifdef CONFIG_NET_CLS_CGROUP
static inline u32 task_cls_classid(struct task_struct *p)
{
Expand Down Expand Up @@ -62,6 +64,10 @@ static inline u32 task_cls_classid(struct task_struct *p)
}
#endif
#else
static inline void sock_update_classid(struct sock *sk)
{
}

static inline u32 task_cls_classid(struct task_struct *p)
{
return 0;
Expand Down
8 changes: 0 additions & 8 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -1486,14 +1486,6 @@ extern void *sock_kmalloc(struct sock *sk, int size,
extern void sock_kfree_s(struct sock *sk, void *mem, int size);
extern void sk_send_sigurg(struct sock *sk);

#ifdef CONFIG_CGROUPS
extern void sock_update_classid(struct sock *sk);
#else
static inline void sock_update_classid(struct sock *sk)
{
}
#endif

/*
* Functions to fill in entries in struct proto_ops when a protocol
* does not implement a particular function.
Expand Down

0 comments on commit 505438e

Please sign in to comment.