diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:36:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:11 -0400 |
commit | 0b07cb8271507ca99cca79222a1dc92ba415f06b (patch) | |
tree | 67e9ffdd701364cfa84df501d59a9a9e3e9c078e /Documentation | |
parent | 8401aa1f59975c03eeebd3ac6d264cbdfe9af5de (diff) |
Documentation/filesystems/seq_file.txt: create_proc_entry deprecated
Linked article in seq_file.txt still uses create_proc_entry which was
removed in commit 80e928f7ebb9 ("proc: Kill create_proc_entry()").
This patch adds information for kernel 3.10 and above
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/seq_file.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/filesystems/seq_file.txt b/Documentation/filesystems/seq_file.txt index a1e2e0dda907..1fe0ccb1af55 100644 --- a/Documentation/filesystems/seq_file.txt +++ b/Documentation/filesystems/seq_file.txt | |||
@@ -54,6 +54,15 @@ how the mechanism works without getting lost in other details. (Those | |||
54 | wanting to see the full source for this module can find it at | 54 | wanting to see the full source for this module can find it at |
55 | http://lwn.net/Articles/22359/). | 55 | http://lwn.net/Articles/22359/). |
56 | 56 | ||
57 | Deprecated create_proc_entry | ||
58 | |||
59 | Note that the above article uses create_proc_entry which was removed in | ||
60 | kernel 3.10. Current versions require the following update | ||
61 | |||
62 | - entry = create_proc_entry("sequence", 0, NULL); | ||
63 | - if (entry) | ||
64 | - entry->proc_fops = &ct_file_ops; | ||
65 | + entry = proc_create("sequence", 0, NULL, &ct_file_ops); | ||
57 | 66 | ||
58 | The iterator interface | 67 | The iterator interface |
59 | 68 | ||