Skip to content

Commit 82c1e49

Browse files
Alexey Dobriyantorvalds
authored andcommitted
proc: remove docbook and example
Example is outdated, it still uses old ->read_proc interfaces and "fb" example is plain racy. There are better examples all over the tree. Docbook itself says almost nothing about /proc and contain quite a number of simply wrong facts, e.g. device nodes support. What it does is describing at great length interface which are going to be removed. There are Documentation/filesystems/seq_file.txt in exchange. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Erik Mouw <mouw@nl.linux.org> Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7de3369 commit 82c1e49

3 files changed

Lines changed: 3 additions & 841 deletions

File tree

‎Documentation/DocBook/Makefile‎

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
DOCBOOKS := z8530book.xml mcabook.xml device-drivers.xml \
1010
kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
11-
procfs-guide.xml writing_usb_driver.xml networking.xml \
11+
writing_usb_driver.xml networking.xml \
1212
kernel-api.xml filesystems.xml lsm.xml usb.xml kgdb.xml \
1313
gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \
1414
genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
@@ -65,7 +65,7 @@ KERNELDOC = $(srctree)/scripts/kernel-doc
6565
DOCPROC = $(objtree)/scripts/basic/docproc
6666

6767
XMLTOFLAGS = -m $(srctree)/Documentation/DocBook/stylesheet.xsl
68-
#XMLTOFLAGS += --skip-validation
68+
XMLTOFLAGS += --skip-validation
6969

7070
###
7171
# DOCPROC is used for two purposes:
@@ -101,17 +101,6 @@ endif
101101
# Changes in kernel-doc force a rebuild of all documentation
102102
$(BOOKS): $(KERNELDOC)
103103

104-
###
105-
# procfs guide uses a .c file as example code.
106-
# This requires an explicit dependency
107-
C-procfs-example = procfs_example.xml
108-
C-procfs-example2 = $(addprefix $(obj)/,$(C-procfs-example))
109-
$(obj)/procfs-guide.xml: $(C-procfs-example2)
110-
111-
# List of programs to build
112-
##oops, this is a kernel module::hostprogs-y := procfs_example
113-
obj-m += procfs_example.o
114-
115104
# Tell kbuild to always build the programs
116105
always := $(hostprogs-y)
117106

@@ -238,7 +227,7 @@ clean-files := $(DOCBOOKS) \
238227
$(patsubst %.xml, %.pdf, $(DOCBOOKS)) \
239228
$(patsubst %.xml, %.html, $(DOCBOOKS)) \
240229
$(patsubst %.xml, %.9, $(DOCBOOKS)) \
241-
$(C-procfs-example) $(index)
230+
$(index)
242231

243232
clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man
244233

0 commit comments

Comments
 (0)