Commit
c3bef7bcaaa7d9f6704fcd81a171c9f0c91a2259
Exists in
master
and in
20 other branches
dlt-processor-sdk-linux-03.00.00.04, newt-ti-linux-3.12.y, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.12.10, smarc-ti-linux-3.12.y, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.12.y, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
proc: Move proc_fd() to fs/proc/fd.h
Move proc_fd() to fs/proc/fd.h.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing
2 changed files
with
5 additions
and
5 deletions
Side-by-side Diff
... |
... |
@@ -11,5 +11,10 @@ |
11
|
11 |
|
12
|
12 |
extern int proc_fd_permission(struct inode *inode, int mask); |
13
|
13 |
|
|
14 |
+static inline int proc_fd(struct inode *inode) |
|
15 |
+{ |
|
16 |
+ return PROC_I(inode)->fd; |
|
17 |
+} |
|
18 |
+ |
14
|
19 |
#endif /* __PROCFS_FD_H__ */ |
... |
... |
@@ -94,11 +94,6 @@ |
94
|
94 |
return get_pid_task(proc_pid(inode), PIDTYPE_PID); |
95
|
95 |
} |
96
|
96 |
|
97
|
|
-static inline int proc_fd(struct inode *inode) |
98
|
|
-{ |
99
|
|
- return PROC_I(inode)->fd; |
100
|
|
-} |
101
|
|
- |
102
|
97 |
static inline int task_dumpable(struct task_struct *task) |
103
|
98 |
{ |
104
|
99 |
int dumpable = 0; |