Documentation/filesystems/seq_file.txt: create_proc_entry deprecated
authorFabian Frederick <[email protected]>
Fri, 6 Jun 2014 21:36:40 +0000 (14:36 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Jun 2014 23:08:11 +0000 (16:08 -0700)
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 <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/filesystems/seq_file.txt

index a1e2e0dda9074d1d8a3102df3488a8a5f29cfb17..1fe0ccb1af553b8307999bb0a7cb997326cc44ad 100644 (file)
@@ -54,6 +54,15 @@ how the mechanism works without getting lost in other details.  (Those
 wanting to see the full source for this module can find it at
 http://lwn.net/Articles/22359/).
 
+Deprecated create_proc_entry
+
+Note that the above article uses create_proc_entry which was removed in
+kernel 3.10. Current versions require the following update
+
+-      entry = create_proc_entry("sequence", 0, NULL);
+-      if (entry)
+-              entry->proc_fops = &ct_file_ops;
++      entry = proc_create("sequence", 0, NULL, &ct_file_ops);
 
 The iterator interface