Skip to contentSkip to conversation

Moving runnable code from Documentation (last 2 patches)

PATCH Superseded Shuah Khan 4 participants 7 messages Sep 26, 2016 – Oct 1, 2016

Subsystems (6)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Shuah Khan

author
#0 lore raw

cover Moving runnable code from Documentation (last 2 patches)

This patch series contains the last 2 patches to complete moving runnable code from Documentation to selftests, samples, and tools.

The first patch moves blackfin gptimers-example to samples and removes CONFIG_BUILD_DOCSRC.

The second one updates 00-INDEX files under Documentation to reflect the move of runnable code from Documentation.

Shuah Khan (2):
samples: move blackfin gptimers-example from Documentation
Doc: update 00-INDEX files to reflect the runnable code move

 Documentation/00-INDEX                    |  2 -
 Documentation/Makefile                    |  1 -
 Documentation/arm/00-INDEX                |  2 -
 Documentation/blackfin/00-INDEX           |  4 --
 Documentation/blackfin/Makefile           |  5 --
 Documentation/blackfin/gptimers-example.c | 91 -------------------------------
 Documentation/filesystems/00-INDEX        |  2 -
 Documentation/networking/00-INDEX         |  2 -
 Documentation/spi/00-INDEX                |  2 -
 Documentation/timers/00-INDEX             |  2 -
 Makefile                                  |  3 -
 lib/Kconfig.debug                         |  9 ---
 samples/Kconfig                           |  6 ++
 samples/Makefile                          |  2 +-
 samples/blackfin/Makefile                 |  1 +
 samples/blackfin/gptimers-example.c       | 91 +++++++++++++++++++++++++++++++
 16 files changed, 99 insertions(+), 126 deletions(-)
 delete mode 100644 Documentation/Makefile
 delete mode 100644 Documentation/blackfin/Makefile
 delete mode 100644 Documentation/blackfin/gptimers-example.c
 create mode 100644 samples/blackfin/Makefile
 create mode 100644 samples/blackfin/gptimers-example.c
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/2 samples: move blackfin gptimers-example from Documentation

Move blackfin gptimers-example to samples and remove it from Documentation Makefile. Update samples Kconfig and Makefile to build gptimers-example.

blackfin is the last CONFIG_BUILD_DOCSRC target in Documentation/Makefile, hence this patch also includes changes to remove CONFIG_BUILD_DOCSRC from Makefile and lib/Kconfig.debug.

---
 Documentation/Makefile                    |  1 -
 Documentation/blackfin/00-INDEX           |  4 --
 Documentation/blackfin/Makefile           |  5 --
 Documentation/blackfin/gptimers-example.c | 91 -------------------------------
 Makefile                                  |  3 -
 lib/Kconfig.debug                         |  9 ---
 samples/Kconfig                           |  6 ++
 samples/Makefile                          |  2 +-
 samples/blackfin/Makefile                 |  1 +
 samples/blackfin/gptimers-example.c       | 91 +++++++++++++++++++++++++++++++
 10 files changed, 99 insertions(+), 114 deletions(-)
 delete mode 100644 Documentation/Makefile
 delete mode 100644 Documentation/blackfin/Makefile
 delete mode 100644 Documentation/blackfin/gptimers-example.c
 create mode 100644 samples/blackfin/Makefile
 create mode 100644 samples/blackfin/gptimers-example.c
Documentation/Makefile deleted +0 -1
deleted file mode 100644
index 8435965..0000000
@@ -1 +0,0 @@
-subdir-y := blackfin
Documentation/blackfin/00-INDEX +0 -4
index c54fcdd..265a1ef 100644
@@ -1,10 +1,6 @@
 00-INDEX
 	- This file
-Makefile
-	- Makefile for gptimers example file.
 bfin-gpio-notes.txt
 	- Notes in developing/using bfin-gpio driver.
 bfin-spi-notes.txt
 	- Notes for using bfin spi bus driver.
-gptimers-example.c
-	- gptimers example
Documentation/blackfin/Makefile deleted +0 -5
deleted file mode 100644
index 6782c58..0000000
@@ -1,5 +0,0 @@
-ifneq ($(CONFIG_BLACKFIN),)
-ifneq ($(CONFIG_BFIN_GPTIMERS),)
-obj-m := gptimers-example.o
-endif
-endif
Documentation/blackfin/gptimers-example.c deleted +0 -91

91 lines not on this page · raw message

Makefile +0 -3
index 1a8c8dd..de5136a 100644
@@ -926,9 +926,6 @@ vmlinux_prereq: $(vmlinux-deps) FORCE
 ifdef CONFIG_HEADERS_CHECK
 	$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
 endif
-ifdef CONFIG_BUILD_DOCSRC
-	$(Q)$(MAKE) $(build)=Documentation
-endif
 ifdef CONFIG_GDB_SCRIPTS
 	$(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py
 endif
lib/Kconfig.debug +0 -9
index 2e2cca5..ac15feb 100644
@@ -1857,15 +1857,6 @@ config PROVIDE_OHCI1394_DMA_INIT
 
 	  See Documentation/debugging-via-ohci1394.txt for more information.
 
-config BUILD_DOCSRC
-	bool "Build targets in Documentation/ tree"
-	depends on HEADERS_CHECK
-	help
-	  This option attempts to build objects from the source files in the
-	  kernel Documentation/ tree.
-
-	  Say N if you are unsure.
-
 config DMA_API_DEBUG
 	bool "Enable debugging of DMA-API usage"
 	depends on HAVE_DMA_API_DEBUG
samples/Kconfig +6 -0
index 85c405f..d67b4b7 100644
@@ -99,4 +99,10 @@ config SAMPLE_SECCOMP
 	  Build samples of seccomp filters using various methods of
 	  BPF filter construction.
 
+config SAMPLE_BLACKFIN_GPTIMERS
+	tristate "Build blackfin gptimers sample code -- loadable modules only"
+	depends on CONFIG_BLACKFIN && CONFIG_BFIN_GPTIMERS && m
+	help
+	  Build samples of blackfin gptimers sample module.
+
 endif # SAMPLES
samples/Makefile +1 -1
index 1a20169..e17d66d 100644
@@ -2,4 +2,4 @@
 
 obj-$(CONFIG_SAMPLES)	+= kobject/ kprobes/ trace_events/ livepatch/ \
 			   hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
-			   configfs/ connector/ v4l/ trace_printk/
+			   configfs/ connector/ v4l/ trace_printk/ blackfin/
samples/blackfin/Makefile new file +1 -0
new file mode 100644
index 0000000..89b86cf
@@ -0,0 +1 @@
+obj-$(CONFIG_SAMPLE_BLACKFIN_GPTIMERS) += gptimers-example.o
samples/blackfin/gptimers-example.c new file +91 -0

91 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 2/2 Doc: update 00-INDEX files to reflect the runnable code move

In reply to Shuah Khan

Update 00-INDEX files with the current file list to reflect the runnable code move.

---
 Documentation/00-INDEX             | 2 --
 Documentation/arm/00-INDEX         | 2 --
 Documentation/filesystems/00-INDEX | 2 --
 Documentation/networking/00-INDEX  | 2 --
 Documentation/spi/00-INDEX         | 2 --
 Documentation/timers/00-INDEX      | 2 --
 6 files changed, 12 deletions(-)
Documentation/00-INDEX +0 -2
index cb9a6c6..b79d661 100644
@@ -45,8 +45,6 @@ IRQ.txt
 	- description of what an IRQ is.
 Intel-IOMMU.txt
 	- basic info on the Intel IOMMU virtualization support.
-Makefile
-	- some files in Documentation dir are actually sample code to build
 ManagementStyle
 	- how to (attempt to) manage kernel hackers.
 RCU/
Documentation/arm/00-INDEX +0 -2
index dea011c..b6e69fd 100644
@@ -8,8 +8,6 @@ Interrupts
 	- ARM Interrupt subsystem documentation
 IXP4xx
 	- Intel IXP4xx Network processor.
-Makefile
-	- Build sourcefiles as part of the Documentation-build for arm
 Netwinder
 	- Netwinder specific documentation
 Porting
Documentation/filesystems/00-INDEX +0 -2
index 9922939..f66e748 100644
@@ -2,8 +2,6 @@
 	- this file (info on some of the filesystems supported by linux).
 Locking
 	- info on locking rules as they pertain to Linux VFS.
-Makefile
-	- Makefile for building the filsystems-part of DocBook.
 9p.txt
 	- 9p (v9fs) is an implementation of the Plan 9 remote fs protocol.
 adfs.txt
Documentation/networking/00-INDEX +0 -2
index 415154a..98f3d4b 100644
@@ -10,8 +10,6 @@ LICENSE.qlge
 	- GPLv2 for QLogic Linux qlge NIC Driver
 LICENSE.qlcnic
 	- GPLv2 for QLogic Linux qlcnic NIC Driver
-Makefile
-	- Makefile for docsrc.
 PLIP.txt
 	- PLIP: The Parallel Line Internet Protocol device driver
 README.ipw2100
Documentation/spi/00-INDEX +0 -2
index 4644bf0..8e4bb17 100644
@@ -1,7 +1,5 @@
 00-INDEX
 	- this file.
-Makefile
-	- Makefile for the example sourcefiles.
 butterfly
 	- AVR Butterfly SPI driver overview and pin configuration.
 ep93xx_spi
Documentation/timers/00-INDEX +0 -2
index ee212a2..6ee117b 100644
@@ -8,8 +8,6 @@ hpet_example.c
 	- sample hpet timer test program
 hrtimers.txt
 	- subsystem for high-resolution kernel timers
-Makefile
-	- Build and link hpet_example
 NO_HZ.txt
 	- Summary of the different methods for the scheduler clock-interrupts management.
 timekeeping.txt
Signature · 1 line
2.7.4
Reviewed-by on the v1 series
#3 lore raw
In reply to Shuah Khan
Quoted 8 lines · Shuah Khan

This patch series contains the last 2 patches to complete moving runnable code from Documentation to selftests, samples, and tools.

The first patch moves blackfin gptimers-example to samples and removes CONFIG_BUILD_DOCSRC.

The second one updates 00-INDEX files under Documentation to reflect the move of runnable code from Documentation.

Looks good to me!

-Kees

Signature · 2 lines
Kees Cook
Nexus Security
author
#4 lore raw
In reply to Shuah Khan
Quoted 6 lines · Shuah Khan

This patch series contains the last 2 patches to complete moving runnable code from Documentation to selftests, samples, and tools.

The first patch moves blackfin gptimers-example to samples and removes CONFIG_BUILD_DOCSRC.

Quoted 7 lines

The second one updates 00-INDEX files under Documentation to reflect the move of runnable code from Documentation.

Shuah Khan (2):
samples: move blackfin gptimers-example from Documentation
Doc: update 00-INDEX files to reflect the runnable code move

Hi Jon and Michal,

Do these patches look good to you? I can get these into 4.9-rc1 with your Ack.

thanks,
-- Shuah

maintainer Acked-by
#5 lore raw
Quoted 14 lines · On Fri, 30 Sep 2016 07:57:51 -0600 Shuah Khan…
Quoted 6 lines

This patch series contains the last 2 patches to complete moving runnable code from Documentation to selftests, samples, and tools.

The first patch moves blackfin gptimers-example to samples and removes CONFIG_BUILD_DOCSRC.

Quoted 7 lines

The second one updates 00-INDEX files under Documentation to reflect the move of runnable code from Documentation.

Shuah Khan (2):
samples: move blackfin gptimers-example from Documentation
Doc: update 00-INDEX files to reflect the runnable code move

Quoted 4 lines

Hi Jon and Michal,

Do these patches look good to you? I can get these into 4.9-rc1 with your Ack.

Seems good to me.

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by
#6 lore raw

Dne 1.10.2016 v 09:10 Jonathan Corbet napsal(a):

Quoted 17 lines
Quoted 14 lines · On Fri, 30 Sep 2016 07:57:51 -0600 Shuah Khan <[email protected]> wrote:
Quoted 13 lines

This patch series contains the last 2 patches to complete moving runnable code from Documentation to selftests, samples, and tools.

The first patch moves blackfin gptimers-example to samples and removes CONFIG_BUILD_DOCSRC.

The second one updates 00-INDEX files under Documentation to reflect the move of runnable code from Documentation.

Shuah Khan (2):
samples: move blackfin gptimers-example from Documentation
Doc: update 00-INDEX files to reflect the runnable code move

Quoted 8 lines
Quoted 4 lines

Hi Jon and Michal,

Do these patches look good to you? I can get these into 4.9-rc1 with your Ack.

Seems good to me.

Likewise,

Michal