LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 01/25] tty: Change return type to void
From: Jiri Slaby @ 2018-09-05  5:57 UTC (permalink / raw)
  To: Jaejoong Kim, sergei.shtylyov
  Cc: devel, Greg KH, linux-um, greybus-dev, linuxppc-dev,
	linux-bluetooth, LKML, linux-mmc, linux-s390, linux-serial,
	USB list, netdev, sparclinux
In-Reply-To: <CAL6iAaKzDPe7CMGR8VOBZRsJqZuNB1=zek_YVvwcKnjimbox2g@mail.gmail.com>

On 09/05/2018, 03:08 AM, Jaejoong Kim wrote:
>     > @@ -688,7 +688,7 @@ extern int tty_port_close_start(struct
>     tty_port *port,
>     >   extern void tty_port_close_end(struct tty_port *port, struct
>     tty_struct *tty);
>     >   extern void tty_port_close(struct tty_port *port,
>     >                               struct tty_struct *tty, struct file
>     *filp);
>     > -extern int tty_port_install(struct tty_port *port, struct
>     tty_driver *driver,
>     > +extern void tty_port_install(struct tty_port *port, struct
>     tty_driver *driver,
>     >                               struct tty_struct *tty);
> 
>         You need to update all the callers in the same patch -- the
>     kernel must
>     remain buildable after each patch but you seem to have spread that
>     update
>     among a lot of patches..
> 
> 
> OK. I will make several patches as one patch.

You don't have to. Just reorder the patches as suggested by Sam. (First,
make everybody ignore the return value, then change these return types
to void.)

BTW you can mention in this commit log, that this change is possible
after a3123fd0a4a5. That commit made tty_standard_install to always
return 0.

thanks,
-- 
js
suse labs

^ permalink raw reply

* Re: [PATCH] KVM: PPC: Book3S HV: Don't use compound_order to determine host mapping size
From: David Gibson @ 2018-09-05  3:59 UTC (permalink / raw)
  To: Nicholas Piggin; +Cc: kvm-ppc, Paul Mackerras, Aneesh Kumar K.V, linuxppc-dev
In-Reply-To: <20180904081601.32703-1-npiggin@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5572 bytes --]

On Tue, Sep 04, 2018 at 06:16:01PM +1000, Nicholas Piggin wrote:
> THP paths can defer splitting compound pages until after the actual
> remap and TLB flushes to split a huge PMD/PUD. This causes radix
> partition scope page table mappings to get out of synch with the host
> qemu page table mappings.
> 
> This results in random memory corruption in the guest when running
> with THP. The easiest way to reproduce is use KVM baloon to free up
> a lot of memory in the guest and then shrink the balloon to give the
> memory back, while some work is being done in the guest.
> 
> Cc: Paul Mackerras <paulus@ozlabs.org>
> Cc: David Gibson <david@gibson.dropbear.id.au>
> Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
> Cc: linuxppc-dev@lists.ozlabs.org
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>

Seems to fix the problem on my test case.

Tested-by: David Gibson <david@gibson.dropbear.id.au>

> ---
>  arch/powerpc/kvm/book3s_64_mmu_radix.c | 88 ++++++++++----------------
>  1 file changed, 34 insertions(+), 54 deletions(-)
> 
> diff --git a/arch/powerpc/kvm/book3s_64_mmu_radix.c b/arch/powerpc/kvm/book3s_64_mmu_radix.c
> index 0af1c0aea1fe..d8792445d95a 100644
> --- a/arch/powerpc/kvm/book3s_64_mmu_radix.c
> +++ b/arch/powerpc/kvm/book3s_64_mmu_radix.c
> @@ -525,8 +525,8 @@ int kvmppc_book3s_radix_page_fault(struct kvm_run *run, struct kvm_vcpu *vcpu,
>  				   unsigned long ea, unsigned long dsisr)
>  {
>  	struct kvm *kvm = vcpu->kvm;
> -	unsigned long mmu_seq, pte_size;
> -	unsigned long gpa, gfn, hva, pfn;
> +	unsigned long mmu_seq;
> +	unsigned long gpa, gfn, hva;
>  	struct kvm_memory_slot *memslot;
>  	struct page *page = NULL;
>  	long ret;
> @@ -623,9 +623,10 @@ int kvmppc_book3s_radix_page_fault(struct kvm_run *run, struct kvm_vcpu *vcpu,
>  	 */
>  	hva = gfn_to_hva_memslot(memslot, gfn);
>  	if (upgrade_p && __get_user_pages_fast(hva, 1, 1, &page) == 1) {
> -		pfn = page_to_pfn(page);
>  		upgrade_write = true;
>  	} else {
> +		unsigned long pfn;
> +
>  		/* Call KVM generic code to do the slow-path check */
>  		pfn = __gfn_to_pfn_memslot(memslot, gfn, false, NULL,
>  					   writing, upgrade_p);
> @@ -639,63 +640,42 @@ int kvmppc_book3s_radix_page_fault(struct kvm_run *run, struct kvm_vcpu *vcpu,
>  		}
>  	}
>  
> -	/* See if we can insert a 1GB or 2MB large PTE here */
> -	level = 0;
> -	if (page && PageCompound(page)) {
> -		pte_size = PAGE_SIZE << compound_order(compound_head(page));
> -		if (pte_size >= PUD_SIZE &&
> -		    (gpa & (PUD_SIZE - PAGE_SIZE)) ==
> -		    (hva & (PUD_SIZE - PAGE_SIZE))) {
> -			level = 2;
> -			pfn &= ~((PUD_SIZE >> PAGE_SHIFT) - 1);
> -		} else if (pte_size >= PMD_SIZE &&
> -			   (gpa & (PMD_SIZE - PAGE_SIZE)) ==
> -			   (hva & (PMD_SIZE - PAGE_SIZE))) {
> -			level = 1;
> -			pfn &= ~((PMD_SIZE >> PAGE_SHIFT) - 1);
> -		}
> -	}
> -
>  	/*
> -	 * Compute the PTE value that we need to insert.
> +	 * Read the PTE from the process' radix tree and use that
> +	 * so we get the shift and attribute bits.
>  	 */
> -	if (page) {
> -		pgflags = _PAGE_READ | _PAGE_EXEC | _PAGE_PRESENT | _PAGE_PTE |
> -			_PAGE_ACCESSED;
> -		if (writing || upgrade_write)
> -			pgflags |= _PAGE_WRITE | _PAGE_DIRTY;
> -		pte = pfn_pte(pfn, __pgprot(pgflags));
> +	local_irq_disable();
> +	ptep = __find_linux_pte(vcpu->arch.pgdir, hva, NULL, &shift);
> +	pte = *ptep;
> +	local_irq_enable();
> +
> +	/* Get pte level from shift/size */
> +	if (shift == PUD_SHIFT &&
> +	    (gpa & (PUD_SIZE - PAGE_SIZE)) ==
> +	    (hva & (PUD_SIZE - PAGE_SIZE))) {
> +		level = 2;
> +	} else if (shift == PMD_SHIFT &&
> +		   (gpa & (PMD_SIZE - PAGE_SIZE)) ==
> +		   (hva & (PMD_SIZE - PAGE_SIZE))) {
> +		level = 1;
>  	} else {
> -		/*
> -		 * Read the PTE from the process' radix tree and use that
> -		 * so we get the attribute bits.
> -		 */
> -		local_irq_disable();
> -		ptep = __find_linux_pte(vcpu->arch.pgdir, hva, NULL, &shift);
> -		pte = *ptep;
> -		local_irq_enable();
> -		if (shift == PUD_SHIFT &&
> -		    (gpa & (PUD_SIZE - PAGE_SIZE)) ==
> -		    (hva & (PUD_SIZE - PAGE_SIZE))) {
> -			level = 2;
> -		} else if (shift == PMD_SHIFT &&
> -			   (gpa & (PMD_SIZE - PAGE_SIZE)) ==
> -			   (hva & (PMD_SIZE - PAGE_SIZE))) {
> -			level = 1;
> -		} else if (shift && shift != PAGE_SHIFT) {
> -			/* Adjust PFN */
> -			unsigned long mask = (1ul << shift) - PAGE_SIZE;
> -			pte = __pte(pte_val(pte) | (hva & mask));
> -		}
> -		pte = __pte(pte_val(pte) | _PAGE_EXEC | _PAGE_ACCESSED);
> -		if (writing || upgrade_write) {
> -			if (pte_val(pte) & _PAGE_WRITE)
> -				pte = __pte(pte_val(pte) | _PAGE_DIRTY);
> -		} else {
> -			pte = __pte(pte_val(pte) & ~(_PAGE_WRITE | _PAGE_DIRTY));
> +		level = 0;
> +
> +		/* Can not cope with unknown page shift */
> +		if (shift && shift != PAGE_SHIFT) {
> +			WARN_ON_ONCE(1);
> +			return -EFAULT;
>  		}
>  	}
>  
> +	pte = __pte(pte_val(pte) | _PAGE_EXEC | _PAGE_ACCESSED);
> +	if (writing || upgrade_write) {
> +		if (pte_val(pte) & _PAGE_WRITE)
> +			pte = __pte(pte_val(pte) | _PAGE_DIRTY);
> +	} else {
> +		pte = __pte(pte_val(pte) & ~(_PAGE_WRITE | _PAGE_DIRTY));
> +	}
> +
>  	/* Allocate space in the tree and write the PTE */
>  	ret = kvmppc_create_pte(kvm, pte, gpa, level, mmu_seq);
>  

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply

* Re: Regression from patch 'tty: hvc: hvc_poll() break hv read loop'
From: Leon Romanovsky @ 2018-09-05  4:42 UTC (permalink / raw)
  To: Nicholas Piggin
  Cc: Jason Gunthorpe, Michael Ellerman, linuxppc-dev, linux-kernel
In-Reply-To: <20180905135156.7ac7727b@roar.ozlabs.ibm.com>

On Wed, Sep 05, 2018 at 01:51:56PM +1000, Nicholas Piggin wrote:
> On Tue, 4 Sep 2018 15:16:35 -0600
> Jason Gunthorpe <jgg@mellanox.com> wrote:
>
> > On Wed, Sep 05, 2018 at 07:15:29AM +1000, Nicholas Piggin wrote:
> > > On Tue, 4 Sep 2018 11:48:08 -0600
> > > Jason Gunthorpe <jgg@mellanox.com> wrote:
> > >
> > > > Hi Nicholas,
> > > >
> > > > I am testing 4.19-rc2 and I see bad behavior with my qemu hvc0
> > > > console..
> > > >
> > > > Running interactive with qemu (qemu-2.11.2-1.fc28) on the console
> > > > providing hvc0, using options like:
> > > >
> > > >         -nographic
> > > >         -chardev stdio,id=stdio,mux=on,signal=off
> > > >         -mon chardev=stdio
> > > > 	-device isa-serial,chardev=stdio
> > > >         -device virtio-serial-pci
> > > > 	-device virtconsole,chardev=stdio
> > > >
> > > > I see the hvc0 console hang regularly, ie doing something like 'up
> > > > arrow' in bash causes the hvc0 console to hang. Prior kernels worked
> > > > OK.
> > > >
> > > > Any ideas? I'm not familiar with this code.. Thanks!
> > >
> > > Yes I have had another report, I'm working on a fix. Sorry it has taken
> > > a while and thank you for the report.
> >
> > Okay, let me know when you have a fix and I will be able to test it
> > for you!
>
> Can you try this?

It worked for me, so it will work for Jason too (we have same setup).

Tested-by: Leon Romanovsky <leonro@mellanox.com>

Thanks

^ permalink raw reply

* Re: Regression from patch 'tty: hvc: hvc_poll() break hv read loop'
From: Nicholas Piggin @ 2018-09-05  3:51 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Michael Ellerman, linuxppc-dev, linux-kernel, Leon Romanovsky
In-Reply-To: <20180904211635.GD335@mellanox.com>

On Tue, 4 Sep 2018 15:16:35 -0600
Jason Gunthorpe <jgg@mellanox.com> wrote:

> On Wed, Sep 05, 2018 at 07:15:29AM +1000, Nicholas Piggin wrote:
> > On Tue, 4 Sep 2018 11:48:08 -0600
> > Jason Gunthorpe <jgg@mellanox.com> wrote:
> >   
> > > Hi Nicholas,
> > > 
> > > I am testing 4.19-rc2 and I see bad behavior with my qemu hvc0
> > > console..
> > > 
> > > Running interactive with qemu (qemu-2.11.2-1.fc28) on the console
> > > providing hvc0, using options like:
> > > 
> > >         -nographic
> > >         -chardev stdio,id=stdio,mux=on,signal=off
> > >         -mon chardev=stdio
> > > 	-device isa-serial,chardev=stdio
> > >         -device virtio-serial-pci
> > > 	-device virtconsole,chardev=stdio
> > > 
> > > I see the hvc0 console hang regularly, ie doing something like 'up
> > > arrow' in bash causes the hvc0 console to hang. Prior kernels worked
> > > OK.
> > > 
> > > Any ideas? I'm not familiar with this code.. Thanks!  
> > 
> > Yes I have had another report, I'm working on a fix. Sorry it has taken
> > a while and thank you for the report.  
> 
> Okay, let me know when you have a fix and I will be able to test it
> for you!

Can you try this?

diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c
index 5414c4a87bea..f5fc3ba49130 100644
--- a/drivers/tty/hvc/hvc_console.c
+++ b/drivers/tty/hvc/hvc_console.c
@@ -49,6 +49,8 @@
 #define N_OUTBUF	16
 #define N_INBUF		16
 
+#define HVC_ATOMIC_READ_MAX	128
+
 #define __ALIGNED__ __attribute__((__aligned__(sizeof(long))))
 
 static struct tty_driver *hvc_driver;
@@ -522,6 +524,8 @@ static int hvc_write(struct tty_struct *tty, const unsigned char *buf, int count
 		return -EIO;
 
 	while (count > 0) {
+		int ret;
+
 		spin_lock_irqsave(&hp->lock, flags);
 
 		rsize = hp->outbuf_size - hp->n_outbuf;
@@ -537,10 +541,13 @@ static int hvc_write(struct tty_struct *tty, const unsigned char *buf, int count
 		}
 
 		if (hp->n_outbuf > 0)
-			hvc_push(hp);
+			ret = hvc_push(hp);
 
 		spin_unlock_irqrestore(&hp->lock, flags);
 
+		if (!ret)
+			break;
+
 		if (count) {
 			if (hp->n_outbuf > 0)
 				hvc_flush(hp);
@@ -669,8 +676,8 @@ static int __hvc_poll(struct hvc_struct *hp, bool may_sleep)
 	if (!hp->irq_requested)
 		poll_mask |= HVC_POLL_READ;
 
+ read_again:
 	/* Read data if any */
-
 	count = tty_buffer_request_room(&hp->port, N_INBUF);
 
 	/* If flip is full, just reschedule a later read */
@@ -717,9 +724,23 @@ static int __hvc_poll(struct hvc_struct *hp, bool may_sleep)
 #endif /* CONFIG_MAGIC_SYSRQ */
 		tty_insert_flip_char(&hp->port, buf[i], 0);
 	}
-	if (n == count)
-		poll_mask |= HVC_POLL_READ;
-	read_total = n;
+	read_total += n;
+
+	if (may_sleep) {
+		/* Keep going until the flip is full */
+		spin_unlock_irqrestore(&hp->lock, flags);
+		cond_resched();
+		spin_lock_irqsave(&hp->lock, flags);
+		goto read_again;
+	} else if (read_total < HVC_ATOMIC_READ_MAX) {
+		/* Break and defer if it's a large read in atomic */
+		goto read_again;
+	}
+
+	/*
+	 * Latency break, schedule another poll immediately.
+	 */
+	poll_mask |= HVC_POLL_READ;
 
  out:
 	/* Wakeup write queue if necessary */

^ permalink raw reply related

* Re: [PATCH 3/3] soc: fsl: add RCPM driver
From: Li Yang @ 2018-09-05  3:21 UTC (permalink / raw)
  To: dongsheng.wang
  Cc: Ran Wang, Rob Herring, Mark Rutland,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linuxppc-dev, lkml,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
In-Reply-To: <be39f5ea8c9046b0bf1f6bbfe935fae4@HXTBJIDCEMVIW02.hxtcorp.net>

On Tue, Sep 4, 2018 at 9:58 PM Wang, Dongsheng
<dongsheng.wang@hxt-semitech.com> wrote:
>
> Please change your comments style.

Although this doesn't get into the Linux kernel coding style
documentation yet, Linus seems changed his mind to prefer // than /*
*/ comment style now.  https://lkml.org/lkml/2017/11/25/133   So the
// style should be acceptable for now.

>
> On 2018/8/31 11:56, Ran Wang wrote:
> > The NXP's QorIQ Processors based on ARM Core have RCPM module (Run
> > Control and Power Management), which performs all device-level
> > tasks associated with power management such as wakeup source control.
> >
> > This driver depends on FSL platform PM driver framework which help to
> > isolate user and PM service provider (such as RCPM driver).
> >
> > Signed-off-by: Chenhui Zhao <chenhui.zhao@nxp.com>
> > Signed-off-by: Ying Zhang <ying.zhang22455@nxp.com>
> > Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
> > ---
> >  drivers/soc/fsl/Kconfig   |    6 ++
> >  drivers/soc/fsl/Makefile  |    1 +
> >  drivers/soc/fsl/ls-rcpm.c |  153 +++++++++++++++++++++++++++++++++++++=
++++++++
> >  3 files changed, 160 insertions(+), 0 deletions(-)
> >  create mode 100644 drivers/soc/fsl/ls-rcpm.c
> >
> > diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig
> > index 6517412..882330d 100644
> > --- a/drivers/soc/fsl/Kconfig
> > +++ b/drivers/soc/fsl/Kconfig
> > @@ -30,3 +30,9 @@ config FSL_PLAT_PM
> >         have to know the implement details of wakeup function it requir=
e.
> >         Besides, it is also easy for service side to upgrade its logic =
when
> >         design changed and remain user side unchanged.
> > +
> > +config LS_RCPM
> > +     bool "Freescale RCPM support"
> > +     depends on (FSL_PLAT_PM)
> > +     help
> > +       This feature is to enable specified wakeup source for system sl=
eep.
> > diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile
> > index 8f9db23..43ff71a 100644
> > --- a/drivers/soc/fsl/Makefile
> > +++ b/drivers/soc/fsl/Makefile
> > @@ -7,3 +7,4 @@ obj-$(CONFIG_QUICC_ENGINE)            +=3D qe/
> >  obj-$(CONFIG_CPM)                    +=3D qe/
> >  obj-$(CONFIG_FSL_GUTS)                       +=3D guts.o
> >  obj-$(CONFIG_FSL_PLAT_PM)    +=3D plat_pm.o
> > +obj-$(CONFIG_LS_RCPM)                +=3D ls-rcpm.o

Probably use "_" instead of "-" for alignment.

> > diff --git a/drivers/soc/fsl/ls-rcpm.c b/drivers/soc/fsl/ls-rcpm.c
> > new file mode 100644
> > index 0000000..b0feb88
> > --- /dev/null
> > +++ b/drivers/soc/fsl/ls-rcpm.c
> > @@ -0,0 +1,153 @@
> > +// SPDX-License-Identifier: GPL-2.0
> > +//
> > +// plat_pm.c - Freescale Layerscape RCPM driver

The file name here is not the same as the real file name.

> > +//
> > +// Copyright 2018 NXP
> > +//
> > +// Author: Ran Wang <ran.wang_1@nxp.com>,

Where do you need the comma in the end?

> > +
> > +#include <linux/init.h>
> > +#include <linux/module.h>
> > +#include <linux/platform_device.h>
> > +#include <linux/of_address.h>
> > +#include <linux/slab.h>
> > +#include <soc/fsl/plat_pm.h>
> > +
> > +#define MAX_COMPATIBLE_NUM   10
> > +
> > +struct rcpm_t {
> > +     struct device *dev;
> > +     void __iomem *ippdexpcr_addr;
> > +     bool big_endian;        /* Big/Little endian of RCPM module */
> > +};
> > +
> > +// rcpm_handle - Configure RCPM reg according to wake up source reques=
t
> > +// @user_dev: pointer to user's device struct
> > +// @flag: to enable(true) or disable(false) wakeup source
> > +// @handle_priv: pointer to struct rcpm_t instance
> > +//
> > +// Return 0 on success other negative errno

Although Linus preferred this // comment style.  I'm not sure if this
will be handled correctly by the kernel-doc compiler.
https://www.kernel.org/doc/html/v4.18/doc-guide/kernel-doc.html

> > +static int rcpm_handle(struct device *user_dev, bool flag, void *handl=
e_priv)
> > +{
> > +     struct rcpm_t *rcpm;
> > +     bool big_endian;
> > +     const char  *dev_compatible_array[MAX_COMPATIBLE_NUM];
> > +     void __iomem *ippdexpcr_addr;
> > +     u32 ippdexpcr;
> > +     u32 set_bit;
> > +     int ret, num, i;
> > +
> > +     rcpm =3D handle_priv;
> > +     big_endian =3D rcpm->big_endian;
> > +     ippdexpcr_addr =3D rcpm->ippdexpcr_addr;
> > +
> > +     num =3D device_property_read_string_array(user_dev, "compatible",
> > +                     dev_compatible_array, MAX_COMPATIBLE_NUM);
> > +     if (num < 0)
> > +             return num;
> > +
> > +     for (i =3D 0; i < num; i++) {
> > +             if (!device_property_present(rcpm->dev,
> > +                                     dev_compatible_array[i]))
> > +                     continue;
> > +             else {
> Remove this else.
> > +                     ret =3D device_property_read_u32(rcpm->dev,
> > +                                     dev_compatible_array[i], &set_bit=
);
> > +                     if (ret)
> > +                             return ret;
> > +
> > +                     if (!device_property_present(rcpm->dev,
> > +                                             dev_compatible_array[i]))
> This has been checked. Continue ? or return ENODEV=EF=BC=9F
> > +                             return -ENODEV;
> > +                     else {
> Remove this else.
> > +                             ret =3D device_property_read_u32(rcpm->de=
v,
> > +                                             dev_compatible_array[i], =
&set_bit);
> > +                             if (ret)
> > +                                     return ret;
> > +
> > +                             if (big_endian)
> > +                                     ippdexpcr =3D ioread32be(ippdexpc=
r_addr);
> > +                             else
> > +                                     ippdexpcr =3D ioread32(ippdexpcr_=
addr);
> > +
> > +                             if (flag)
> > +                                     ippdexpcr |=3D set_bit;
> > +                             else
> > +                                     ippdexpcr &=3D ~set_bit;
> > +
> > +                             if (big_endian) {
> > +                                     iowrite32be(ippdexpcr, ippdexpcr_=
addr);
> > +                                     ippdexpcr =3D ioread32be(ippdexpc=
r_addr);
> > +                             } else
> if (x) {
> ....
> ....
> }  else {
>
> }
> > +                                     iowrite32(ippdexpcr, ippdexpcr_ad=
dr);
> > +
> > +                             return 0;
> > +                     }
> > +             }
> > +     }
> > +
> > +     return -ENODEV;
> > +}
> > +
> > +static int ls_rcpm_probe(struct platform_device *pdev)
> > +{
> > +     struct resource *r;
> > +     struct rcpm_t *rcpm;
> > +
> > +     r =3D platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > +     if (!r)
> > +             return -ENODEV;
> > +
> > +     rcpm =3D kmalloc(sizeof(*rcpm), GFP_KERNEL);
> kzalloc is better.
> > +     if (!rcpm)
> > +             return -ENOMEM;
> > +
> > +     rcpm->big_endian =3D device_property_read_bool(&pdev->dev, "big-e=
ndian");
> > +
> > +     rcpm->ippdexpcr_addr =3D devm_ioremap_resource(&pdev->dev, r);
> > +     if (IS_ERR(rcpm->ippdexpcr_addr))
> > +             return PTR_ERR(rcpm->ippdexpcr_addr);
> > +
> > +     rcpm->dev =3D &pdev->dev;
> > +     platform_set_drvdata(pdev, rcpm);
> > +
> > +     return register_fsl_platform_wakeup_source(rcpm_handle, rcpm);
> > +}
> > +
> > +static int ls_rcpm_remove(struct platform_device *pdev)
> > +{
> > +     struct rcpm_t   *rcpm;
> Not need a table.
>
> Cheers,
> -Dongsheng
>
> > +
> > +     rcpm =3D platform_get_drvdata(pdev);
> > +     deregister_fsl_platform_wakeup_source(rcpm);
> > +     kfree(rcpm);
> > +
> > +     return 0;
> > +}
> > +
> > +static const struct of_device_id ls_rcpm_of_match[] =3D {
> > +     { .compatible =3D "fsl,qoriq-rcpm-2.1", },
> > +     {}
> > +};
> > +MODULE_DEVICE_TABLE(of, ls_rcpm_of_match);
> > +
> > +static struct platform_driver ls_rcpm_driver =3D {
> > +     .driver =3D {
> > +             .name =3D "ls-rcpm",
> > +             .of_match_table =3D ls_rcpm_of_match,
> > +     },
> > +     .probe =3D ls_rcpm_probe,
> > +     .remove =3D ls_rcpm_remove,
> > +};
> > +
> > +static int __init ls_rcpm_init(void)
> > +{
> > +     return platform_driver_register(&ls_rcpm_driver);
> > +}
> > +subsys_initcall(ls_rcpm_init);
> > +
> > +static void __exit ls_rcpm_exit(void)
> > +{
> > +     platform_driver_unregister(&ls_rcpm_driver);
> > +}
> > +module_exit(ls_rcpm_exit);
>
>

^ permalink raw reply

* Re: [PATCH 3/3] soc: fsl: add RCPM driver
From: Wang, Dongsheng @ 2018-09-05  2:57 UTC (permalink / raw)
  To: Ran Wang, Leo Li, Rob Herring, Mark Rutland
  Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
In-Reply-To: <20180831035219.31619-3-ran.wang_1@nxp.com>

Please change your comments style.=0A=
=0A=
On 2018/8/31 11:56, Ran Wang wrote:=0A=
> The NXP's QorIQ Processors based on ARM Core have RCPM module (Run=0A=
> Control and Power Management), which performs all device-level=0A=
> tasks associated with power management such as wakeup source control.=0A=
>=0A=
> This driver depends on FSL platform PM driver framework which help to=0A=
> isolate user and PM service provider (such as RCPM driver).=0A=
>=0A=
> Signed-off-by: Chenhui Zhao <chenhui.zhao@nxp.com>=0A=
> Signed-off-by: Ying Zhang <ying.zhang22455@nxp.com>=0A=
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>=0A=
> ---=0A=
>  drivers/soc/fsl/Kconfig   |    6 ++=0A=
>  drivers/soc/fsl/Makefile  |    1 +=0A=
>  drivers/soc/fsl/ls-rcpm.c |  153 +++++++++++++++++++++++++++++++++++++++=
++++++=0A=
>  3 files changed, 160 insertions(+), 0 deletions(-)=0A=
>  create mode 100644 drivers/soc/fsl/ls-rcpm.c=0A=
>=0A=
> diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig=0A=
> index 6517412..882330d 100644=0A=
> --- a/drivers/soc/fsl/Kconfig=0A=
> +++ b/drivers/soc/fsl/Kconfig=0A=
> @@ -30,3 +30,9 @@ config FSL_PLAT_PM=0A=
>  	  have to know the implement details of wakeup function it require.=0A=
>  	  Besides, it is also easy for service side to upgrade its logic when=
=0A=
>  	  design changed and remain user side unchanged.=0A=
> +=0A=
> +config LS_RCPM=0A=
> +	bool "Freescale RCPM support"=0A=
> +	depends on (FSL_PLAT_PM)=0A=
> +	help=0A=
> +	  This feature is to enable specified wakeup source for system sleep.=
=0A=
> diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile=0A=
> index 8f9db23..43ff71a 100644=0A=
> --- a/drivers/soc/fsl/Makefile=0A=
> +++ b/drivers/soc/fsl/Makefile=0A=
> @@ -7,3 +7,4 @@ obj-$(CONFIG_QUICC_ENGINE)		+=3D qe/=0A=
>  obj-$(CONFIG_CPM)			+=3D qe/=0A=
>  obj-$(CONFIG_FSL_GUTS)			+=3D guts.o=0A=
>  obj-$(CONFIG_FSL_PLAT_PM)	+=3D plat_pm.o=0A=
> +obj-$(CONFIG_LS_RCPM)		+=3D ls-rcpm.o=0A=
> diff --git a/drivers/soc/fsl/ls-rcpm.c b/drivers/soc/fsl/ls-rcpm.c=0A=
> new file mode 100644=0A=
> index 0000000..b0feb88=0A=
> --- /dev/null=0A=
> +++ b/drivers/soc/fsl/ls-rcpm.c=0A=
> @@ -0,0 +1,153 @@=0A=
> +// SPDX-License-Identifier: GPL-2.0=0A=
> +//=0A=
> +// plat_pm.c - Freescale Layerscape RCPM driver=0A=
> +//=0A=
> +// Copyright 2018 NXP=0A=
> +//=0A=
> +// Author: Ran Wang <ran.wang_1@nxp.com>,=0A=
> +=0A=
> +#include <linux/init.h>=0A=
> +#include <linux/module.h>=0A=
> +#include <linux/platform_device.h>=0A=
> +#include <linux/of_address.h>=0A=
> +#include <linux/slab.h>=0A=
> +#include <soc/fsl/plat_pm.h>=0A=
> +=0A=
> +#define MAX_COMPATIBLE_NUM	10=0A=
> +=0A=
> +struct rcpm_t {=0A=
> +	struct device *dev;=0A=
> +	void __iomem *ippdexpcr_addr;=0A=
> +	bool big_endian;	/* Big/Little endian of RCPM module */=0A=
> +};=0A=
> +=0A=
> +// rcpm_handle - Configure RCPM reg according to wake up source request=
=0A=
> +// @user_dev: pointer to user's device struct=0A=
> +// @flag: to enable(true) or disable(false) wakeup source=0A=
> +// @handle_priv: pointer to struct rcpm_t instance=0A=
> +//=0A=
> +// Return 0 on success other negative errno=0A=
> +static int rcpm_handle(struct device *user_dev, bool flag, void *handle_=
priv)=0A=
> +{=0A=
> +	struct rcpm_t *rcpm;=0A=
> +	bool big_endian;=0A=
> +	const char  *dev_compatible_array[MAX_COMPATIBLE_NUM];=0A=
> +	void __iomem *ippdexpcr_addr;=0A=
> +	u32 ippdexpcr;=0A=
> +	u32 set_bit;=0A=
> +	int ret, num, i;=0A=
> +=0A=
> +	rcpm =3D handle_priv;=0A=
> +	big_endian =3D rcpm->big_endian;=0A=
> +	ippdexpcr_addr =3D rcpm->ippdexpcr_addr;=0A=
> +=0A=
> +	num =3D device_property_read_string_array(user_dev, "compatible",=0A=
> +			dev_compatible_array, MAX_COMPATIBLE_NUM);=0A=
> +	if (num < 0)=0A=
> +		return num;=0A=
> +=0A=
> +	for (i =3D 0; i < num; i++) {=0A=
> +		if (!device_property_present(rcpm->dev,=0A=
> +					dev_compatible_array[i]))=0A=
> +			continue;=0A=
> +		else {=0A=
Remove this else.=0A=
> +			ret =3D device_property_read_u32(rcpm->dev,=0A=
> +					dev_compatible_array[i], &set_bit);=0A=
> +			if (ret)=0A=
> +				return ret;=0A=
> +=0A=
> +			if (!device_property_present(rcpm->dev,=0A=
> +						dev_compatible_array[i]))=0A=
This has been checked. Continue ? or return ENODEV=1B$B!)=1B(B=0A=
> +				return -ENODEV;=0A=
> +			else {=0A=
Remove this else.=0A=
> +				ret =3D device_property_read_u32(rcpm->dev,=0A=
> +						dev_compatible_array[i], &set_bit);=0A=
> +				if (ret)=0A=
> +					return ret;=0A=
> +=0A=
> +				if (big_endian)=0A=
> +					ippdexpcr =3D ioread32be(ippdexpcr_addr);=0A=
> +				else=0A=
> +					ippdexpcr =3D ioread32(ippdexpcr_addr);=0A=
> +=0A=
> +				if (flag)=0A=
> +					ippdexpcr |=3D set_bit;=0A=
> +				else=0A=
> +					ippdexpcr &=3D ~set_bit;=0A=
> +=0A=
> +				if (big_endian) {=0A=
> +					iowrite32be(ippdexpcr, ippdexpcr_addr);=0A=
> +					ippdexpcr =3D ioread32be(ippdexpcr_addr);=0A=
> +				} else=0A=
if (x) {=0A=
....=0A=
....=0A=
}  else {=0A=
=0A=
}=0A=
> +					iowrite32(ippdexpcr, ippdexpcr_addr);=0A=
> +=0A=
> +				return 0;=0A=
> +			}=0A=
> +		}=0A=
> +	}=0A=
> +=0A=
> +	return -ENODEV;=0A=
> +}=0A=
> +=0A=
> +static int ls_rcpm_probe(struct platform_device *pdev)=0A=
> +{=0A=
> +	struct resource *r;=0A=
> +	struct rcpm_t *rcpm;=0A=
> +=0A=
> +	r =3D platform_get_resource(pdev, IORESOURCE_MEM, 0);=0A=
> +	if (!r)=0A=
> +		return -ENODEV;=0A=
> +=0A=
> +	rcpm =3D kmalloc(sizeof(*rcpm), GFP_KERNEL);=0A=
kzalloc is better.=0A=
> +	if (!rcpm)=0A=
> +		return -ENOMEM;=0A=
> +=0A=
> +	rcpm->big_endian =3D device_property_read_bool(&pdev->dev, "big-endian"=
);=0A=
> +=0A=
> +	rcpm->ippdexpcr_addr =3D devm_ioremap_resource(&pdev->dev, r);=0A=
> +	if (IS_ERR(rcpm->ippdexpcr_addr))=0A=
> +		return PTR_ERR(rcpm->ippdexpcr_addr);=0A=
> +=0A=
> +	rcpm->dev =3D &pdev->dev;=0A=
> +	platform_set_drvdata(pdev, rcpm);=0A=
> +=0A=
> +	return register_fsl_platform_wakeup_source(rcpm_handle, rcpm);=0A=
> +}=0A=
> +=0A=
> +static int ls_rcpm_remove(struct platform_device *pdev)=0A=
> +{=0A=
> +	struct rcpm_t	*rcpm;=0A=
Not need a table.=0A=
=0A=
Cheers,=0A=
-Dongsheng=0A=
=0A=
> +=0A=
> +	rcpm =3D platform_get_drvdata(pdev);=0A=
> +	deregister_fsl_platform_wakeup_source(rcpm);=0A=
> +	kfree(rcpm);=0A=
> +=0A=
> +	return 0;=0A=
> +}=0A=
> +=0A=
> +static const struct of_device_id ls_rcpm_of_match[] =3D {=0A=
> +	{ .compatible =3D "fsl,qoriq-rcpm-2.1", },=0A=
> +	{}=0A=
> +};=0A=
> +MODULE_DEVICE_TABLE(of, ls_rcpm_of_match);=0A=
> +=0A=
> +static struct platform_driver ls_rcpm_driver =3D {=0A=
> +	.driver =3D {=0A=
> +		.name =3D "ls-rcpm",=0A=
> +		.of_match_table =3D ls_rcpm_of_match,=0A=
> +	},=0A=
> +	.probe =3D ls_rcpm_probe,=0A=
> +	.remove =3D ls_rcpm_remove,=0A=
> +};=0A=
> +=0A=
> +static int __init ls_rcpm_init(void)=0A=
> +{=0A=
> +	return platform_driver_register(&ls_rcpm_driver);=0A=
> +}=0A=
> +subsys_initcall(ls_rcpm_init);=0A=
> +=0A=
> +static void __exit ls_rcpm_exit(void)=0A=
> +{=0A=
> +	platform_driver_unregister(&ls_rcpm_driver);=0A=
> +}=0A=
> +module_exit(ls_rcpm_exit);=0A=
=0A=
=0A=

^ permalink raw reply

* Re: [PATCH 1/3] soc: fsl: add Platform PM driver QorIQ platforms
From: Wang, Dongsheng @ 2018-09-05  3:04 UTC (permalink / raw)
  To: Ran Wang, Leo Li, Rob Herring, Mark Rutland
  Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
In-Reply-To: <20180831035219.31619-1-ran.wang_1@nxp.com>

Please change your comments style.=0A=
=0A=
On 2018/8/31 11:57, Ran Wang wrote:=0A=
> This driver is to provide a independent framework for PM service=0A=
> provider and consumer to configure system level wake up feature. For=0A=
> example, RCPM driver could register a callback function on this=0A=
> platform first, and Flex timer driver who want to enable timer wake=0A=
> up feature, will call generic API provided by this platform driver,=0A=
> and then it will trigger RCPM driver to do it. The benefit is to=0A=
> isolate the user and service, such as flex timer driver will not have=0A=
> to know the implement details of wakeup function it require. Besides,=0A=
> it is also easy for service side to upgrade its logic when design is=0A=
> changed and remain user side unchanged.=0A=
>=0A=
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>=0A=
> ---=0A=
>  drivers/soc/fsl/Kconfig   |   14 +++++=0A=
>  drivers/soc/fsl/Makefile  |    1 +=0A=
>  drivers/soc/fsl/plat_pm.c |  144 +++++++++++++++++++++++++++++++++++++++=
++++++=0A=
>  include/soc/fsl/plat_pm.h |   22 +++++++=0A=
>  4 files changed, 181 insertions(+), 0 deletions(-)=0A=
>  create mode 100644 drivers/soc/fsl/plat_pm.c=0A=
>  create mode 100644 include/soc/fsl/plat_pm.h=0A=
>=0A=
> diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig=0A=
> index 7a9fb9b..6517412 100644=0A=
> --- a/drivers/soc/fsl/Kconfig=0A=
> +++ b/drivers/soc/fsl/Kconfig=0A=
> @@ -16,3 +16,17 @@ config FSL_GUTS=0A=
>  	  Initially only reading SVR and registering soc device are supported.=
=0A=
>  	  Other guts accesses, such as reading RCW, should eventually be moved=
=0A=
>  	  into this driver as well.=0A=
> +=0A=
> +config FSL_PLAT_PM=0A=
> +	bool "Freescale platform PM framework"=0A=
> +	help=0A=
> +	  This driver is to provide a independent framework for PM service=0A=
> +	  provider and consumer to configure system level wake up feature. For=
=0A=
> +	  example, RCPM driver could register a callback function on this=0A=
> +	  platform first, and Flex timer driver who want to enable timer wake=
=0A=
> +	  up feature, will call generic API provided by this platform driver,=
=0A=
> +	  and then it will trigger RCPM driver to do it. The benefit is to=0A=
> +	  isolate the user and service, such as  flex timer driver will not=0A=
> +	  have to know the implement details of wakeup function it require.=0A=
> +	  Besides, it is also easy for service side to upgrade its logic when=
=0A=
> +	  design changed and remain user side unchanged.=0A=
> diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile=0A=
> index 44b3beb..8f9db23 100644=0A=
> --- a/drivers/soc/fsl/Makefile=0A=
> +++ b/drivers/soc/fsl/Makefile=0A=
> @@ -6,3 +6,4 @@ obj-$(CONFIG_FSL_DPAA)                 +=3D qbman/=0A=
>  obj-$(CONFIG_QUICC_ENGINE)		+=3D qe/=0A=
>  obj-$(CONFIG_CPM)			+=3D qe/=0A=
>  obj-$(CONFIG_FSL_GUTS)			+=3D guts.o=0A=
> +obj-$(CONFIG_FSL_PLAT_PM)	+=3D plat_pm.o=0A=
> diff --git a/drivers/soc/fsl/plat_pm.c b/drivers/soc/fsl/plat_pm.c=0A=
> new file mode 100644=0A=
> index 0000000..19ea14e=0A=
> --- /dev/null=0A=
> +++ b/drivers/soc/fsl/plat_pm.c=0A=
> @@ -0,0 +1,144 @@=0A=
> +// SPDX-License-Identifier: GPL-2.0=0A=
> +//=0A=
> +// plat_pm.c - Freescale platform PM framework=0A=
> +//=0A=
> +// Copyright 2018 NXP=0A=
> +//=0A=
> +// Author: Ran Wang <ran.wang_1@nxp.com>,=0A=
> +=0A=
> +#include <linux/kernel.h>=0A=
> +#include <linux/device.h>=0A=
> +#include <linux/list.h>=0A=
> +#include <linux/slab.h>=0A=
> +#include <linux/err.h>=0A=
> +#include <soc/fsl/plat_pm.h>=0A=
> +=0A=
> +=0A=
> +struct plat_pm_t {=0A=
> +	struct list_head node;=0A=
> +	fsl_plat_pm_handle handle;=0A=
> +	void *handle_priv;=0A=
> +	spinlock_t	lock;=0A=
> +};=0A=
> +=0A=
> +static struct plat_pm_t plat_pm;=0A=
> +=0A=
> +// register_fsl_platform_wakeup_source - Register callback function to p=
lat_pm=0A=
> +// @handle: Pointer to handle PM feature requirement=0A=
> +// @handle_priv: Handler specific data struct=0A=
> +//=0A=
> +// Return 0 on success other negative errno=0A=
> +int register_fsl_platform_wakeup_source(fsl_plat_pm_handle handle,=0A=
> +		void *handle_priv)=0A=
> +{=0A=
> +	struct plat_pm_t *p;=0A=
> +	unsigned long	flags;=0A=
> +=0A=
> +	if (!handle) {=0A=
> +		pr_err("FSL plat_pm: Handler invalid, reject\n");=0A=
> +		return -EINVAL;=0A=
> +	}=0A=
> +=0A=
> +	p =3D kmalloc(sizeof(*p), GFP_KERNEL);=0A=
> +	if (!p)=0A=
> +		return -ENOMEM;=0A=
> +=0A=
> +	p->handle =3D handle;=0A=
> +	p->handle_priv =3D handle_priv;=0A=
> +=0A=
> +	spin_lock_irqsave(&plat_pm.lock, flags);=0A=
> +	list_add_tail(&p->node, &plat_pm.node);=0A=
> +	spin_unlock_irqrestore(&plat_pm.lock, flags);=0A=
> +=0A=
> +	return 0;=0A=
> +}=0A=
> +EXPORT_SYMBOL_GPL(register_fsl_platform_wakeup_source);=0A=
> +=0A=
> +// Deregister_fsl_platform_wakeup_source - deregister callback function=
=0A=
> +// @handle_priv: Handler specific data struct=0A=
> +//=0A=
> +// Return 0 on success other negative errno=0A=
> +int deregister_fsl_platform_wakeup_source(void *handle_priv)=0A=
> +{=0A=
> +	struct plat_pm_t *p, *tmp;=0A=
> +	unsigned long	flags;=0A=
> +=0A=
> +	spin_lock_irqsave(&plat_pm.lock, flags);=0A=
> +	list_for_each_entry_safe(p, tmp, &plat_pm.node, node) {=0A=
> +		if (p->handle_priv =3D=3D handle_priv) {=0A=
> +			list_del(&p->node);=0A=
> +			kfree(p);=0A=
> +		}=0A=
> +	}=0A=
> +	spin_unlock_irqrestore(&plat_pm.lock, flags);=0A=
> +	return 0;=0A=
> +}=0A=
> +EXPORT_SYMBOL_GPL(deregister_fsl_platform_wakeup_source);=0A=
> +=0A=
> +// fsl_platform_wakeup_config - Configure wakeup source by calling handl=
ers=0A=
> +// @dev: pointer to user's device struct=0A=
> +// @flag: to tell enable or disable wakeup source=0A=
> +//=0A=
> +// Return 0 on success other negative errno=0A=
> +int fsl_platform_wakeup_config(struct device *dev, bool flag)=0A=
> +{=0A=
> +	struct plat_pm_t *p;=0A=
> +	int ret;=0A=
> +	bool success_handled;=0A=
> +	unsigned long	flags;=0A=
> +=0A=
> +	success_handled =3D false;=0A=
> +=0A=
> +	// Will consider success if at least one callback return 0.=0A=
> +	// Also, rest handles still get oppertunity to be executed=0A=
> +	spin_lock_irqsave(&plat_pm.lock, flags);=0A=
> +	list_for_each_entry(p, &plat_pm.node, node) {=0A=
> +		if (p->handle) {=0A=
> +			ret =3D p->handle(dev, flag, p->handle_priv);=0A=
> +			if (!ret)=0A=
> +				success_handled =3D true;=0A=
Miss a break?=0A=
=0A=
> +			else if (ret !=3D -ENODEV) {=0A=
> +				pr_err("FSL plat_pm: Failed to config wakeup source:%d\n", ret);=0A=
Please unlock before return.=0A=
=0A=
> +				return ret;=0A=
> +			}=0A=
> +		} else=0A=
> +			pr_warn("FSL plat_pm: Invalid handler detected, skip\n");=0A=
> +	}=0A=
> +	spin_unlock_irqrestore(&plat_pm.lock, flags);=0A=
> +=0A=
> +	if (success_handled =3D=3D false) {=0A=
> +		pr_err("FSL plat_pm: Cannot find the matchhed handler for wakeup sourc=
e config\n");=0A=
> +		return -ENODEV;=0A=
> +	}=0A=
Add this into the loop.=0A=
> +=0A=
> +	return 0;=0A=
> +}=0A=
> +=0A=
> +// fsl_platform_wakeup_enable - Enable wakeup source=0A=
> +// @dev: pointer to user's device struct=0A=
> +//=0A=
> +// Return 0 on success other negative errno=0A=
> +int fsl_platform_wakeup_enable(struct device *dev)=0A=
> +{=0A=
> +	return fsl_platform_wakeup_config(dev, true);=0A=
> +}=0A=
> +EXPORT_SYMBOL_GPL(fsl_platform_wakeup_enable);=0A=
> +=0A=
> +// fsl_platform_wakeup_disable - Disable wakeup source=0A=
> +// @dev: pointer to user's device struct=0A=
> +//=0A=
> +// Return 0 on success other negative errno=0A=
> +int fsl_platform_wakeup_disable(struct device *dev)=0A=
> +{=0A=
> +	return fsl_platform_wakeup_config(dev, false);=0A=
> +}=0A=
> +EXPORT_SYMBOL_GPL(fsl_platform_wakeup_disable);=0A=
> +=0A=
> +static int __init fsl_plat_pm_init(void)=0A=
> +{=0A=
> +	spin_lock_init(&plat_pm.lock);=0A=
> +	INIT_LIST_HEAD(&plat_pm.node);=0A=
> +	return 0;=0A=
> +}=0A=
> +=0A=
> +core_initcall(fsl_plat_pm_init);=0A=
> diff --git a/include/soc/fsl/plat_pm.h b/include/soc/fsl/plat_pm.h=0A=
> new file mode 100644=0A=
> index 0000000..bbe151e=0A=
> --- /dev/null=0A=
> +++ b/include/soc/fsl/plat_pm.h=0A=
> @@ -0,0 +1,22 @@=0A=
> +// SPDX-License-Identifier: GPL-2.0=0A=
> +//=0A=
> +// plat_pm.h - Freescale platform PM Header=0A=
> +//=0A=
> +// Copyright 2018 NXP=0A=
> +//=0A=
> +// Author: Ran Wang <ran.wang_1@nxp.com>,=0A=
> +=0A=
> +#ifndef __FSL_PLAT_PM_H=0A=
> +#define __FSL_PLAT_PM_H=0A=
> +=0A=
> +typedef int (*fsl_plat_pm_handle)(struct device *dev, bool flag,=0A=
> +		void *handle_priv);=0A=
> +=0A=
> +int register_fsl_platform_wakeup_source(fsl_plat_pm_handle handle,=0A=
> +		void *handle_priv);=0A=
> +int deregister_fsl_platform_wakeup_source(void *handle_priv);=0A=
> +int fsl_platform_wakeup_config(struct device *dev, bool flag);=0A=
> +int fsl_platform_wakeup_enable(struct device *dev);=0A=
> +int fsl_platform_wakeup_disable(struct device *dev);=0A=
> +=0A=
> +#endif	// __FSL_PLAT_PM_H=0A=
=0A=
=0A=

^ permalink raw reply

* [PATCH v2] tty: Change tty_{port|standard}_install() return type to void
From: Jaejoong Kim @ 2018-09-05  2:50 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: Jeff Dike, Richard Weinberger, Karsten Keil, Arnd Bergmann,
	Ulf Hansson, Martin Schwidefsky, Heiko Carstens, David Lin,
	Johan Hovold, Alex Elder, David S. Miller, Oliver Neukum,
	Mathias Nyman, Marcel Holtmann, Johan Hedberg, Anton Ivanov,
	Kees Cook, Randy Dunlap, Al Viro, Guenter Roeck, Thomas Gleixner,
	Philippe Ombredanne, Quytelda Kahja, Yisheng Xie, Nicholas Piggin,
	Michael Ellerman, Benjamin Herrenschmidt, Nicolas Pitre,
	Adam Borowski, Alexander Potapenko, Thomas Meyer, Joe Perches,
	Meng Xu, open list:USER-MODE LINUX (UML), open list,
	open list:ISDN SUBSYSTEM,
	open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND...,
	open list:S390, open list:STAGING SUBSYSTEM,
	moderated list:GREYBUS SUBSYSTEM,
	open list:HYPERVISOR VIRTUAL CONSOLE DRIVER,
	open list:SERIAL DRIVERS, open list:SPARC SERIAL DRIVERS,
	open list:USB ACM DRIVER, open list:BLUETOOTH SUBSYSTEM

Many drivers with tty use the tty_stand_install(). But, there is no
need to handle the error, since it always returns 0. So, change the
return type of tty_standard_install() and tty_port_install() to void
type and remove unnecessary exception handling where we use these
functions.

Signed-off-by: Jaejoong Kim <climbbb.kim@gmail.com>
---
Changes in v2:
- Update commit title
- Squash other patches into one
  https://lkml.org/lkml/2018/9/4/70

 arch/um/drivers/line.c              |  7 +------
 drivers/isdn/capi/capi.c            | 10 ++++------
 drivers/isdn/i4l/isdn_tty.c         |  3 ++-
 drivers/misc/pti.c                  | 28 +++++++++++++---------------
 drivers/mmc/core/sdio_uart.c        | 11 ++++-------
 drivers/s390/char/con3215.c         |  3 ++-
 drivers/s390/char/tty3270.c         |  7 +------
 drivers/staging/fwserial/fwserial.c | 22 ++++++++--------------
 drivers/staging/gdm724x/gdm_tty.c   | 11 +++--------
 drivers/staging/greybus/uart.c      | 10 ++--------
 drivers/tty/hvc/hvc_console.c       |  7 ++-----
 drivers/tty/hvc/hvcs.c              | 10 ++--------
 drivers/tty/mips_ejtag_fdc.c        |  4 +++-
 drivers/tty/n_gsm.c                 |  9 +--------
 drivers/tty/nozomi.c                |  8 +++-----
 drivers/tty/serial/kgdb_nmi.c       | 11 +----------
 drivers/tty/synclink.c              |  3 ++-
 drivers/tty/synclinkmp.c            |  3 ++-
 drivers/tty/tty_io.c                | 10 ++++++----
 drivers/tty/tty_port.c              |  4 ++--
 drivers/tty/vcc.c                   |  5 +----
 drivers/tty/vt/vt.c                 |  5 +----
 drivers/usb/class/cdc-acm.c         | 10 +---------
 drivers/usb/host/xhci-dbgtty.c      |  3 ++-
 drivers/usb/serial/usb-serial.c     |  6 +-----
 include/linux/tty.h                 |  4 ++--
 net/bluetooth/rfcomm/tty.c          |  7 +------
 27 files changed, 73 insertions(+), 148 deletions(-)

diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c
index 8d80b27..47058cf 100644
--- a/arch/um/drivers/line.c
+++ b/arch/um/drivers/line.c
@@ -338,12 +338,7 @@ int line_open(struct tty_struct *tty, struct file *filp)
 int line_install(struct tty_driver *driver, struct tty_struct *tty,
 		 struct line *line)
 {
-	int ret;
-
-	ret = tty_standard_install(driver, tty);
-	if (ret)
-		return ret;
-
+	tty_standard_install(driver, tty);
 	tty->driver_data = line;
 
 	return 0;
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index ef5560b..08daf3a 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -999,13 +999,11 @@ static int
 capinc_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct capiminor *mp = capiminor_get(tty->index);
-	int ret = tty_standard_install(driver, tty);
 
-	if (ret == 0)
-		tty->driver_data = mp;
-	else
-		capiminor_put(mp);
-	return ret;
+	tty_standard_install(driver, tty);
+	tty->driver_data = mp;
+
+	return 0;
 }
 
 static void capinc_tty_cleanup(struct tty_struct *tty)
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index b730037..3d6b24e 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -1481,8 +1481,9 @@ static int isdn_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 		return -ENODEV;
 
 	tty->driver_data = info;
+	tty_port_install(&info->port, driver, tty);
 
-	return tty_port_install(&info->port, driver, tty);
+	return 0;
 }
 
 /*
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index 41f2a9f..5c885a1 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -462,26 +462,24 @@ static int pti_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	int idx = tty->index;
 	struct pti_tty *pti_tty_data;
-	int ret = tty_standard_install(driver, tty);
 
-	if (ret == 0) {
-		pti_tty_data = kmalloc(sizeof(struct pti_tty), GFP_KERNEL);
-		if (pti_tty_data == NULL)
-			return -ENOMEM;
+	tty_standard_install(driver, tty);
+	pti_tty_data = kmalloc(sizeof(struct pti_tty), GFP_KERNEL);
+	if (pti_tty_data == NULL)
+		return -ENOMEM;
 
-		if (idx == PTITTY_MINOR_START)
-			pti_tty_data->mc = pti_request_masterchannel(0, NULL);
-		else
-			pti_tty_data->mc = pti_request_masterchannel(2, NULL);
+	if (idx == PTITTY_MINOR_START)
+		pti_tty_data->mc = pti_request_masterchannel(0, NULL);
+	else
+		pti_tty_data->mc = pti_request_masterchannel(2, NULL);
 
-		if (pti_tty_data->mc == NULL) {
-			kfree(pti_tty_data);
-			return -ENXIO;
-		}
-		tty->driver_data = pti_tty_data;
+	if (pti_tty_data->mc == NULL) {
+		kfree(pti_tty_data);
+		return -ENXIO;
 	}
+	tty->driver_data = pti_tty_data;
 
-	return ret;
+	return 0;
 }
 
 /**
diff --git a/drivers/mmc/core/sdio_uart.c b/drivers/mmc/core/sdio_uart.c
index 25e1130..b727186 100644
--- a/drivers/mmc/core/sdio_uart.c
+++ b/drivers/mmc/core/sdio_uart.c
@@ -731,14 +731,11 @@ static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	int idx = tty->index;
 	struct sdio_uart_port *port = sdio_uart_port_get(idx);
-	int ret = tty_standard_install(driver, tty);
 
-	if (ret == 0)
-		/* This is the ref sdio_uart_port get provided */
-		tty->driver_data = port;
-	else
-		sdio_uart_port_put(port);
-	return ret;
+	tty_standard_install(driver, tty);
+	tty->driver_data = port;
+
+	return 0;
 }
 
 /**
diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c
index 8c9d412..6a9f6d9 100644
--- a/drivers/s390/char/con3215.c
+++ b/drivers/s390/char/con3215.c
@@ -965,8 +965,9 @@ static int tty3215_install(struct tty_driver *driver, struct tty_struct *tty)
 		return -ENODEV;
 
 	tty->driver_data = raw;
+	tty_port_install(&raw->port, driver, tty);
 
-	return tty_port_install(&raw->port, driver, tty);
+	return 0;
 }
 
 /*
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c
index 5b8af27..2915f95 100644
--- a/drivers/s390/char/tty3270.c
+++ b/drivers/s390/char/tty3270.c
@@ -1017,12 +1017,7 @@ static int tty3270_install(struct tty_driver *driver, struct tty_struct *tty)
 	raw3270_activate_view(&tp->view);
 
 port_install:
-	rc = tty_port_install(&tp->port, driver, tty);
-	if (rc) {
-		raw3270_put_view(&tp->view);
-		return rc;
-	}
-
+	tty_port_install(&tp->port, driver, tty);
 	tty->driver_data = tp;
 
 	return 0;
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c
index fa0dd42..5134019 100644
--- a/drivers/staging/fwserial/fwserial.c
+++ b/drivers/staging/fwserial/fwserial.c
@@ -1064,27 +1064,21 @@ static void fwtty_cleanup(struct tty_struct *tty)
 static int fwtty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct fwtty_port *port = fwtty_port_get(tty->index);
-	int err;
 
-	err = tty_standard_install(driver, tty);
-	if (!err)
-		tty->driver_data = port;
-	else
-		fwtty_port_put(port);
-	return err;
+	tty_standard_install(driver, tty);
+	tty->driver_data = port;
+
+	return 0;
 }
 
 static int fwloop_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct fwtty_port *port = fwtty_port_get(table_idx(tty->index));
-	int err;
 
-	err = tty_standard_install(driver, tty);
-	if (!err)
-		tty->driver_data = port;
-	else
-		fwtty_port_put(port);
-	return err;
+	tty_standard_install(driver, tty);
+	tty->driver_data = port;
+
+	return 0;
 }
 
 static int fwtty_write(struct tty_struct *tty, const unsigned char *buf, int c)
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c
index 6e81369..d6348df 100644
--- a/drivers/staging/gdm724x/gdm_tty.c
+++ b/drivers/staging/gdm724x/gdm_tty.c
@@ -62,6 +62,7 @@ static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 		return -ENODEV;
 
 	mutex_lock(&gdm_table_lock);
+
 	gdm = gdm_table[ret][tty->index];
 	if (!gdm) {
 		mutex_unlock(&gdm_table_lock);
@@ -69,15 +70,9 @@ static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 	}
 
 	tty_port_get(&gdm->port);
-
-	ret = tty_standard_install(driver, tty);
-	if (ret) {
-		tty_port_put(&gdm->port);
-		mutex_unlock(&gdm_table_lock);
-		return ret;
-	}
-
+	tty_standard_install(driver, tty);
 	tty->driver_data = gdm;
+
 	mutex_unlock(&gdm_table_lock);
 
 	return 0;
diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c
index 8a00632..182155b 100644
--- a/drivers/staging/greybus/uart.c
+++ b/drivers/staging/greybus/uart.c
@@ -393,21 +393,15 @@ static void release_minor(struct gb_tty *gb_tty)
 static int gb_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct gb_tty *gb_tty;
-	int retval;
 
 	gb_tty = get_gb_by_minor(tty->index);
 	if (!gb_tty)
 		return -ENODEV;
 
-	retval = tty_standard_install(driver, tty);
-	if (retval)
-		goto error;
-
+	tty_standard_install(driver, tty);
 	tty->driver_data = gb_tty;
+
 	return 0;
-error:
-	tty_port_put(&gb_tty->port);
-	return retval;
 }
 
 static int gb_tty_open(struct tty_struct *tty, struct file *file)
diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c
index 5414c4a..13fad62 100644
--- a/drivers/tty/hvc/hvc_console.c
+++ b/drivers/tty/hvc/hvc_console.c
@@ -329,7 +329,6 @@ static void hvc_unthrottle(struct tty_struct *tty)
 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct hvc_struct *hp;
-	int rc;
 
 	/* Auto increments kref reference if found. */
 	hp = hvc_get_by_index(tty->index);
@@ -337,11 +336,9 @@ static int hvc_install(struct tty_driver *driver, struct tty_struct *tty)
 		return -ENODEV;
 
 	tty->driver_data = hp;
+	tty_port_install(&hp->port, driver, tty);
 
-	rc = tty_port_install(&hp->port, driver, tty);
-	if (rc)
-		tty_port_put(&hp->port);
-	return rc;
+	return 0;
 }
 
 /*
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
index cb4db1b..4dfa70c 100644
--- a/drivers/tty/hvc/hvcs.c
+++ b/drivers/tty/hvc/hvcs.c
@@ -1140,16 +1140,10 @@ static int hvcs_install(struct tty_driver *driver, struct tty_struct *tty)
 		goto err_put;
 	}
 
-	retval = tty_port_install(&hvcsd->port, driver, tty);
-	if (retval)
-		goto err_irq;
+	tty_port_install(&hvcsd->port, driver, tty);
 
 	return 0;
-err_irq:
-	spin_lock_irqsave(&hvcsd->lock, flags);
-	vio_disable_interrupts(hvcsd->vdev);
-	spin_unlock_irqrestore(&hvcsd->lock, flags);
-	free_irq(irq, hvcsd);
+
 err_put:
 	tty_port_put(&hvcsd->port);
 
diff --git a/drivers/tty/mips_ejtag_fdc.c b/drivers/tty/mips_ejtag_fdc.c
index 4c1cd49..33e06b4 100644
--- a/drivers/tty/mips_ejtag_fdc.c
+++ b/drivers/tty/mips_ejtag_fdc.c
@@ -763,7 +763,9 @@ static int mips_ejtag_fdc_tty_install(struct tty_driver *driver,
 	struct mips_ejtag_fdc_tty *priv = driver->driver_state;
 
 	tty->driver_data = &priv->ports[tty->index];
-	return tty_port_install(&priv->ports[tty->index].port, driver, tty);
+	tty_port_install(&priv->ports[tty->index].port, driver, tty);
+
+	return 0;
 }
 
 static int mips_ejtag_fdc_tty_open(struct tty_struct *tty, struct file *filp)
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index 86b7e20..c52fa2d 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -2917,7 +2917,6 @@ static int gsmtty_install(struct tty_driver *driver, struct tty_struct *tty)
 	unsigned int line = tty->index;
 	unsigned int mux = line >> 6;
 	bool alloc = false;
-	int ret;
 
 	line = line & 0x3F;
 
@@ -2949,14 +2948,8 @@ static int gsmtty_install(struct tty_driver *driver, struct tty_struct *tty)
 		mutex_unlock(&gsm->mutex);
 		return -ENOMEM;
 	}
-	ret = tty_port_install(&dlci->port, driver, tty);
-	if (ret) {
-		if (alloc)
-			dlci_put(dlci);
-		mutex_unlock(&gsm->mutex);
-		return ret;
-	}
 
+	tty_port_install(&dlci->port, driver, tty);
 	dlci_get(dlci);
 	dlci_get(gsm->dlci[0]);
 	mux_get(gsm);
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c
index fed820e..479583d 100644
--- a/drivers/tty/nozomi.c
+++ b/drivers/tty/nozomi.c
@@ -1555,13 +1555,11 @@ static int ntty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct port *port = get_port_by_tty(tty);
 	struct nozomi *dc = get_dc_by_tty(tty);
-	int ret;
 	if (!port || !dc || dc->state != NOZOMI_STATE_READY)
 		return -ENODEV;
-	ret = tty_standard_install(driver, tty);
-	if (ret == 0)
-		tty->driver_data = port;
-	return ret;
+	tty_standard_install(driver, tty);
+	tty->driver_data = port;
+	return 0;
 }
 
 static void ntty_cleanup(struct tty_struct *tty)
diff --git a/drivers/tty/serial/kgdb_nmi.c b/drivers/tty/serial/kgdb_nmi.c
index 4029272..ed8f806 100644
--- a/drivers/tty/serial/kgdb_nmi.c
+++ b/drivers/tty/serial/kgdb_nmi.c
@@ -234,7 +234,6 @@ static const struct tty_port_operations kgdb_nmi_tty_port_ops = {
 static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty)
 {
 	struct kgdb_nmi_tty_priv *priv;
-	int ret;
 
 	priv = kzalloc(sizeof(*priv), GFP_KERNEL);
 	if (!priv)
@@ -245,17 +244,9 @@ static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty)
 	tty_port_init(&priv->port);
 	priv->port.ops = &kgdb_nmi_tty_port_ops;
 	tty->driver_data = priv;
+	tty_port_install(&priv->port, drv, tty);
 
-	ret = tty_port_install(&priv->port, drv, tty);
-	if (ret) {
-		pr_err("%s: can't install tty port: %d\n", __func__, ret);
-		goto err;
-	}
 	return 0;
-err:
-	tty_port_destroy(&priv->port);
-	kfree(priv);
-	return ret;
 }
 
 static void kgdb_nmi_tty_cleanup(struct tty_struct *tty)
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c
index fbdf4d0..6e7e4d6 100644
--- a/drivers/tty/synclink.c
+++ b/drivers/tty/synclink.c
@@ -3355,8 +3355,9 @@ static int mgsl_install(struct tty_driver *driver, struct tty_struct *tty)
 	if (mgsl_paranoia_check(info, tty->name, "mgsl_open"))
 		return -ENODEV;
 	tty->driver_data = info;
+	tty_port_install(&info->port, driver, tty);
 
-	return tty_port_install(&info->port, driver, tty);
+	return 0;
 }
 
 /* mgsl_open()
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c
index 1e4d5b9..2d99a5b 100644
--- a/drivers/tty/synclinkmp.c
+++ b/drivers/tty/synclinkmp.c
@@ -734,8 +734,9 @@ static int install(struct tty_driver *driver, struct tty_struct *tty)
 	}
 
 	tty->driver_data = info;
+	tty_port_install(&info->port, driver, tty);
 
-	return tty_port_install(&info->port, driver, tty);
+	return 0;
 }
 
 /* Called when a port is opened.  Init and enable port.
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 32bc3e3..b01cec8 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -1196,13 +1196,12 @@ void tty_init_termios(struct tty_struct *tty)
 }
 EXPORT_SYMBOL_GPL(tty_init_termios);
 
-int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty)
+void tty_standard_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	tty_init_termios(tty);
 	tty_driver_kref_get(driver);
 	tty->count++;
 	driver->ttys[tty->index] = tty;
-	return 0;
 }
 EXPORT_SYMBOL_GPL(tty_standard_install);
 
@@ -1221,8 +1220,11 @@ EXPORT_SYMBOL_GPL(tty_standard_install);
 static int tty_driver_install_tty(struct tty_driver *driver,
 						struct tty_struct *tty)
 {
-	return driver->ops->install ? driver->ops->install(driver, tty) :
-		tty_standard_install(driver, tty);
+	if (driver->ops->install)
+		return driver->ops->install(driver, tty);
+
+	tty_standard_install(driver, tty);
+	return 0;
 }
 
 /**
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c
index 25d7368..fd8d40d 100644
--- a/drivers/tty/tty_port.c
+++ b/drivers/tty/tty_port.c
@@ -656,11 +656,11 @@ EXPORT_SYMBOL(tty_port_close);
  * to a concrete tty specified by @tty. Use this or tty_port_register_device
  * (or both). Call tty_port_link_device as a last resort.
  */
-int tty_port_install(struct tty_port *port, struct tty_driver *driver,
+void tty_port_install(struct tty_port *port, struct tty_driver *driver,
 		struct tty_struct *tty)
 {
 	tty->port = port;
-	return tty_standard_install(driver, tty);
+	tty_standard_install(driver, tty);
 }
 EXPORT_SYMBOL_GPL(tty_port_install);
 
diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c
index 58b454c..ce32631 100644
--- a/drivers/tty/vcc.c
+++ b/drivers/tty/vcc.c
@@ -987,7 +987,6 @@ static int vcc_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct vcc_port *port_vcc;
 	struct tty_port *port_tty;
-	int ret;
 
 	if (unlikely(!tty)) {
 		pr_err("VCC: install: Invalid TTY handle\n");
@@ -997,9 +996,7 @@ static int vcc_install(struct tty_driver *driver, struct tty_struct *tty)
 	if (tty->index >= VCC_MAX_PORTS)
 		return -EINVAL;
 
-	ret = tty_standard_install(driver, tty);
-	if (ret)
-		return ret;
+	tty_standard_install(driver, tty);
 
 	port_tty = kzalloc(sizeof(struct tty_port), GFP_KERNEL);
 	if (!port_tty)
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 5f1183b..cc72254 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -3222,10 +3222,7 @@ static int con_install(struct tty_driver *driver, struct tty_struct *tty)
 		goto unlock;
 	}
 
-	ret = tty_port_install(&vc->port, driver, tty);
-	if (ret)
-		goto unlock;
-
+	tty_port_install(&vc->port, driver, tty);
 	tty->driver_data = vc;
 	vc->port.tty = tty;
 
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 27346d6..de6a27e 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -572,23 +572,15 @@ static void acm_softint(struct work_struct *work)
 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct acm *acm;
-	int retval;
 
 	acm = acm_get_by_minor(tty->index);
 	if (!acm)
 		return -ENODEV;
 
-	retval = tty_standard_install(driver, tty);
-	if (retval)
-		goto error_init_termios;
-
+	tty_standard_install(driver, tty);
 	tty->driver_data = acm;
 
 	return 0;
-
-error_init_termios:
-	tty_port_put(&acm->port);
-	return retval;
 }
 
 static int acm_tty_open(struct tty_struct *tty, struct file *filp)
diff --git a/drivers/usb/host/xhci-dbgtty.c b/drivers/usb/host/xhci-dbgtty.c
index aff79ff..18d661c 100644
--- a/drivers/usb/host/xhci-dbgtty.c
+++ b/drivers/usb/host/xhci-dbgtty.c
@@ -174,8 +174,9 @@ static int dbc_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 	struct dbc_port		*port = driver->driver_state;
 
 	tty->driver_data = port;
+	tty_port_install(&port->port, driver, tty);
 
-	return tty_port_install(&port->port, driver, tty);
+	return 0;
 }
 
 static int dbc_tty_open(struct tty_struct *tty, struct file *file)
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index f7aaa7f..5cfc2ca 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -192,9 +192,7 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty)
 	if (retval)
 		goto error_get_interface;
 
-	retval = tty_standard_install(driver, tty);
-	if (retval)
-		goto error_init_termios;
+	tty_standard_install(driver, tty);
 
 	mutex_unlock(&serial->disc_mutex);
 
@@ -206,8 +204,6 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty)
 
 	return retval;
 
- error_init_termios:
-	usb_autopm_put_interface(serial->interface);
  error_get_interface:
 	module_put(serial->type->driver.owner);
  error_module_get:
diff --git a/include/linux/tty.h b/include/linux/tty.h
index c56e397..63cdac1 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -556,7 +556,7 @@ extern struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
 extern void tty_release_struct(struct tty_struct *tty, int idx);
 extern int tty_release(struct inode *inode, struct file *filp);
 extern void tty_init_termios(struct tty_struct *tty);
-extern int tty_standard_install(struct tty_driver *driver,
+extern void tty_standard_install(struct tty_driver *driver,
 		struct tty_struct *tty);
 
 extern struct mutex tty_mutex;
@@ -688,7 +688,7 @@ extern int tty_port_close_start(struct tty_port *port,
 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
 extern void tty_port_close(struct tty_port *port,
 				struct tty_struct *tty, struct file *filp);
-extern int tty_port_install(struct tty_port *port, struct tty_driver *driver,
+extern void tty_port_install(struct tty_port *port, struct tty_driver *driver,
 				struct tty_struct *tty);
 extern int tty_port_open(struct tty_port *port,
 				struct tty_struct *tty, struct file *filp);
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c
index 5e44d84..b654420 100644
--- a/net/bluetooth/rfcomm/tty.c
+++ b/net/bluetooth/rfcomm/tty.c
@@ -710,7 +710,6 @@ static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 {
 	struct rfcomm_dev *dev;
 	struct rfcomm_dlc *dlc;
-	int err;
 
 	dev = rfcomm_dev_get(tty->index);
 	if (!dev)
@@ -725,11 +724,7 @@ static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
 	set_bit(RFCOMM_TTY_ATTACHED, &dev->flags);
 
 	/* install the tty_port */
-	err = tty_port_install(&dev->port, driver, tty);
-	if (err) {
-		rfcomm_tty_cleanup(tty);
-		return err;
-	}
+	tty_port_install(&dev->port, driver, tty);
 
 	/* take over the tty_port reference if the port was created with the
 	 * flag RFCOMM_RELEASE_ONHUP. This will force the release of the port
-- 
2.7.4

^ permalink raw reply related

* RE: [PATCH 2/3] Documentation: dt: binding: fsl: update property description for RCPM
From: Ran Wang @ 2018-09-05  2:22 UTC (permalink / raw)
  To: Rob Herring
  Cc: Leo Li, Mark Rutland, linuxppc-dev@lists.ozlabs.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
In-Reply-To: <5b8e8a71.1c69fb81.d966f.1ca1@mx.google.com>

Hi Rob

> -----Original Message-----
> From: Rob Herring <robh@kernel.org>
> Sent: Tuesday, September 04, 2018 09:25
> To: Ran Wang <ran.wang_1@nxp.com>
> Cc: Leo Li <leoyang.li@nxp.com>; Mark Rutland <mark.rutland@arm.com>;
> linuxppc-dev@lists.ozlabs.org; linux-arm-kernel@lists.infradead.org;
> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH 2/3] Documentation: dt: binding: fsl: update property
> description for RCPM
>=20
> On Fri, Aug 31, 2018 at 11:52:18AM +0800, Ran Wang wrote:
> > Add property 'big-endian' and supportted IP's configuration info.
> > Remove property 'fsl,#rcpm-wakeup-cell'.
>=20
> "dt-bindings: soc: ..." for the subject
>=20
> It is obvious reading the diff you are removing fsl,#rcpm-wakeup-cell.
> What is not obvious is why? The commit msg should answer that.

Sure, I will add this in next version patch.

> You also are mixing several things in this patch like adding ls1012 which=
 you
> don't mention. Please split.

Got it, will split them and add more information in next version.
=20
Ran
> >
> > Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
> > ---
> >  Documentation/devicetree/bindings/soc/fsl/rcpm.txt |   42 ++++++------=
-----
> --
> >  1 files changed, 13 insertions(+), 29 deletions(-)

^ permalink raw reply

* [PATCH 2/2] powerpc/pseries: Remove VLA from lparcfg_write()
From: Suraj Jitindar Singh @ 2018-09-05  2:09 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mpe, mikey, joel, Suraj Jitindar Singh
In-Reply-To: <20180905020951.10372-1-sjitindarsingh@gmail.com>

In lparcfg_write we hard code kbuf_sz and then use this as the variable
length of kbuf creating a variable length array. Since we're hard coding
the length anyway just define the array using this as the length and
remove the need for kbuf_sz, thus removing the variable length array.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
---
 arch/powerpc/platforms/pseries/lparcfg.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/lparcfg.c b/arch/powerpc/platforms/pseries/lparcfg.c
index 7c872dc01bdb..8bd590af488a 100644
--- a/arch/powerpc/platforms/pseries/lparcfg.c
+++ b/arch/powerpc/platforms/pseries/lparcfg.c
@@ -585,8 +585,7 @@ static ssize_t update_mpp(u64 *entitlement, u8 *weight)
 static ssize_t lparcfg_write(struct file *file, const char __user * buf,
 			     size_t count, loff_t * off)
 {
-	int kbuf_sz = 64;
-	char kbuf[kbuf_sz];
+	char kbuf[64];
 	char *tmp;
 	u64 new_entitled, *new_entitled_ptr = &new_entitled;
 	u8 new_weight, *new_weight_ptr = &new_weight;
@@ -595,7 +594,7 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf,
 	if (!firmware_has_feature(FW_FEATURE_SPLPAR))
 		return -EINVAL;
 
-	if (count > kbuf_sz)
+	if (count > sizeof(kbuf))
 		return -EINVAL;
 
 	if (copy_from_user(kbuf, buf, count))
-- 
2.13.6

^ permalink raw reply related

* [PATCH 1/2] powerpc/prom: Remove VLA in prom_check_platform_support()
From: Suraj Jitindar Singh @ 2018-09-05  2:09 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mpe, mikey, joel, Suraj Jitindar Singh
In-Reply-To: <20180905020951.10372-1-sjitindarsingh@gmail.com>

In prom_check_platform_support() we retrieve and parse the
"ibm,arch-vec-5-platform-support" property of the chosen node.
Currently we use a variable length array however to avoid this use an
array of constant length 8.

This property is used to indicate the supported options of vector 5
bytes 23-26 of the ibm,architecture.vec node. Each of these options
is a pair of bytes, thus for 4 options we have a max length of 8 bytes.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
---
 arch/powerpc/kernel/prom_init.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index 9b38a2e5dd35..ce5fc03dc69f 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -1131,12 +1131,15 @@ static void __init prom_check_platform_support(void)
 				       "ibm,arch-vec-5-platform-support");
 	if (prop_len > 1) {
 		int i;
-		u8 vec[prop_len];
+		u8 vec[8];
 		prom_debug("Found ibm,arch-vec-5-platform-support, len: %d\n",
 			   prop_len);
+		if (prop_len > sizeof(vec))
+			prom_printf("WARNING: ibm,arch-vec-5-platform-support longer "\
+				    " than expected (len: %d)\n", prop_len);
 		prom_getprop(prom.chosen, "ibm,arch-vec-5-platform-support",
 			     &vec, sizeof(vec));
-		for (i = 0; i < prop_len; i += 2) {
+		for (i = 0; i < sizeof(vec); i += 2) {
 			prom_debug("%d: index = 0x%x val = 0x%x\n", i / 2
 								  , vec[i]
 								  , vec[i + 1]);
-- 
2.13.6

^ permalink raw reply related

* [PATCH 0/2] Remove Variable Length Arrays from powerpc code
From: Suraj Jitindar Singh @ 2018-09-05  2:09 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mpe, mikey, joel, Suraj Jitindar Singh

This patch series removes two Variable Length Arrays (VLAs) from
the powerpc code.

Series based on v4.19-rc2

Suraj Jitindar Singh (2):
  powerpc/prom: Remove VLA in prom_check_platform_support()
  powerpc/pseries: Remove VLA from lparcfg_write()

 arch/powerpc/kernel/prom_init.c          | 7 +++++--
 arch/powerpc/platforms/pseries/lparcfg.c | 5 ++---
 2 files changed, 7 insertions(+), 5 deletions(-)

-- 
2.13.6

^ permalink raw reply

* Re: [PATCH 3/6] powerpc sstep: Add cnttzw, cnttzd instruction emulation
From: Segher Boessenkool @ 2018-09-04 21:12 UTC (permalink / raw)
  To: Sandipan Das
  Cc: mpe, paulus, naveen.n.rao, linuxppc-dev, anton, ravi.bangoria
In-Reply-To: <f989c31bcf4bd8a80a50fa6899bcd239ed1bec69.1535609090.git.sandipan@linux.ibm.com>

On Mon, Sep 03, 2018 at 08:49:35PM +0530, Sandipan Das wrote:
> +		case 538:	/* cnttzw */
> +			if (!cpu_has_feature(CPU_FTR_ARCH_300))
> +				return -1;
> +			val = (unsigned int) regs->gpr[rd];
> +			op->val = ( val ? __builtin_ctz(val) : 32 );
> +			goto logical_done;
> +#ifdef __powerpc64__
> +		case 570:	/* cnttzd */
> +			if (!cpu_has_feature(CPU_FTR_ARCH_300))
> +				return -1;
> +			val = regs->gpr[rd];
> +			op->val = ( val ? __builtin_ctzl(val) : 64 );
> +			goto logical_done;

__builtin_ctz(val) is undefined for val == 0.


Segher

^ permalink raw reply

* Re: [PATCH 1/6] powerpc sstep: Add maddhd, maddhdu, maddld instruction emulation
From: Segher Boessenkool @ 2018-09-04 22:12 UTC (permalink / raw)
  To: Sandipan Das
  Cc: mpe, paulus, naveen.n.rao, linuxppc-dev, anton, ravi.bangoria
In-Reply-To: <2962112510464de01b24f9e1014909fde3380d52.1535609090.git.sandipan@linux.ibm.com>

On Mon, Sep 03, 2018 at 08:49:33PM +0530, Sandipan Das wrote:
> +#ifdef __powerpc64__
> +	case 4:
> +		if (!cpu_has_feature(CPU_FTR_ARCH_300))
> +			return -1;
> +
> +		switch (instr & 0x3f) {
> +		case 48:	/* maddhd */
> +			asm("maddhd %0,%1,%2,%3" : "=r" (op->val) :
> +			    "r" (regs->gpr[ra]), "r" (regs->gpr[rb]),
> +			    "r" (regs->gpr[rc]));
> +			goto compute_done;

If running maddhd does not work, will running it in kernel mode work?

I think you should *actually* emulate it.

(Same for the next patch, "darn", but emulation of that is much more
interesting).


Segher

^ permalink raw reply

* [PATCH v3] macintosh: Convert to using %pOFn instead of device_node.name
From: Rob Herring @ 2018-09-04 21:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Benjamin Herrenschmidt, linuxppc-dev

In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
v3:
- Fix dev_name handling. Using "%.*p" syntax throws a warning (and 
probably doesn't work).

 drivers/macintosh/macio_asic.c            | 8 +++++---
 drivers/macintosh/macio_sysfs.c           | 8 +++++++-
 drivers/macintosh/windfarm_smu_controls.c | 4 ++--
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 07074820a167..58e676ca9622 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -362,7 +362,8 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
 {
 	struct macio_dev *dev;
 	const u32 *reg;
-	
+	char name[MAX_NODE_NAME_SIZE + 1];
+
 	if (np == NULL)
 		return NULL;
 
@@ -402,6 +403,7 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
 #endif
 
 	/* MacIO itself has a different reg, we use it's PCI base */
+        snprintf(name, sizeof(name), "%pOFn", np);
 	if (np == chip->of_node) {
 		dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s",
 			     chip->lbus.index,
@@ -410,12 +412,12 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
 #else
 			0, /* NuBus may want to do something better here */
 #endif
-			MAX_NODE_NAME_SIZE, np->name);
+			MAX_NODE_NAME_SIZE, name);
 	} else {
 		reg = of_get_property(np, "reg", NULL);
 		dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s",
 			     chip->lbus.index,
-			     reg ? *reg : 0, MAX_NODE_NAME_SIZE, np->name);
+			     reg ? *reg : 0, MAX_NODE_NAME_SIZE, name);
 	}
 
 	/* Setup interrupts & resources */
diff --git a/drivers/macintosh/macio_sysfs.c b/drivers/macintosh/macio_sysfs.c
index ca4fcffe454b..d2451e58acb9 100644
--- a/drivers/macintosh/macio_sysfs.c
+++ b/drivers/macintosh/macio_sysfs.c
@@ -58,7 +58,13 @@ static ssize_t devspec_show(struct device *dev,
 static DEVICE_ATTR_RO(modalias);
 static DEVICE_ATTR_RO(devspec);
 
-macio_config_of_attr (name, "%s\n");
+static ssize_t name_show(struct device *dev,
+			 struct device_attribute *attr, char *buf)
+{
+	return sprintf(buf, "%pOFn\n", dev->of_node);
+}
+static DEVICE_ATTR_RO(name);
+
 macio_config_of_attr (type, "%s\n");
 
 static struct attribute *macio_dev_attrs[] = {
diff --git a/drivers/macintosh/windfarm_smu_controls.c b/drivers/macintosh/windfarm_smu_controls.c
index d174c7437337..86d65462a61c 100644
--- a/drivers/macintosh/windfarm_smu_controls.c
+++ b/drivers/macintosh/windfarm_smu_controls.c
@@ -277,7 +277,7 @@ static int __init smu_controls_init(void)
 		fct = smu_fan_create(fan, 0);
 		if (fct == NULL) {
 			printk(KERN_WARNING "windfarm: Failed to create SMU "
-			       "RPM fan %s\n", fan->name);
+			       "RPM fan %pOFn\n", fan);
 			continue;
 		}
 		list_add(&fct->link, &smu_fans);
@@ -296,7 +296,7 @@ static int __init smu_controls_init(void)
 		fct = smu_fan_create(fan, 1);
 		if (fct == NULL) {
 			printk(KERN_WARNING "windfarm: Failed to create SMU "
-			       "PWM fan %s\n", fan->name);
+			       "PWM fan %pOFn\n", fan);
 			continue;
 		}
 		list_add(&fct->link, &smu_fans);
-- 
2.17.1

^ permalink raw reply related

* Re: [PATCH 6/6] powerpc sstep: Add modsd, modud instruction emulation
From: Segher Boessenkool @ 2018-09-04 21:21 UTC (permalink / raw)
  To: Sandipan Das
  Cc: mpe, paulus, naveen.n.rao, linuxppc-dev, anton, ravi.bangoria
In-Reply-To: <15e572f61bb5c74b01210b9245ce2750a31d6002.1535609090.git.sandipan@linux.ibm.com>

On Mon, Sep 03, 2018 at 08:49:38PM +0530, Sandipan Das wrote:
> +#ifdef __powerpc64__
> +		case 265:	/* modud */
> +			if (!cpu_has_feature(CPU_FTR_ARCH_300))
> +				return -1;
> +			op->val = regs->gpr[ra] % regs->gpr[rb];
> +			goto compute_done;
> +#endif

The mod instruction has special cases that aren't handled by this C code,
too (divide by 0, or signed division of the most negative number by -1).
For the mod intruction the behaviour is undefined in those cases, but you
probably should force some specific behaviour.  You don't want the kernel
to execute a trap instruction, etc. :-)


Segher

^ permalink raw reply

* Re: Regression from patch 'tty: hvc: hvc_poll() break hv read loop'
From: Jason Gunthorpe @ 2018-09-04 21:16 UTC (permalink / raw)
  To: Nicholas Piggin
  Cc: Michael Ellerman, linuxppc-dev, linux-kernel, Leon Romanovsky
In-Reply-To: <20180905071529.3b7a09c4@roar.ozlabs.ibm.com>

On Wed, Sep 05, 2018 at 07:15:29AM +1000, Nicholas Piggin wrote:
> On Tue, 4 Sep 2018 11:48:08 -0600
> Jason Gunthorpe <jgg@mellanox.com> wrote:
> 
> > Hi Nicholas,
> > 
> > I am testing 4.19-rc2 and I see bad behavior with my qemu hvc0
> > console..
> > 
> > Running interactive with qemu (qemu-2.11.2-1.fc28) on the console
> > providing hvc0, using options like:
> > 
> >         -nographic
> >         -chardev stdio,id=stdio,mux=on,signal=off
> >         -mon chardev=stdio
> > 	-device isa-serial,chardev=stdio
> >         -device virtio-serial-pci
> > 	-device virtconsole,chardev=stdio
> > 
> > I see the hvc0 console hang regularly, ie doing something like 'up
> > arrow' in bash causes the hvc0 console to hang. Prior kernels worked
> > OK.
> > 
> > Any ideas? I'm not familiar with this code.. Thanks!
> 
> Yes I have had another report, I'm working on a fix. Sorry it has taken
> a while and thank you for the report.

Okay, let me know when you have a fix and I will be able to test it
for you!

Thanks,
Jason

^ permalink raw reply

* Re: Regression from patch 'tty: hvc: hvc_poll() break hv read loop'
From: Nicholas Piggin @ 2018-09-04 21:15 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Michael Ellerman, linuxppc-dev, linux-kernel, Leon Romanovsky
In-Reply-To: <20180904174808.GS335@mellanox.com>

On Tue, 4 Sep 2018 11:48:08 -0600
Jason Gunthorpe <jgg@mellanox.com> wrote:

> Hi Nicholas,
> 
> I am testing 4.19-rc2 and I see bad behavior with my qemu hvc0
> console..
> 
> Running interactive with qemu (qemu-2.11.2-1.fc28) on the console
> providing hvc0, using options like:
> 
>         -nographic
>         -chardev stdio,id=stdio,mux=on,signal=off
>         -mon chardev=stdio
> 	-device isa-serial,chardev=stdio
>         -device virtio-serial-pci
> 	-device virtconsole,chardev=stdio
> 
> I see the hvc0 console hang regularly, ie doing something like 'up
> arrow' in bash causes the hvc0 console to hang. Prior kernels worked
> OK.
> 
> Any ideas? I'm not familiar with this code.. Thanks!

Yes I have had another report, I'm working on a fix. Sorry it has taken
a while and thank you for the report.

Thanks,
Nick

^ permalink raw reply

* [PATCH v2] macintosh: Convert to using %pOFn instead of device_node.name
From: Rob Herring @ 2018-09-04 18:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Benjamin Herrenschmidt, linuxppc-dev

In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
v2: Add setting dev_name in macio_asic.c

 drivers/macintosh/macio_asic.c            | 8 ++++----
 drivers/macintosh/macio_sysfs.c           | 8 +++++++-
 drivers/macintosh/windfarm_smu_controls.c | 4 ++--
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 07074820a167..cf2d3b3dd599 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -403,19 +403,19 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
 
 	/* MacIO itself has a different reg, we use it's PCI base */
 	if (np == chip->of_node) {
-		dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s",
+		dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*pOFn",
 			     chip->lbus.index,
 #ifdef CONFIG_PCI
 			(unsigned int)pci_resource_start(chip->lbus.pdev, 0),
 #else
 			0, /* NuBus may want to do something better here */
 #endif
-			MAX_NODE_NAME_SIZE, np->name);
+			MAX_NODE_NAME_SIZE, np);
 	} else {
 		reg = of_get_property(np, "reg", NULL);
-		dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s",
+		dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*pOFn",
 			     chip->lbus.index,
-			     reg ? *reg : 0, MAX_NODE_NAME_SIZE, np->name);
+			     reg ? *reg : 0, MAX_NODE_NAME_SIZE, np);
 	}
 
 	/* Setup interrupts & resources */
diff --git a/drivers/macintosh/macio_sysfs.c b/drivers/macintosh/macio_sysfs.c
index ca4fcffe454b..d2451e58acb9 100644
--- a/drivers/macintosh/macio_sysfs.c
+++ b/drivers/macintosh/macio_sysfs.c
@@ -58,7 +58,13 @@ static ssize_t devspec_show(struct device *dev,
 static DEVICE_ATTR_RO(modalias);
 static DEVICE_ATTR_RO(devspec);
 
-macio_config_of_attr (name, "%s\n");
+static ssize_t name_show(struct device *dev,
+			 struct device_attribute *attr, char *buf)
+{
+	return sprintf(buf, "%pOFn\n", dev->of_node);
+}
+static DEVICE_ATTR_RO(name);
+
 macio_config_of_attr (type, "%s\n");
 
 static struct attribute *macio_dev_attrs[] = {
diff --git a/drivers/macintosh/windfarm_smu_controls.c b/drivers/macintosh/windfarm_smu_controls.c
index d174c7437337..86d65462a61c 100644
--- a/drivers/macintosh/windfarm_smu_controls.c
+++ b/drivers/macintosh/windfarm_smu_controls.c
@@ -277,7 +277,7 @@ static int __init smu_controls_init(void)
 		fct = smu_fan_create(fan, 0);
 		if (fct == NULL) {
 			printk(KERN_WARNING "windfarm: Failed to create SMU "
-			       "RPM fan %s\n", fan->name);
+			       "RPM fan %pOFn\n", fan);
 			continue;
 		}
 		list_add(&fct->link, &smu_fans);
@@ -296,7 +296,7 @@ static int __init smu_controls_init(void)
 		fct = smu_fan_create(fan, 1);
 		if (fct == NULL) {
 			printk(KERN_WARNING "windfarm: Failed to create SMU "
-			       "PWM fan %s\n", fan->name);
+			       "PWM fan %pOFn\n", fan);
 			continue;
 		}
 		list_add(&fct->link, &smu_fans);
-- 
2.17.1

^ permalink raw reply related

* Re: [PATCH] [RFC v2] Drop all 00-INDEX files from Documentation/
From: Mike Rapoport @ 2018-09-04 17:56 UTC (permalink / raw)
  To: Henrik Austad
  Cc: linux-doc, Jonathan Corbet, Bjorn Helgaas, Paul E. McKenney,
	Josh Triplett, Steven Rostedt, Mathieu Desnoyers, Lai Jiangshan,
	Jens Axboe, Rob Herring, Mark Rutland, Bartlomiej Zolnierkiewicz,
	Linus Walleij, David S. Miller, Karsten Keil, Masahiro Yamada,
	Michal Marek, Peter Zijlstra, Ingo Molnar, Will Deacon,
	Ralf Baechle, Paul Burton, James Hogan, Paul Moore,
	James E.J. Bottomley, Helge Deller, Rafael J. Wysocki, Len Brown,
	Pavel Machek, Benjamin Herrenschmidt, Paul Mackerras,
	Michael Ellerman, Martin Schwidefsky, Heiko Carstens,
	Greg Kroah-Hartman, Jiri Slaby, Mark Brown, Thomas Gleixner,
	Paolo Bonzini, Radim Krčmář, Evgeniy Polyakov,
	H. Peter Anvin, x86, Andrew Morton, Ian Kent, Jacek Anaszewski,
	Jan Kandziora, linux-kernel, linux-pci, devicetree, dri-devel,
	linux-fbdev, linux-gpio, linux-ide, netdev, linux-kbuild,
	linux-mips, linux-security-module, linux-parisc, linux-pm,
	linuxppc-dev, linux-s390, linux-spi, kvm, Henrik Austad
In-Reply-To: <1536012923-16275-1-git-send-email-henrik@austad.us>

On Tue, Sep 04, 2018 at 12:15:23AM +0200, Henrik Austad wrote:
> This is a respin with a wider audience (all that get_maintainer returned)
> and I know this spams a *lot* of people. Not sure what would be the correct
> way, so my apologies for ruining your inbox.
> 
> The 00-INDEX files are supposed to give a summary of all files present
> in a directory, but these files are horribly out of date and their
> usefulness is brought into question. Often a simple "ls" would reveal
> the same information as the filenames are generally quite descriptive as
> a short introduction to what the file covers (it should not surprise
> anyone what Documentation/sched/sched-design-CFS.txt covers)
> 
> A few years back it was mentioned that these files were no longer really
> needed, and they have since then grown further out of date, so perhaps
> it is time to just throw them out.
> 
> A short status yields the following _outdated_ 00-INDEX files, first
> counter is files listed in 00-INDEX but missing in the directory, last
> is files present but not listed in 00-INDEX.
> 
> List of outdated 00-INDEX:
> Documentation: (4/10)
> Documentation/sysctl: (0/1)
> Documentation/timers: (1/0)
> Documentation/blockdev: (3/1)
> Documentation/w1/slaves: (0/1)
> Documentation/locking: (0/1)
> Documentation/devicetree: (0/5)
> Documentation/power: (1/1)
> Documentation/powerpc: (0/5)
> Documentation/arm: (1/0)
> Documentation/x86: (0/9)
> Documentation/x86/x86_64: (1/1)
> Documentation/scsi: (4/4)
> Documentation/filesystems: (2/9)
> Documentation/filesystems/nfs: (0/2)
> Documentation/cgroup-v1: (0/2)
> Documentation/kbuild: (0/4)
> Documentation/spi: (1/0)
> Documentation/virtual/kvm: (1/0)
> Documentation/scheduler: (0/2)
> Documentation/fb: (0/1)
> Documentation/block: (0/1)
> Documentation/networking: (6/37)
> Documentation/vm: (1/3)
> 
> Then there are 364 subdirectories in Documentation/ with several files that
> are missing 00-INDEX alltogether (and another 120 with a single file and no
> 00-INDEX).
> 
> I don't really have an opinion to whether or not we /should/ have 00-INDEX,
> but the above 00-INDEX should either be removed or be kept up to date. If
> we should keep the files, I can try to keep them updated, but I rather not
> if we just want to delete them anyway.
> 
> As a starting point, remove all index-files and references to 00-INDEX and
> see where the discussion is going.

For the Documentation/vm

Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
 
> Again, sorry for the insanely wide distribution.
> 
> Signed-off-by: Henrik Austad <henrik@austad.us>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Bjorn Helgaas <bhelgaas@google.com>
> Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
> Cc: Josh Triplett <josh@joshtriplett.org>
> Cc: Steven Rostedt <rostedt@goodmis.org>
> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> Cc: Lai Jiangshan <jiangshanlai@gmail.com>
> Cc: Jens Axboe <axboe@kernel.dk>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Karsten Keil <isdn@linux-pingi.de>
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cc: Michal Marek <michal.lkml@markovi.net>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: Paul Burton <paul.burton@mips.com>
> Cc: James Hogan <jhogan@kernel.org>
> Cc: Paul Moore <paul@paul-moore.com>
> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
> Cc: Helge Deller <deller@gmx.de>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <len.brown@intel.com>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
> Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jiri Slaby <jslaby@suse.com>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: "Radim Krčmář" <rkrcmar@redhat.com>
> Cc: Evgeniy Polyakov <zbr@ioremap.net>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
> Cc: x86@kernel.org
> Cc: Henrik Austad <henrik@austad.us>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Ian Kent <raven@themaw.net>
> Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
> Cc: Jan Kandziora <jjj@gmx.de>
> Cc: linux-doc@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-pci@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: dri-devel@lists.freedesktop.org
> Cc: linux-fbdev@vger.kernel.org
> Cc: linux-gpio@vger.kernel.org
> Cc: linux-ide@vger.kernel.org
> Cc: netdev@vger.kernel.org
> Cc: linux-kbuild@vger.kernel.org
> Cc: linux-mips@linux-mips.org
> Cc: linux-security-module@vger.kernel.org
> Cc: linux-parisc@vger.kernel.org
> Cc: linux-pm@vger.kernel.org
> Cc: linuxppc-dev@lists.ozlabs.org
> Cc: linux-s390@vger.kernel.org
> Cc: linux-spi@vger.kernel.org
> Cc: kvm@vger.kernel.org
> Signed-off-by: Henrik Austad <haustad@cisco.com>
> ---
>  Documentation/00-INDEX                  | 428 --------------------------------
>  Documentation/PCI/00-INDEX              |  26 --
>  Documentation/RCU/00-INDEX              |  34 ---
>  Documentation/RCU/rcu.txt               |   4 -
>  Documentation/admin-guide/README.rst    |   3 +-
>  Documentation/arm/00-INDEX              |  50 ----
>  Documentation/block/00-INDEX            |  34 ---
>  Documentation/blockdev/00-INDEX         |  18 --
>  Documentation/cdrom/00-INDEX            |  11 -
>  Documentation/cgroup-v1/00-INDEX        |  26 --
>  Documentation/devicetree/00-INDEX       |  12 -
>  Documentation/fb/00-INDEX               |  75 ------
>  Documentation/filesystems/00-INDEX      | 153 ------------
>  Documentation/filesystems/nfs/00-INDEX  |  26 --
>  Documentation/fmc/00-INDEX              |  38 ---
>  Documentation/gpio/00-INDEX             |   4 -
>  Documentation/ide/00-INDEX              |  14 --
>  Documentation/ioctl/00-INDEX            |  12 -
>  Documentation/isdn/00-INDEX             |  42 ----
>  Documentation/kbuild/00-INDEX           |  14 --
>  Documentation/laptops/00-INDEX          |  16 --
>  Documentation/leds/00-INDEX             |  32 ---
>  Documentation/locking/00-INDEX          |  16 --
>  Documentation/m68k/00-INDEX             |   7 -
>  Documentation/mips/00-INDEX             |   4 -
>  Documentation/mmc/00-INDEX              |  10 -
>  Documentation/netlabel/00-INDEX         |  10 -
>  Documentation/netlabel/cipso_ipv4.txt   |  11 +-
>  Documentation/netlabel/introduction.txt |   2 +-
>  Documentation/networking/00-INDEX       | 234 -----------------
>  Documentation/parisc/00-INDEX           |   6 -
>  Documentation/power/00-INDEX            |  44 ----
>  Documentation/powerpc/00-INDEX          |  34 ---
>  Documentation/s390/00-INDEX             |  28 ---
>  Documentation/scheduler/00-INDEX        |  18 --
>  Documentation/scsi/00-INDEX             | 108 --------
>  Documentation/serial/00-INDEX           |  16 --
>  Documentation/spi/00-INDEX              |  16 --
>  Documentation/sysctl/00-INDEX           |  16 --
>  Documentation/timers/00-INDEX           |  16 --
>  Documentation/virtual/00-INDEX          |  11 -
>  Documentation/virtual/kvm/00-INDEX      |  35 ---
>  Documentation/vm/00-INDEX               |  50 ----
>  Documentation/w1/00-INDEX               |  10 -
>  Documentation/w1/masters/00-INDEX       |  12 -
>  Documentation/w1/slaves/00-INDEX        |  14 --
>  Documentation/x86/00-INDEX              |  20 --
>  Documentation/x86/x86_64/00-INDEX       |  16 --
>  README                                  |   1 -
>  scripts/check_00index.sh                |  67 -----
>  50 files changed, 8 insertions(+), 1896 deletions(-)
>  delete mode 100644 Documentation/00-INDEX
>  delete mode 100644 Documentation/PCI/00-INDEX
>  delete mode 100644 Documentation/RCU/00-INDEX
>  delete mode 100644 Documentation/arm/00-INDEX
>  delete mode 100644 Documentation/block/00-INDEX
>  delete mode 100644 Documentation/blockdev/00-INDEX
>  delete mode 100644 Documentation/cdrom/00-INDEX
>  delete mode 100644 Documentation/cgroup-v1/00-INDEX
>  delete mode 100644 Documentation/devicetree/00-INDEX
>  delete mode 100644 Documentation/fb/00-INDEX
>  delete mode 100644 Documentation/filesystems/00-INDEX
>  delete mode 100644 Documentation/filesystems/nfs/00-INDEX
>  delete mode 100644 Documentation/fmc/00-INDEX
>  delete mode 100644 Documentation/gpio/00-INDEX
>  delete mode 100644 Documentation/ide/00-INDEX
>  delete mode 100644 Documentation/ioctl/00-INDEX
>  delete mode 100644 Documentation/isdn/00-INDEX
>  delete mode 100644 Documentation/kbuild/00-INDEX
>  delete mode 100644 Documentation/laptops/00-INDEX
>  delete mode 100644 Documentation/leds/00-INDEX
>  delete mode 100644 Documentation/locking/00-INDEX
>  delete mode 100644 Documentation/m68k/00-INDEX
>  delete mode 100644 Documentation/mips/00-INDEX
>  delete mode 100644 Documentation/mmc/00-INDEX
>  delete mode 100644 Documentation/netlabel/00-INDEX
>  delete mode 100644 Documentation/networking/00-INDEX
>  delete mode 100644 Documentation/parisc/00-INDEX
>  delete mode 100644 Documentation/power/00-INDEX
>  delete mode 100644 Documentation/powerpc/00-INDEX
>  delete mode 100644 Documentation/s390/00-INDEX
>  delete mode 100644 Documentation/scheduler/00-INDEX
>  delete mode 100644 Documentation/scsi/00-INDEX
>  delete mode 100644 Documentation/serial/00-INDEX
>  delete mode 100644 Documentation/spi/00-INDEX
>  delete mode 100644 Documentation/sysctl/00-INDEX
>  delete mode 100644 Documentation/timers/00-INDEX
>  delete mode 100644 Documentation/virtual/00-INDEX
>  delete mode 100644 Documentation/virtual/kvm/00-INDEX
>  delete mode 100644 Documentation/vm/00-INDEX
>  delete mode 100644 Documentation/w1/00-INDEX
>  delete mode 100644 Documentation/w1/masters/00-INDEX
>  delete mode 100644 Documentation/w1/slaves/00-INDEX
>  delete mode 100644 Documentation/x86/00-INDEX
>  delete mode 100644 Documentation/x86/x86_64/00-INDEX
>  delete mode 100755 scripts/check_00index.sh
> 
> diff --git a/Documentation/00-INDEX b/Documentation/00-INDEX
> deleted file mode 100644
> index 2754fe8..0000000
> --- a/Documentation/00-INDEX
> +++ /dev/null
> @@ -1,428 +0,0 @@
> -
> -This is a brief list of all the files in ./linux/Documentation and what
> -they contain. If you add a documentation file, please list it here in
> -alphabetical order as well, or risk being hunted down like a rabid dog.
> -Please keep the descriptions small enough to fit on one line.
> -							 Thanks -- Paul G.
> -
> -Following translations are available on the WWW:
> -
> -   - Japanese, maintained by the JF Project (jf@listserv.linux.or.jp), at
> -     http://linuxjf.sourceforge.jp/
> -
> -00-INDEX
> -	- this file.
> -ABI/
> -	- info on kernel <-> userspace ABI and relative interface stability.
> -CodingStyle
> -	- nothing here, just a pointer to process/coding-style.rst.
> -DMA-API.txt
> -	- DMA API, pci_ API & extensions for non-consistent memory machines.
> -DMA-API-HOWTO.txt
> -	- Dynamic DMA mapping Guide
> -DMA-ISA-LPC.txt
> -	- How to do DMA with ISA (and LPC) devices.
> -DMA-attributes.txt
> -	- listing of the various possible attributes a DMA region can have
> -EDID/
> -	- directory with info on customizing EDID for broken gfx/displays.
> -IPMI.txt
> -	- info on Linux Intelligent Platform Management Interface (IPMI) Driver.
> -IRQ-affinity.txt
> -	- how to select which CPU(s) handle which interrupt events on SMP.
> -IRQ-domain.txt
> -	- info on interrupt numbering and setting up IRQ domains.
> -IRQ.txt
> -	- description of what an IRQ is.
> -Intel-IOMMU.txt
> -	- basic info on the Intel IOMMU virtualization support.
> -Makefile
> -	- It's not of interest for those who aren't touching the build system.
> -PCI/
> -	- info related to PCI drivers.
> -RCU/
> -	- directory with info on RCU (read-copy update).
> -SAK.txt
> -	- info on Secure Attention Keys.
> -SM501.txt
> -	- Silicon Motion SM501 multimedia companion chip
> -SubmittingPatches
> -	- nothing here, just a pointer to process/coding-style.rst.
> -accounting/
> -	- documentation on accounting and taskstats.
> -acpi/
> -	- info on ACPI-specific hooks in the kernel.
> -admin-guide/
> -	- info related to Linux users and system admins.
> -aoe/
> -	- description of AoE (ATA over Ethernet) along with config examples.
> -arm/
> -	- directory with info about Linux on the ARM architecture.
> -arm64/
> -	- directory with info about Linux on the 64 bit ARM architecture.
> -auxdisplay/
> -	- misc. LCD driver documentation (cfag12864b, ks0108).
> -backlight/
> -	- directory with info on controlling backlights in flat panel displays
> -block/
> -	- info on the Block I/O (BIO) layer.
> -blockdev/
> -	- info on block devices & drivers
> -bt8xxgpio.txt
> -	- info on how to modify a bt8xx video card for GPIO usage.
> -btmrvl.txt
> -	- info on Marvell Bluetooth driver usage.
> -bus-devices/
> -	- directory with info on TI GPMC (General Purpose Memory Controller)
> -bus-virt-phys-mapping.txt
> -	- how to access I/O mapped memory from within device drivers.
> -cdrom/
> -	- directory with information on the CD-ROM drivers that Linux has.
> -cgroup-v1/
> -	- cgroups v1 features, including cpusets and memory controller.
> -cma/
> -	- Continuous Memory Area (CMA) debugfs interface.
> -conf.py
> -	- It's not of interest for those who aren't touching the build system.
> -connector/
> -	- docs on the netlink based userspace<->kernel space communication mod.
> -console/
> -	- documentation on Linux console drivers.
> -core-api/
> -	- documentation on kernel core components.
> -cpu-freq/
> -	- info on CPU frequency and voltage scaling.
> -cpu-hotplug.txt
> -	- document describing CPU hotplug support in the Linux kernel.
> -cpu-load.txt
> -	- document describing how CPU load statistics are collected.
> -cpuidle/
> -	- info on CPU_IDLE, CPU idle state management subsystem.
> -cputopology.txt
> -	- documentation on how CPU topology info is exported via sysfs.
> -crc32.txt
> -	- brief tutorial on CRC computation
> -crypto/
> -	- directory with info on the Crypto API.
> -dcdbas.txt
> -	- information on the Dell Systems Management Base Driver.
> -debugging-modules.txt
> -	- some notes on debugging modules after Linux 2.6.3.
> -debugging-via-ohci1394.txt
> -	- how to use firewire like a hardware debugger memory reader.
> -dell_rbu.txt
> -	- document demonstrating the use of the Dell Remote BIOS Update driver.
> -dev-tools/
> -	- directory with info on development tools for the kernel.
> -device-mapper/
> -	- directory with info on Device Mapper.
> -dmaengine/
> -	- the DMA engine and controller API guides.
> -devicetree/
> -	- directory with info on device tree files used by OF/PowerPC/ARM
> -digsig.txt
> -	-info on the Digital Signature Verification API
> -dma-buf-sharing.txt
> -	- the DMA Buffer Sharing API Guide
> -docutils.conf
> -	- nothing here. Just a configuration file for docutils.
> -dontdiff
> -	- file containing a list of files that should never be diff'ed.
> -driver-api/
> -	- the Linux driver implementer's API guide.
> -driver-model/
> -	- directory with info about Linux driver model.
> -early-userspace/
> -	- info about initramfs, klibc, and userspace early during boot.
> -efi-stub.txt
> -	- How to use the EFI boot stub to bypass GRUB or elilo on EFI systems.
> -eisa.txt
> -	- info on EISA bus support.
> -extcon/
> -	- directory with porting guide for Android kernel switch driver.
> -isa.txt
> -	- info on EISA bus support.
> -fault-injection/
> -	- dir with docs about the fault injection capabilities infrastructure.
> -fb/
> -	- directory with info on the frame buffer graphics abstraction layer.
> -features/
> -	- status of feature implementation on different architectures.
> -filesystems/
> -	- info on the vfs and the various filesystems that Linux supports.
> -firmware_class/
> -	- request_firmware() hotplug interface info.
> -flexible-arrays.txt
> -	- how to make use of flexible sized arrays in linux
> -fmc/
> -	- information about the FMC bus abstraction
> -fpga/
> -	- FPGA Manager Core.
> -futex-requeue-pi.txt
> -	- info on requeueing of tasks from a non-PI futex to a PI futex
> -gcc-plugins.txt
> -	- GCC plugin infrastructure.
> -gpio/
> -	- gpio related documentation
> -gpu/
> -	- directory with information on GPU driver developer's guide.
> -hid/
> -	- directory with information on human interface devices
> -highuid.txt
> -	- notes on the change from 16 bit to 32 bit user/group IDs.
> -hwspinlock.txt
> -	- hardware spinlock provides hardware assistance for synchronization
> -timers/
> -	- info on the timer related topics
> -hw_random.txt
> -	- info on Linux support for random number generator in i8xx chipsets.
> -hwmon/
> -	- directory with docs on various hardware monitoring drivers.
> -i2c/
> -	- directory with info about the I2C bus/protocol (2 wire, kHz speed).
> -x86/i386/
> -	- directory with info about Linux on Intel 32 bit architecture.
> -ia64/
> -	- directory with info about Linux on Intel 64 bit architecture.
> -ide/
> -	- Information regarding the Enhanced IDE drive.
> -iio/
> -	- info on industrial IIO configfs support.
> -index.rst
> -	- main index for the documentation at ReST format.
> -infiniband/
> -	- directory with documents concerning Linux InfiniBand support.
> -input/
> -	- info on Linux input device support.
> -intel_txt.txt
> -	- info on intel Trusted Execution Technology (intel TXT).
> -io-mapping.txt
> -	- description of io_mapping functions in linux/io-mapping.h
> -io_ordering.txt
> -	- info on ordering I/O writes to memory-mapped addresses.
> -ioctl/
> -	- directory with documents describing various IOCTL calls.
> -iostats.txt
> -	- info on I/O statistics Linux kernel provides.
> -irqflags-tracing.txt
> -	- how to use the irq-flags tracing feature.
> -isapnp.txt
> -	- info on Linux ISA Plug & Play support.
> -isdn/
> -	- directory with info on the Linux ISDN support, and supported cards.
> -kbuild/
> -	- directory with info about the kernel build process.
> -kdump/
> -	- directory with mini HowTo on getting the crash dump code to work.
> -doc-guide/
> -	- how to write and format reStructuredText kernel documentation
> -kernel-per-CPU-kthreads.txt
> -	- List of all per-CPU kthreads and how they introduce jitter.
> -kobject.txt
> -	- info of the kobject infrastructure of the Linux kernel.
> -kprobes.txt
> -	- documents the kernel probes debugging feature.
> -kref.txt
> -	- docs on adding reference counters (krefs) to kernel objects.
> -laptops/
> -	- directory with laptop related info and laptop driver documentation.
> -ldm.txt
> -	- a brief description of LDM (Windows Dynamic Disks).
> -leds/
> -	- directory with info about LED handling under Linux.
> -livepatch/
> -	- info on kernel live patching.
> -locking/
> -	- directory with info about kernel locking primitives
> -lockup-watchdogs.txt
> -	- info on soft and hard lockup detectors (aka nmi_watchdog).
> -logo.gif
> -	- full colour GIF image of Linux logo (penguin - Tux).
> -logo.txt
> -	- info on creator of above logo & site to get additional images from.
> -lsm.txt
> -	- Linux Security Modules: General Security Hooks for Linux
> -lzo.txt
> -	- kernel LZO decompressor input formats
> -m68k/
> -	- directory with info about Linux on Motorola 68k architecture.
> -mailbox.txt
> -	- How to write drivers for the common mailbox framework (IPC).
> -md/
> -	- directory with info about Linux Software RAID
> -media/
> -	- info on media drivers: uAPI, kAPI and driver documentation.
> -memory-barriers.txt
> -	- info on Linux kernel memory barriers.
> -memory-devices/
> -	- directory with info on parts like the Texas Instruments EMIF driver
> -memory-hotplug.txt
> -	- Hotpluggable memory support, how to use and current status.
> -men-chameleon-bus.txt
> -	- info on MEN chameleon bus.
> -mic/
> -	- Intel Many Integrated Core (MIC) architecture device driver.
> -mips/
> -	- directory with info about Linux on MIPS architecture.
> -misc-devices/
> -	- directory with info about devices using the misc dev subsystem
> -mmc/
> -	- directory with info about the MMC subsystem
> -mtd/
> -	- directory with info about memory technology devices (flash)
> -namespaces/
> -	- directory with various information about namespaces
> -netlabel/
> -	- directory with information on the NetLabel subsystem.
> -networking/
> -	- directory with info on various aspects of networking with Linux.
> -nfc/
> -	- directory relating info about Near Field Communications support.
> -nios2/
> -	- Linux on the Nios II architecture.
> -nommu-mmap.txt
> -	- documentation about no-mmu memory mapping support.
> -numastat.txt
> -	- info on how to read Numa policy hit/miss statistics in sysfs.
> -ntb.txt
> -	- info on Non-Transparent Bridge (NTB) drivers.
> -nvdimm/
> -	- info on non-volatile devices.
> -nvmem/
> -	- info on non volatile memory framework.
> -output/
> -	- default directory where html/LaTeX/pdf files will be written.
> -padata.txt
> -	- An introduction to the "padata" parallel execution API
> -parisc/
> -	- directory with info on using Linux on PA-RISC architecture.
> -parport-lowlevel.txt
> -	- description and usage of the low level parallel port functions.
> -pcmcia/
> -	- info on the Linux PCMCIA driver.
> -percpu-rw-semaphore.txt
> -	- RCU based read-write semaphore optimized for locking for reading
> -perf/
> -	- info about the APM X-Gene SoC Performance Monitoring Unit (PMU).
> -phy/
> -	- ino on Samsung USB 2.0 PHY adaptation layer.
> -phy.txt
> -	- Description of the generic PHY framework.
> -pi-futex.txt
> -	- documentation on lightweight priority inheritance futexes.
> -pinctrl.txt
> -	- info on pinctrl subsystem and the PINMUX/PINCONF and drivers
> -platform/
> -	- List of supported hardware by compal and Dell laptop.
> -pnp.txt
> -	- Linux Plug and Play documentation.
> -power/
> -	- directory with info on Linux PCI power management.
> -powerpc/
> -	- directory with info on using Linux with the PowerPC.
> -prctl/
> -	- directory with info on the priveledge control subsystem
> -preempt-locking.txt
> -	- info on locking under a preemptive kernel.
> -process/
> -	- how to work with the mainline kernel development process.
> -pps/
> -	- directory with information on the pulse-per-second support
> -pti/
> -	- directory with info on Intel MID PTI.
> -ptp/
> -	- directory with info on support for IEEE 1588 PTP clocks in Linux.
> -pwm.txt
> -	- info on the pulse width modulation driver subsystem
> -rapidio/
> -	- directory with info on RapidIO packet-based fabric interconnect
> -rbtree.txt
> -	- info on what red-black trees are and what they are for.
> -remoteproc.txt
> -	- info on how to handle remote processor (e.g. AMP) offloads/usage.
> -rfkill.txt
> -	- info on the radio frequency kill switch subsystem/support.
> -robust-futex-ABI.txt
> -	- documentation of the robust futex ABI.
> -robust-futexes.txt
> -	- a description of what robust futexes are.
> -rpmsg.txt
> -	- info on the Remote Processor Messaging (rpmsg) Framework
> -rtc.txt
> -	- notes on how to use the Real Time Clock (aka CMOS clock) driver.
> -s390/
> -	- directory with info on using Linux on the IBM S390.
> -scheduler/
> -	- directory with info on the scheduler.
> -scsi/
> -	- directory with info on Linux scsi support.
> -security/
> -	- directory that contains security-related info
> -serial/
> -	- directory with info on the low level serial API.
> -sgi-ioc4.txt
> -	- description of the SGI IOC4 PCI (multi function) device.
> -sh/
> -	- directory with info on porting Linux to a new architecture.
> -smsc_ece1099.txt
> -	-info on the smsc Keyboard Scan Expansion/GPIO Expansion device.
> -sound/
> -	- directory with info on sound card support.
> -spi/
> -	- overview of Linux kernel Serial Peripheral Interface (SPI) support.
> -sphinx/
> -	- no documentation here, just files required by Sphinx toolchain.
> -sphinx-static/
> -	- no documentation here, just files required by Sphinx toolchain.
> -static-keys.txt
> -	- info on how static keys allow debug code in hotpaths via patching
> -svga.txt
> -	- short guide on selecting video modes at boot via VGA BIOS.
> -sync_file.txt
> -	- Sync file API guide.
> -sysctl/
> -	- directory with info on the /proc/sys/* files.
> -target/
> -	- directory with info on generating TCM v4 fabric .ko modules
> -tee.txt
> -	- info on the TEE subsystem and drivers
> -this_cpu_ops.txt
> -	- List rationale behind and the way to use this_cpu operations.
> -thermal/
> -	- directory with information on managing thermal issues (CPU/temp)
> -trace/
> -	- directory with info on tracing technologies within linux
> -translations/
> -	- translations of this document from English to another language
> -unaligned-memory-access.txt
> -	- info on how to avoid arch breaking unaligned memory access in code.
> -unshare.txt
> -	- description of the Linux unshare system call.
> -usb/
> -	- directory with info regarding the Universal Serial Bus.
> -vfio.txt
> -	- info on Virtual Function I/O used in guest/hypervisor instances.
> -video-output.txt
> -	- sysfs class driver interface to enable/disable a video output device.
> -virtual/
> -	- directory with information on the various linux virtualizations.
> -vm/
> -	- directory with info on the Linux vm code.
> -w1/
> -	- directory with documents regarding the 1-wire (w1) subsystem.
> -watchdog/
> -	- how to auto-reboot Linux if it has "fallen and can't get up". ;-)
> -wimax/
> -	- directory with info about Intel Wireless Wimax Connections
> -core-api/workqueue.rst
> -	- information on the Concurrency Managed Workqueue implementation
> -x86/x86_64/
> -	- directory with info on Linux support for AMD x86-64 (Hammer) machines.
> -xillybus.txt
> -	- Overview and basic ui of xillybus driver
> -xtensa/
> -	- directory with documents relating to arch/xtensa port/implementation
> -xz.txt
> -	- how to make use of the XZ data compression within linux kernel
> -zorro.txt
> -	- info on writing drivers for Zorro bus devices found on Amigas.
> diff --git a/Documentation/PCI/00-INDEX b/Documentation/PCI/00-INDEX
> deleted file mode 100644
> index 206b1d5..0000000
> --- a/Documentation/PCI/00-INDEX
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -00-INDEX
> -	- this file
> -acpi-info.txt
> -	- info on how PCI host bridges are represented in ACPI
> -MSI-HOWTO.txt
> -	- the Message Signaled Interrupts (MSI) Driver Guide HOWTO and FAQ.
> -PCIEBUS-HOWTO.txt
> -	- a guide describing the PCI Express Port Bus driver
> -pci-error-recovery.txt
> -	- info on PCI error recovery
> -pci-iov-howto.txt
> -	- the PCI Express I/O Virtualization HOWTO
> -pci.txt
> -	- info on the PCI subsystem for device driver authors
> -pcieaer-howto.txt
> -	- the PCI Express Advanced Error Reporting Driver Guide HOWTO
> -endpoint/pci-endpoint.txt
> -	- guide to add endpoint controller driver and endpoint function driver.
> -endpoint/pci-endpoint-cfs.txt
> -	- guide to use configfs to configure the PCI endpoint function.
> -endpoint/pci-test-function.txt
> -	- specification of *PCI test* function device.
> -endpoint/pci-test-howto.txt
> -	- userguide for PCI endpoint test function.
> -endpoint/function/binding/
> -	- binding documentation for PCI endpoint function
> diff --git a/Documentation/RCU/00-INDEX b/Documentation/RCU/00-INDEX
> deleted file mode 100644
> index f46980c..0000000
> --- a/Documentation/RCU/00-INDEX
> +++ /dev/null
> @@ -1,34 +0,0 @@
> -00-INDEX
> -	- This file
> -arrayRCU.txt
> -	- Using RCU to Protect Read-Mostly Arrays
> -checklist.txt
> -	- Review Checklist for RCU Patches
> -listRCU.txt
> -	- Using RCU to Protect Read-Mostly Linked Lists
> -lockdep.txt
> -	- RCU and lockdep checking
> -lockdep-splat.txt
> -	- RCU Lockdep splats explained.
> -NMI-RCU.txt
> -	- Using RCU to Protect Dynamic NMI Handlers
> -rcu_dereference.txt
> -	- Proper care and feeding of return values from rcu_dereference()
> -rcubarrier.txt
> -	- RCU and Unloadable Modules
> -rculist_nulls.txt
> -	- RCU list primitives for use with SLAB_TYPESAFE_BY_RCU
> -rcuref.txt
> -	- Reference-count design for elements of lists/arrays protected by RCU
> -rcu.txt
> -	- RCU Concepts
> -RTFP.txt
> -	- List of RCU papers (bibliography) going back to 1980.
> -stallwarn.txt
> -	- RCU CPU stall warnings (module parameter rcu_cpu_stall_suppress)
> -torture.txt
> -	- RCU Torture Test Operation (CONFIG_RCU_TORTURE_TEST)
> -UP.txt
> -	- RCU on Uniprocessor Systems
> -whatisRCU.txt
> -	- What is RCU?
> diff --git a/Documentation/RCU/rcu.txt b/Documentation/RCU/rcu.txt
> index 7d4ae11..721b3e4 100644
> --- a/Documentation/RCU/rcu.txt
> +++ b/Documentation/RCU/rcu.txt
> @@ -87,7 +87,3 @@ o	Where can I find more information on RCU?
> 
>  	See the RTFP.txt file in this directory.
>  	Or point your browser at http://www.rdrop.com/users/paulmck/RCU/.
> -
> -o	What are all these files in this directory?
> -
> -	See 00-INDEX for the list.
> diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst
> index 15ea785..0797eec 100644
> --- a/Documentation/admin-guide/README.rst
> +++ b/Documentation/admin-guide/README.rst
> @@ -51,8 +51,7 @@ Documentation
> 
>   - There are various README files in the Documentation/ subdirectory:
>     these typically contain kernel-specific installation notes for some
> -   drivers for example. See Documentation/00-INDEX for a list of what
> -   is contained in each file.  Please read the
> +   drivers for example. Please read the
>     :ref:`Documentation/process/changes.rst <changes>` file, as it
>     contains information about the problems, which may result by upgrading
>     your kernel.
> diff --git a/Documentation/arm/00-INDEX b/Documentation/arm/00-INDEX
> deleted file mode 100644
> index b6e69fd..0000000
> --- a/Documentation/arm/00-INDEX
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -00-INDEX
> -	- this file
> -Booting
> -	- requirements for booting
> -CCN.txt
> -	- Cache Coherent Network ring-bus and perf PMU driver.
> -Interrupts
> -	- ARM Interrupt subsystem documentation
> -IXP4xx
> -	- Intel IXP4xx Network processor.
> -Netwinder
> -	- Netwinder specific documentation
> -Porting
> -       - Symbol definitions for porting Linux to a new ARM machine.
> -Setup
> -       - Kernel initialization parameters on ARM Linux
> -README
> -	- General ARM documentation
> -SA1100/
> -	- SA1100 documentation
> -Samsung-S3C24XX/
> -	- S3C24XX ARM Linux Overview
> -SPEAr/
> -	- ST SPEAr platform Linux Overview
> -VFP/
> -	- Release notes for Linux Kernel Vector Floating Point support code
> -cluster-pm-race-avoidance.txt
> -	- Algorithm for CPU and Cluster setup/teardown
> -empeg/
> -	- Ltd's Empeg MP3 Car Audio Player
> -firmware.txt
> -	- Secure firmware registration and calling.
> -kernel_mode_neon.txt
> -	- How to use NEON instructions in kernel mode
> -kernel_user_helpers.txt
> -	- Helper functions in kernel space made available for userspace.
> -mem_alignment
> -	- alignment abort handler documentation
> -memory.txt
> -	- description of the virtual memory layout
> -nwfpe/
> -	- NWFPE floating point emulator documentation
> -swp_emulation
> -	- SWP/SWPB emulation handler/logging description
> -tcm.txt
> -	- ARM Tightly Coupled Memory
> -uefi.txt
> -	- [U]EFI configuration and runtime services documentation
> -vlocks.txt
> -	- Voting locks, low-level mechanism relying on memory system atomic writes.
> diff --git a/Documentation/block/00-INDEX b/Documentation/block/00-INDEX
> deleted file mode 100644
> index 8d55b4b..0000000
> --- a/Documentation/block/00-INDEX
> +++ /dev/null
> @@ -1,34 +0,0 @@
> -00-INDEX
> -	- This file
> -bfq-iosched.txt
> -	- BFQ IO scheduler and its tunables
> -biodoc.txt
> -	- Notes on the Generic Block Layer Rewrite in Linux 2.5
> -biovecs.txt
> -	- Immutable biovecs and biovec iterators
> -capability.txt
> -	- Generic Block Device Capability (/sys/block/<device>/capability)
> -cfq-iosched.txt
> -	- CFQ IO scheduler tunables
> -cmdline-partition.txt
> -	- how to specify block device partitions on kernel command line
> -data-integrity.txt
> -	- Block data integrity
> -deadline-iosched.txt
> -	- Deadline IO scheduler tunables
> -ioprio.txt
> -	- Block io priorities (in CFQ scheduler)
> -pr.txt
> -	- Block layer support for Persistent Reservations
> -null_blk.txt
> -	- Null block for block-layer benchmarking.
> -queue-sysfs.txt
> -	- Queue's sysfs entries
> -request.txt
> -	- The members of struct request (in include/linux/blkdev.h)
> -stat.txt
> -	- Block layer statistics in /sys/block/<device>/stat
> -switching-sched.txt
> -	- Switching I/O schedulers at runtime
> -writeback_cache_control.txt
> -	- Control of volatile write back caches
> diff --git a/Documentation/blockdev/00-INDEX b/Documentation/blockdev/00-INDEX
> deleted file mode 100644
> index c08df56..0000000
> --- a/Documentation/blockdev/00-INDEX
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -00-INDEX
> -	- this file
> -README.DAC960
> -	- info on Mylex DAC960/DAC1100 PCI RAID Controller Driver for Linux.
> -cciss.txt
> -	- info, major/minor #'s for Compaq's SMART Array Controllers.
> -cpqarray.txt
> -	- info on using Compaq's SMART2 Intelligent Disk Array Controllers.
> -floppy.txt
> -	- notes and driver options for the floppy disk driver.
> -mflash.txt
> -	- info on mGine m(g)flash driver for linux.
> -nbd.txt
> -	- info on a TCP implementation of a network block device.
> -paride.txt
> -	- information about the parallel port IDE subsystem.
> -ramdisk.txt
> -	- short guide on how to set up and use the RAM disk.
> diff --git a/Documentation/cdrom/00-INDEX b/Documentation/cdrom/00-INDEX
> deleted file mode 100644
> index 433edf2..0000000
> --- a/Documentation/cdrom/00-INDEX
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -00-INDEX
> -	- this file (info on CD-ROMs and Linux)
> -Makefile
> -	- only used to generate TeX output from the documentation.
> -cdrom-standard.tex
> -	- LaTeX document on standardizing the CD-ROM programming interface.
> -ide-cd
> -	- info on setting up and using ATAPI (aka IDE) CD-ROMs.
> -packet-writing.txt
> -	- Info on the CDRW packet writing module
> -
> diff --git a/Documentation/cgroup-v1/00-INDEX b/Documentation/cgroup-v1/00-INDEX
> deleted file mode 100644
> index 13e0c85..0000000
> --- a/Documentation/cgroup-v1/00-INDEX
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -00-INDEX
> -	- this file
> -blkio-controller.txt
> -	- Description for Block IO Controller, implementation and usage details.
> -cgroups.txt
> -	- Control Groups definition, implementation details, examples and API.
> -cpuacct.txt
> -	- CPU Accounting Controller; account CPU usage for groups of tasks.
> -cpusets.txt
> -	- documents the cpusets feature; assign CPUs and Mem to a set of tasks.
> -admin-guide/devices.rst
> -	- Device Whitelist Controller; description, interface and security.
> -freezer-subsystem.txt
> -	- checkpointing; rationale to not use signals, interface.
> -hugetlb.txt
> -	- HugeTLB Controller implementation and usage details.
> -memcg_test.txt
> -	- Memory Resource Controller; implementation details.
> -memory.txt
> -	- Memory Resource Controller; design, accounting, interface, testing.
> -net_cls.txt
> -	- Network classifier cgroups details and usages.
> -net_prio.txt
> -	- Network priority cgroups details and usages.
> -pids.txt
> -	- Process number cgroups details and usages.
> diff --git a/Documentation/devicetree/00-INDEX b/Documentation/devicetree/00-INDEX
> deleted file mode 100644
> index 8c4102c..0000000
> --- a/Documentation/devicetree/00-INDEX
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -Documentation for device trees, a data structure by which bootloaders pass
> -hardware layout to Linux in a device-independent manner, simplifying hardware
> -probing.  This subsystem is maintained by Grant Likely
> -<grant.likely@secretlab.ca> and has a mailing list at
> -https://lists.ozlabs.org/listinfo/devicetree-discuss
> -
> -00-INDEX
> -	- this file
> -booting-without-of.txt
> -	- Booting Linux without Open Firmware, describes history and format of device trees.
> -usage-model.txt
> -	- How Linux uses DT and what DT aims to solve.
> \ No newline at end of file
> diff --git a/Documentation/fb/00-INDEX b/Documentation/fb/00-INDEX
> deleted file mode 100644
> index fe85e7c..0000000
> --- a/Documentation/fb/00-INDEX
> +++ /dev/null
> @@ -1,75 +0,0 @@
> -Index of files in Documentation/fb.  If you think something about frame
> -buffer devices needs an entry here, needs correction or you've written one
> -please mail me.
> -				    Geert Uytterhoeven <geert@linux-m68k.org>
> -
> -00-INDEX
> -	- this file.
> -api.txt
> -	- The frame buffer API between applications and buffer devices.
> -arkfb.txt
> -	- info on the fbdev driver for ARK Logic chips.
> -aty128fb.txt
> -	- info on the ATI Rage128 frame buffer driver.
> -cirrusfb.txt
> -	- info on the driver for Cirrus Logic chipsets.
> -cmap_xfbdev.txt
> -	- an introduction to fbdev's cmap structures.
> -deferred_io.txt
> -	- an introduction to deferred IO.
> -efifb.txt
> -	- info on the EFI platform driver for Intel based Apple computers.
> -ep93xx-fb.txt
> -	- info on the driver for EP93xx LCD controller.
> -fbcon.txt
> -	- intro to and usage guide for the framebuffer console (fbcon).
> -framebuffer.txt
> -	- introduction to frame buffer devices.
> -gxfb.txt
> -	- info on the framebuffer driver for AMD Geode GX2 based processors.
> -intel810.txt
> -	- documentation for the Intel 810/815 framebuffer driver.
> -intelfb.txt
> -	- docs for Intel 830M/845G/852GM/855GM/865G/915G/945G fb driver.
> -internals.txt
> -	- quick overview of frame buffer device internals.
> -lxfb.txt
> -	- info on the framebuffer driver for AMD Geode LX based processors.
> -matroxfb.txt
> -	- info on the Matrox framebuffer driver for Alpha, Intel and PPC.
> -metronomefb.txt
> -	- info on the driver for the Metronome display controller.
> -modedb.txt
> -	- info on the video mode database.
> -pvr2fb.txt
> -	- info on the PowerVR 2 frame buffer driver.
> -pxafb.txt
> -	- info on the driver for the PXA25x LCD controller.
> -s3fb.txt
> -	- info on the fbdev driver for S3 Trio/Virge chips.
> -sa1100fb.txt
> -	- information about the driver for the SA-1100 LCD controller.
> -sh7760fb.txt
> -	- info on the SH7760/SH7763 integrated LCDC Framebuffer driver.
> -sisfb.txt
> -	- info on the framebuffer device driver for various SiS chips.
> -sm501.txt
> -	- info on the framebuffer device driver for sm501 videoframebuffer.
> -sstfb.txt
> -	- info on the frame buffer driver for 3dfx' Voodoo Graphics boards.
> -tgafb.txt
> -	- info on the TGA (DECChip 21030) frame buffer driver.
> -tridentfb.txt
> -	info on the framebuffer driver for some Trident chip based cards.
> -udlfb.txt
> -	- Driver for DisplayLink USB 2.0 chips.
> -uvesafb.txt
> -	- info on the userspace VESA (VBE2+ compliant) frame buffer device.
> -vesafb.txt
> -	- info on the VESA frame buffer device.
> -viafb.modes
> -	- list of modes for VIA Integration Graphic Chip.
> -viafb.txt
> -	- info on the VIA Integration Graphic Chip console framebuffer driver.
> -vt8623fb.txt
> -	- info on the fb driver for the graphics core in VIA VT8623 chipsets.
> diff --git a/Documentation/filesystems/00-INDEX b/Documentation/filesystems/00-INDEX
> deleted file mode 100644
> index 0937bad..0000000
> --- a/Documentation/filesystems/00-INDEX
> +++ /dev/null
> @@ -1,153 +0,0 @@
> -00-INDEX
> -	- this file (info on some of the filesystems supported by linux).
> -Locking
> -	- info on locking rules as they pertain to Linux VFS.
> -9p.txt
> -	- 9p (v9fs) is an implementation of the Plan 9 remote fs protocol.
> -adfs.txt
> -	- info and mount options for the Acorn Advanced Disc Filing System.
> -afs.txt
> -	- info and examples for the distributed AFS (Andrew File System) fs.
> -affs.txt
> -	- info and mount options for the Amiga Fast File System.
> -autofs-mount-control.txt
> -	- info on device control operations for autofs module.
> -automount-support.txt
> -	- information about filesystem automount support.
> -befs.txt
> -	- information about the BeOS filesystem for Linux.
> -bfs.txt
> -	- info for the SCO UnixWare Boot Filesystem (BFS).
> -btrfs.txt
> -	- info for the BTRFS filesystem.
> -caching/
> -	- directory containing filesystem cache documentation.
> -ceph.txt
> -	- info for the Ceph Distributed File System.
> -cifs/
> -	- directory containing CIFS filesystem documentation and example code.
> -coda.txt
> -	- description of the CODA filesystem.
> -configfs/
> -	- directory containing configfs documentation and example code.
> -cramfs.txt
> -	- info on the cram filesystem for small storage (ROMs etc).
> -dax.txt
> -	- info on avoiding the page cache for files stored on CPU-addressable
> -	  storage devices.
> -debugfs.txt
> -	- info on the debugfs filesystem.
> -devpts.txt
> -	- info on the devpts filesystem.
> -directory-locking
> -	- info about the locking scheme used for directory operations.
> -dlmfs.txt
> -	- info on the userspace interface to the OCFS2 DLM.
> -dnotify.txt
> -	- info about directory notification in Linux.
> -dnotify_test.c
> -	- example program for dnotify.
> -ecryptfs.txt
> -	- docs on eCryptfs: stacked cryptographic filesystem for Linux.
> -efivarfs.txt
> -	- info for the efivarfs filesystem.
> -exofs.txt
> -	- info, usage, mount options, design about EXOFS.
> -ext2.txt
> -	- info, mount options and specifications for the Ext2 filesystem.
> -ext3.txt
> -	- info, mount options and specifications for the Ext3 filesystem.
> -ext4.txt
> -	- info, mount options and specifications for the Ext4 filesystem.
> -f2fs.txt
> -	- info and mount options for the F2FS filesystem.
> -fiemap.txt
> -	- info on fiemap ioctl.
> -files.txt
> -	- info on file management in the Linux kernel.
> -fuse.txt
> -	- info on the Filesystem in User SpacE including mount options.
> -gfs2-glocks.txt
> -	- info on the Global File System 2 - Glock internal locking rules.
> -gfs2-uevents.txt
> -	- info on the Global File System 2 - uevents.
> -gfs2.txt
> -	- info on the Global File System 2.
> -hfs.txt
> -	- info on the Macintosh HFS Filesystem for Linux.
> -hfsplus.txt
> -	- info on the Macintosh HFSPlus Filesystem for Linux.
> -hpfs.txt
> -	- info and mount options for the OS/2 HPFS.
> -inotify.txt
> -	- info on the powerful yet simple file change notification system.
> -isofs.txt
> -	- info and mount options for the ISO 9660 (CDROM) filesystem.
> -jfs.txt
> -	- info and mount options for the JFS filesystem.
> -locks.txt
> -	- info on file locking implementations, flock() vs. fcntl(), etc.
> -mandatory-locking.txt
> -	- info on the Linux implementation of Sys V mandatory file locking.
> -nfs/
> -	- nfs-related documentation.
> -nilfs2.txt
> -	- info and mount options for the NILFS2 filesystem.
> -ntfs.txt
> -	- info and mount options for the NTFS filesystem (Windows NT).
> -ocfs2.txt
> -	- info and mount options for the OCFS2 clustered filesystem.
> -omfs.txt
> -	- info on the Optimized MPEG FileSystem.
> -path-lookup.txt
> -	- info on path walking and name lookup locking.
> -pohmelfs/
> -	- directory containing pohmelfs filesystem documentation.
> -porting
> -	- various information on filesystem porting.
> -proc.txt
> -	- info on Linux's /proc filesystem.
> -qnx6.txt
> -	- info on the QNX6 filesystem.
> -quota.txt
> -	- info on Quota subsystem.
> -ramfs-rootfs-initramfs.txt
> -	- info on the 'in memory' filesystems ramfs, rootfs and initramfs.
> -relay.txt
> -	- info on relay, for efficient streaming from kernel to user space.
> -romfs.txt
> -	- description of the ROMFS filesystem.
> -seq_file.txt
> -	- how to use the seq_file API.
> -sharedsubtree.txt
> -	- a description of shared subtrees for namespaces.
> -spufs.txt
> -	- info and mount options for the SPU filesystem used on Cell.
> -squashfs.txt
> -	- info on the squashfs filesystem.
> -sysfs-pci.txt
> -	- info on accessing PCI device resources through sysfs.
> -sysfs-tagging.txt
> -	- info on sysfs tagging to avoid duplicates.
> -sysfs.txt
> -	- info on sysfs, a ram-based filesystem for exporting kernel objects.
> -sysv-fs.txt
> -	- info on the SystemV/V7/Xenix/Coherent filesystem.
> -tmpfs.txt
> -	- info on tmpfs, a filesystem that holds all files in virtual memory.
> -ubifs.txt
> -	- info on the Unsorted Block Images FileSystem.
> -udf.txt
> -	- info and mount options for the UDF filesystem.
> -ufs.txt
> -	- info on the ufs filesystem.
> -vfat.txt
> -	- info on using the VFAT filesystem used in Windows NT and Windows 95.
> -vfs.txt
> -	- overview of the Virtual File System.
> -xfs-delayed-logging-design.txt
> -	- info on the XFS Delayed Logging Design.
> -xfs-self-describing-metadata.txt
> -	- info on XFS Self Describing Metadata.
> -xfs.txt
> -	- info and mount options for the XFS filesystem.
> diff --git a/Documentation/filesystems/nfs/00-INDEX b/Documentation/filesystems/nfs/00-INDEX
> deleted file mode 100644
> index 53f3b59..0000000
> --- a/Documentation/filesystems/nfs/00-INDEX
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -00-INDEX
> -	- this file (nfs-related documentation).
> -Exporting
> -	- explanation of how to make filesystems exportable.
> -fault_injection.txt
> -	- information for using fault injection on the server
> -knfsd-stats.txt
> -	- statistics which the NFS server makes available to user space.
> -nfs.txt
> -	- nfs client, and DNS resolution for fs_locations.
> -nfs41-server.txt
> -	- info on the Linux server implementation of NFSv4 minor version 1.
> -nfs-rdma.txt
> -	- how to install and setup the Linux NFS/RDMA client and server software
> -nfsd-admin-interfaces.txt
> -	- Administrative interfaces for nfsd.
> -nfsroot.txt
> -	- short guide on setting up a diskless box with NFS root filesystem.
> -pnfs.txt
> -	- short explanation of some of the internals of the pnfs client code
> -rpc-cache.txt
> -	- introduction to the caching mechanisms in the sunrpc layer.
> -idmapper.txt
> -	- information for configuring request-keys to be used by idmapper
> -rpc-server-gss.txt
> -	- Information on GSS authentication support in the NFS Server
> diff --git a/Documentation/fmc/00-INDEX b/Documentation/fmc/00-INDEX
> deleted file mode 100644
> index 431c695..0000000
> --- a/Documentation/fmc/00-INDEX
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -
> -Documentation in this directory comes from sections of the manual we
> -wrote for the externally-developed fmc-bus package. The complete
> -manual as of today (2013-02) is available in PDF format at
> -http://www.ohwr.org/projects/fmc-bus/files
> -
> -00-INDEX
> -	- this file.
> -
> -FMC-and-SDB.txt
> -	- What are FMC and SDB, basic concepts for this framework
> -
> -API.txt
> -	- The functions that are exported by the bus driver
> -
> -parameters.txt
> -	- The module parameters
> -
> -carrier.txt
> -	- writing a carrier (a device)
> -
> -mezzanine.txt
> -	- writing code for your mezzanine (a driver)
> -
> -identifiers.txt
> -	- how identification and matching works
> -
> -fmc-fakedev.txt
> -	- about drivers/fmc/fmc-fakedev.ko
> -
> -fmc-trivial.txt
> -	- about drivers/fmc/fmc-trivial.ko
> -
> -fmc-write-eeprom.txt
> -	- about drivers/fmc/fmc-write-eeprom.ko
> -
> -fmc-chardev.txt
> -	- about drivers/fmc/fmc-chardev.ko
> diff --git a/Documentation/gpio/00-INDEX b/Documentation/gpio/00-INDEX
> deleted file mode 100644
> index 17e19a6..0000000
> --- a/Documentation/gpio/00-INDEX
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -00-INDEX
> -	- This file
> -sysfs.txt
> -	- Information about the GPIO sysfs interface
> diff --git a/Documentation/ide/00-INDEX b/Documentation/ide/00-INDEX
> deleted file mode 100644
> index 22f98ca..0000000
> --- a/Documentation/ide/00-INDEX
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -00-INDEX
> -    	- this file
> -ChangeLog.ide-cd.1994-2004
> -	- ide-cd changelog
> -ChangeLog.ide-floppy.1996-2002
> -	- ide-floppy changelog
> -ChangeLog.ide-tape.1995-2002
> -	- ide-tape changelog
> -ide-tape.txt
> -	- info on the IDE ATAPI streaming tape driver
> -ide.txt
> -	- important info for users of ATA devices (IDE/EIDE disks and CD-ROMS).
> -warm-plug-howto.txt
> -	- using sysfs to remove and add IDE devices.
> \ No newline at end of file
> diff --git a/Documentation/ioctl/00-INDEX b/Documentation/ioctl/00-INDEX
> deleted file mode 100644
> index c1a9257..0000000
> --- a/Documentation/ioctl/00-INDEX
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -00-INDEX
> -	- this file
> -botching-up-ioctls.txt
> -	- how to avoid botching up ioctls
> -cdrom.txt
> -	- summary of CDROM ioctl calls
> -hdio.txt
> -	- summary of HDIO_ ioctl calls
> -ioctl-decoding.txt
> -	- how to decode the bits of an IOCTL code
> -ioctl-number.txt
> -	- how to implement and register device/driver ioctl calls
> diff --git a/Documentation/isdn/00-INDEX b/Documentation/isdn/00-INDEX
> deleted file mode 100644
> index 2d1889b..0000000
> --- a/Documentation/isdn/00-INDEX
> +++ /dev/null
> @@ -1,42 +0,0 @@
> -00-INDEX
> -	- this file (info on ISDN implementation for Linux)
> -CREDITS
> -	- list of the kind folks that brought you this stuff.
> -HiSax.cert
> -	- information about the ITU approval certification of the HiSax driver.
> -INTERFACE
> -	- description of isdn4linux Link Level and Hardware Level interfaces.
> -INTERFACE.fax
> -	- description of the fax subinterface of isdn4linux.
> -INTERFACE.CAPI
> -	- description of kernel CAPI Link Level to Hardware Level interface.
> -README
> -	- general info on what you need and what to do for Linux ISDN.
> -README.FAQ
> -	- general info for FAQ.
> -README.HiSax
> -	- info on the HiSax driver which replaces the old teles.
> -README.audio
> -	- info for running audio over ISDN.
> -README.avmb1
> -	- info on driver for AVM-B1 ISDN card.
> -README.concap
> -	- info on "CONCAP" encapsulation protocol interface used for X.25.
> -README.diversion
> -	- info on module for isdn diversion services.
> -README.fax
> -	- info for using Fax over ISDN.
> -README.gigaset
> -	- info on the drivers for Siemens Gigaset ISDN adapters
> -README.hfc-pci
> -	- info on hfc-pci based cards.
> -README.hysdn
> -        - info on driver for Hypercope active HYSDN cards
> -README.mISDN
> -	- info on the Modular ISDN subsystem (mISDN)
> -README.syncppp
> -	- info on running Sync PPP over ISDN.
> -README.x25
> -	- info for running X.25 over ISDN.
> -syncPPP.FAQ
> -	- frequently asked questions about running PPP over ISDN.
> diff --git a/Documentation/kbuild/00-INDEX b/Documentation/kbuild/00-INDEX
> deleted file mode 100644
> index 8c5e6aa..0000000
> --- a/Documentation/kbuild/00-INDEX
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -00-INDEX
> -	- this file: info on the kernel build process
> -headers_install.txt
> -	- how to export Linux headers for use by userspace
> -kbuild.txt
> -	- developer information on kbuild
> -kconfig.txt
> -	- usage help for make *config
> -kconfig-language.txt
> -	- specification of Config Language, the language in Kconfig files
> -makefiles.txt
> -	- developer information for linux kernel makefiles
> -modules.txt
> -	- how to build modules and to install them
> diff --git a/Documentation/laptops/00-INDEX b/Documentation/laptops/00-INDEX
> deleted file mode 100644
> index 86169dc..0000000
> --- a/Documentation/laptops/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- This file
> -asus-laptop.txt
> -	- information on the Asus Laptop Extras driver.
> -disk-shock-protection.txt
> -	- information on hard disk shock protection.
> -laptop-mode.txt
> -	- how to conserve battery power using laptop-mode.
> -sony-laptop.txt
> -	- Sony Notebook Control Driver (SNC) Readme.
> -sonypi.txt
> -	- info on Linux Sony Programmable I/O Device support.
> -thinkpad-acpi.txt
> -	- information on the (IBM and Lenovo) ThinkPad ACPI Extras driver.
> -toshiba_haps.txt
> -	- information on the Toshiba HDD Active Protection Sensor driver.
> diff --git a/Documentation/leds/00-INDEX b/Documentation/leds/00-INDEX
> deleted file mode 100644
> index ae626b2..0000000
> --- a/Documentation/leds/00-INDEX
> +++ /dev/null
> @@ -1,32 +0,0 @@
> -00-INDEX
> -	- This file
> -leds-blinkm.txt
> -	- Driver for BlinkM LED-devices.
> -leds-class.txt
> -	- documents LED handling under Linux.
> -leds-class-flash.txt
> -	- documents flash LED handling under Linux.
> -leds-lm3556.txt
> -	- notes on how to use the leds-lm3556 driver.
> -leds-lp3944.txt
> -	- notes on how to use the leds-lp3944 driver.
> -leds-lp5521.txt
> -	- notes on how to use the leds-lp5521 driver.
> -leds-lp5523.txt
> -	- notes on how to use the leds-lp5523 driver.
> -leds-lp5562.txt
> -	- notes on how to use the leds-lp5562 driver.
> -leds-lp55xx.txt
> -	- description about lp55xx common driver.
> -leds-lm3556.txt
> -	- notes on how to use the leds-lm3556 driver.
> -leds-mlxcpld.txt
> -	- notes on how to use the leds-mlxcpld driver.
> -ledtrig-oneshot.txt
> -	- One-shot LED trigger for both sporadic and dense events.
> -ledtrig-transient.txt
> -	- LED Transient Trigger, one shot timer activation.
> -ledtrig-usbport.txt
> -	- notes on how to use the drivers/usb/core/ledtrig-usbport.c trigger.
> -uleds.txt
> -	- notes on how to use the uleds driver.
> diff --git a/Documentation/locking/00-INDEX b/Documentation/locking/00-INDEX
> deleted file mode 100644
> index c256c9b..0000000
> --- a/Documentation/locking/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -lockdep-design.txt
> -	- documentation on the runtime locking correctness validator.
> -lockstat.txt
> -	- info on collecting statistics on locks (and contention).
> -mutex-design.txt
> -	- info on the generic mutex subsystem.
> -rt-mutex-design.txt
> -	- description of the RealTime mutex implementation design.
> -rt-mutex.txt
> -	- desc. of RT-mutex subsystem with PI (Priority Inheritance) support.
> -spinlocks.txt
> -	- info on using spinlocks to provide exclusive access in kernel.
> -ww-mutex-design.txt
> -	- Intro to Mutex wait/would deadlock handling.s
> diff --git a/Documentation/m68k/00-INDEX b/Documentation/m68k/00-INDEX
> deleted file mode 100644
> index 2be8c6b..0000000
> --- a/Documentation/m68k/00-INDEX
> +++ /dev/null
> @@ -1,7 +0,0 @@
> -00-INDEX
> -	- this file
> -README.buddha
> -	- Amiga Buddha and Catweasel IDE Driver
> -kernel-options.txt
> -	- command line options for Linux/m68k
> -
> diff --git a/Documentation/mips/00-INDEX b/Documentation/mips/00-INDEX
> deleted file mode 100644
> index 8ae9cff..0000000
> --- a/Documentation/mips/00-INDEX
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -00-INDEX
> -	- this file.
> -AU1xxx_IDE.README
> -	- README for MIPS AU1XXX IDE driver.
> diff --git a/Documentation/mmc/00-INDEX b/Documentation/mmc/00-INDEX
> deleted file mode 100644
> index 4623bc0..0000000
> --- a/Documentation/mmc/00-INDEX
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -00-INDEX
> -        - this file
> -mmc-dev-attrs.txt
> -        - info on SD and MMC device attributes
> -mmc-dev-parts.txt
> -        - info on SD and MMC device partitions
> -mmc-async-req.txt
> -        - info on mmc asynchronous requests
> -mmc-tools.txt
> -	- info on mmc-utils tools
> diff --git a/Documentation/netlabel/00-INDEX b/Documentation/netlabel/00-INDEX
> deleted file mode 100644
> index 837bf35..0000000
> --- a/Documentation/netlabel/00-INDEX
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -00-INDEX
> -	- this file.
> -cipso_ipv4.txt
> -	- documentation on the IPv4 CIPSO protocol engine.
> -draft-ietf-cipso-ipsecurity-01.txt
> -	- IETF draft of the CIPSO protocol, dated 16 July 1992.
> -introduction.txt
> -	- NetLabel introduction, READ THIS FIRST.
> -lsm_interface.txt
> -	- documentation on the NetLabel kernel security module API.
> diff --git a/Documentation/netlabel/cipso_ipv4.txt b/Documentation/netlabel/cipso_ipv4.txt
> index 93dacb1..a607548 100644
> --- a/Documentation/netlabel/cipso_ipv4.txt
> +++ b/Documentation/netlabel/cipso_ipv4.txt
> @@ -6,11 +6,12 @@ May 17, 2006
> 
>   * Overview
> 
> -The NetLabel CIPSO/IPv4 protocol engine is based on the IETF Commercial IP
> -Security Option (CIPSO) draft from July 16, 1992.  A copy of this draft can be
> -found in this directory, consult '00-INDEX' for the filename.  While the IETF
> -draft never made it to an RFC standard it has become a de-facto standard for
> -labeled networking and is used in many trusted operating systems.
> +The NetLabel CIPSO/IPv4 protocol engine is based on the IETF Commercial
> +IP Security Option (CIPSO) draft from July 16, 1992.  A copy of this
> +draft can be found in this directory
> +(draft-ietf-cipso-ipsecurity-01.txt).  While the IETF draft never made
> +it to an RFC standard it has become a de-facto standard for labeled
> +networking and is used in many trusted operating systems.
> 
>   * Outbound Packet Processing
> 
> diff --git a/Documentation/netlabel/introduction.txt b/Documentation/netlabel/introduction.txt
> index 5ecd8d1..3caf77b 100644
> --- a/Documentation/netlabel/introduction.txt
> +++ b/Documentation/netlabel/introduction.txt
> @@ -22,7 +22,7 @@ refrain from calling the protocol engines directly, instead they should use
>  the NetLabel kernel security module API described below.
> 
>  Detailed information about each NetLabel protocol engine can be found in this
> -directory, consult '00-INDEX' for filenames.
> +directory.
> 
>   * Communication Layer
> 
> diff --git a/Documentation/networking/00-INDEX b/Documentation/networking/00-INDEX
> deleted file mode 100644
> index 02a323c..0000000
> --- a/Documentation/networking/00-INDEX
> +++ /dev/null
> @@ -1,234 +0,0 @@
> -00-INDEX
> -	- this file
> -3c509.txt
> -	- information on the 3Com Etherlink III Series Ethernet cards.
> -6pack.txt
> -	- info on the 6pack protocol, an alternative to KISS for AX.25
> -LICENSE.qla3xxx
> -	- GPLv2 for QLogic Linux Networking HBA Driver
> -LICENSE.qlge
> -	- GPLv2 for QLogic Linux qlge NIC Driver
> -LICENSE.qlcnic
> -	- GPLv2 for QLogic Linux qlcnic NIC Driver
> -PLIP.txt
> -	- PLIP: The Parallel Line Internet Protocol device driver
> -README.ipw2100
> -	- README for the Intel PRO/Wireless 2100 driver.
> -README.ipw2200
> -	- README for the Intel PRO/Wireless 2915ABG and 2200BG driver.
> -README.sb1000
> -	- info on General Instrument/NextLevel SURFboard1000 cable modem.
> -altera_tse.txt
> -	- Altera Triple-Speed Ethernet controller.
> -arcnet-hardware.txt
> -	- tons of info on ARCnet, hubs, jumper settings for ARCnet cards, etc.
> -arcnet.txt
> -	- info on the using the ARCnet driver itself.
> -atm.txt
> -	- info on where to get ATM programs and support for Linux.
> -ax25.txt
> -	- info on using AX.25 and NET/ROM code for Linux
> -baycom.txt
> -	- info on the driver for Baycom style amateur radio modems
> -bonding.txt
> -	- Linux Ethernet Bonding Driver HOWTO: link aggregation in Linux.
> -bridge.txt
> -	- where to get user space programs for ethernet bridging with Linux.
> -cdc_mbim.txt
> -	- 3G/LTE USB modem (Mobile Broadband Interface Model)
> -checksum-offloads.txt
> -	- Explanation of checksum offloads; LCO, RCO
> -cops.txt
> -	- info on the COPS LocalTalk Linux driver
> -cs89x0.txt
> -	- the Crystal LAN (CS8900/20-based) Ethernet ISA adapter driver
> -cxacru.txt
> -	- Conexant AccessRunner USB ADSL Modem
> -cxacru-cf.py
> -	- Conexant AccessRunner USB ADSL Modem configuration file parser
> -cxgb.txt
> -	- Release Notes for the Chelsio N210 Linux device driver.
> -dccp.txt
> -	- the Datagram Congestion Control Protocol (DCCP) (RFC 4340..42).
> -dctcp.txt
> -	- DataCenter TCP congestion control
> -de4x5.txt
> -	- the Digital EtherWORKS DE4?? and DE5?? PCI Ethernet driver
> -decnet.txt
> -	- info on using the DECnet networking layer in Linux.
> -dl2k.txt
> -	- README for D-Link DL2000-based Gigabit Ethernet Adapters (dl2k.ko).
> -dm9000.txt
> -	- README for the Simtec DM9000 Network driver.
> -dmfe.txt
> -	- info on the Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver.
> -dns_resolver.txt
> -	- The DNS resolver module allows kernel servies to make DNS queries.
> -driver.txt
> -	- Softnet driver issues.
> -ena.txt
> -	- info on Amazon's Elastic Network Adapter (ENA)
> -e100.txt
> -	- info on Intel's EtherExpress PRO/100 line of 10/100 boards
> -e1000.txt
> -	- info on Intel's E1000 line of gigabit ethernet boards
> -e1000e.txt
> -	- README for the Intel Gigabit Ethernet Driver (e1000e).
> -eql.txt
> -	- serial IP load balancing
> -fib_trie.txt
> -	- Level Compressed Trie (LC-trie) notes: a structure for routing.
> -filter.txt
> -	- Linux Socket Filtering
> -fore200e.txt
> -	- FORE Systems PCA-200E/SBA-200E ATM NIC driver info.
> -framerelay.txt
> -	- info on using Frame Relay/Data Link Connection Identifier (DLCI).
> -gen_stats.txt
> -	- Generic networking statistics for netlink users.
> -generic-hdlc.txt
> -	- The generic High Level Data Link Control (HDLC) layer.
> -generic_netlink.txt
> -	- info on Generic Netlink
> -gianfar.txt
> -	- Gianfar Ethernet Driver.
> -i40e.txt
> -	- README for the Intel Ethernet Controller XL710 Driver (i40e).
> -i40evf.txt
> -	- Short note on the Driver for the Intel(R) XL710 X710 Virtual Function
> -ieee802154.txt
> -	- Linux IEEE 802.15.4 implementation, API and drivers
> -igb.txt
> -	- README for the Intel Gigabit Ethernet Driver (igb).
> -igbvf.txt
> -	- README for the Intel Gigabit Ethernet Driver (igbvf).
> -ip-sysctl.txt
> -	- /proc/sys/net/ipv4/* variables
> -ip_dynaddr.txt
> -	- IP dynamic address hack e.g. for auto-dialup links
> -ipddp.txt
> -	- AppleTalk-IP Decapsulation and AppleTalk-IP Encapsulation
> -iphase.txt
> -	- Interphase PCI ATM (i)Chip IA Linux driver info.
> -ipsec.txt
> -	- Note on not compressing IPSec payload and resulting failed policy check.
> -ipv6.txt
> -	- Options to the ipv6 kernel module.
> -ipvs-sysctl.txt
> -	- Per-inode explanation of the /proc/sys/net/ipv4/vs interface.
> -irda.txt
> -	- where to get IrDA (infrared) utilities and info for Linux.
> -ixgb.txt
> -	- README for the Intel 10 Gigabit Ethernet Driver (ixgb).
> -ixgbe.txt
> -	- README for the Intel 10 Gigabit Ethernet Driver (ixgbe).
> -ixgbevf.txt
> -	- README for the Intel Virtual Function (VF) Driver (ixgbevf).
> -l2tp.txt
> -	- User guide to the L2TP tunnel protocol.
> -lapb-module.txt
> -	- programming information of the LAPB module.
> -ltpc.txt
> -	- the Apple or Farallon LocalTalk PC card driver
> -mac80211-auth-assoc-deauth.txt
> -	- authentication and association / deauth-disassoc with max80211
> -mac80211-injection.txt
> -	- HOWTO use packet injection with mac80211
> -multiqueue.txt
> -	- HOWTO for multiqueue network device support.
> -netconsole.txt
> -	- The network console module netconsole.ko: configuration and notes.
> -netdev-features.txt
> -	- Network interface features API description.
> -netdevices.txt
> -	- info on network device driver functions exported to the kernel.
> -netif-msg.txt
> -	- Design of the network interface message level setting (NETIF_MSG_*).
> -netlink_mmap.txt
> -	- memory mapped I/O with netlink
> -nf_conntrack-sysctl.txt
> -	- list of netfilter-sysctl knobs.
> -nfc.txt
> -	- The Linux Near Field Communication (NFS) subsystem.
> -openvswitch.txt
> -	- Open vSwitch developer documentation.
> -operstates.txt
> -	- Overview of network interface operational states.
> -packet_mmap.txt
> -	- User guide to memory mapped packet socket rings (PACKET_[RT]X_RING).
> -phonet.txt
> -	- The Phonet packet protocol used in Nokia cellular modems.
> -phy.txt
> -	- The PHY abstraction layer.
> -pktgen.txt
> -	- User guide to the kernel packet generator (pktgen.ko).
> -policy-routing.txt
> -	- IP policy-based routing
> -ppp_generic.txt
> -	- Information about the generic PPP driver.
> -proc_net_tcp.txt
> -	- Per inode overview of the /proc/net/tcp and /proc/net/tcp6 interfaces.
> -radiotap-headers.txt
> -	- Background on radiotap headers.
> -ray_cs.txt
> -	- Raylink Wireless LAN card driver info.
> -rds.txt
> -	- Background on the reliable, ordered datagram delivery method RDS.
> -regulatory.txt
> -	- Overview of the Linux wireless regulatory infrastructure.
> -rxrpc.txt
> -	- Guide to the RxRPC protocol.
> -s2io.txt
> -	- Release notes for Neterion Xframe I/II 10GbE driver.
> -scaling.txt
> -	- Explanation of network scaling techniques: RSS, RPS, RFS, aRFS, XPS.
> -sctp.txt
> -	- Notes on the Linux kernel implementation of the SCTP protocol.
> -secid.txt
> -	- Explanation of the secid member in flow structures.
> -skfp.txt
> -	- SysKonnect FDDI (SK-5xxx, Compaq Netelligent) driver info.
> -smc9.txt
> -	- the driver for SMC's 9000 series of Ethernet cards
> -spider_net.txt
> -	- README for the Spidernet Driver (as found in PS3 / Cell BE).
> -stmmac.txt
> -	- README for the STMicro Synopsys Ethernet driver.
> -tc-actions-env-rules.txt
> -	- rules for traffic control (tc) actions.
> -timestamping.txt
> -	- overview of network packet timestamping variants.
> -tcp.txt
> -	- short blurb on how TCP output takes place.
> -tcp-thin.txt
> -	- kernel tuning options for low rate 'thin' TCP streams.
> -team.txt
> -	- pointer to information for ethernet teaming devices.
> -tlan.txt
> -	- ThunderLAN (Compaq Netelligent 10/100, Olicom OC-2xxx) driver info.
> -tproxy.txt
> -	- Transparent proxy support user guide.
> -tuntap.txt
> -	- TUN/TAP device driver, allowing user space Rx/Tx of packets.
> -udplite.txt
> -	- UDP-Lite protocol (RFC 3828) introduction.
> -vortex.txt
> -	- info on using 3Com Vortex (3c590, 3c592, 3c595, 3c597) Ethernet cards.
> -vxge.txt
> -	- README for the Neterion X3100 PCIe Server Adapter.
> -vxlan.txt
> -	- Virtual extensible LAN overview
> -x25.txt
> -	- general info on X.25 development.
> -x25-iface.txt
> -	- description of the X.25 Packet Layer to LAPB device interface.
> -xfrm_device.txt
> -	- description of XFRM offload API
> -xfrm_proc.txt
> -	- description of the statistics package for XFRM.
> -xfrm_sync.txt
> -	- sync patches for XFRM enable migration of an SA between hosts.
> -xfrm_sysctl.txt
> -	- description of the XFRM configuration options.
> -z8530drv.txt
> -	- info about Linux driver for Z8530 based HDLC cards for AX.25
> diff --git a/Documentation/parisc/00-INDEX b/Documentation/parisc/00-INDEX
> deleted file mode 100644
> index cbd0609..0000000
> --- a/Documentation/parisc/00-INDEX
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -00-INDEX
> -	- this file.
> -debugging
> -	- some debugging hints for real-mode code
> -registers
> -	- current/planned usage of registers
> diff --git a/Documentation/power/00-INDEX b/Documentation/power/00-INDEX
> deleted file mode 100644
> index 7f3c2de..0000000
> --- a/Documentation/power/00-INDEX
> +++ /dev/null
> @@ -1,44 +0,0 @@
> -00-INDEX
> -	- This file
> -apm-acpi.txt
> -	- basic info about the APM and ACPI support.
> -basic-pm-debugging.txt
> -	- Debugging suspend and resume
> -charger-manager.txt
> -	- Battery charger management.
> -admin-guide/devices.rst
> -	- How drivers interact with system-wide power management
> -drivers-testing.txt
> -	- Testing suspend and resume support in device drivers
> -freezing-of-tasks.txt
> -	- How processes and controlled during suspend
> -interface.txt
> -	- Power management user interface in /sys/power
> -opp.txt
> -	- Operating Performance Point library
> -pci.txt
> -	- How the PCI Subsystem Does Power Management
> -pm_qos_interface.txt
> -	- info on Linux PM Quality of Service interface
> -power_supply_class.txt
> -	- Tells userspace about battery, UPS, AC or DC power supply properties
> -runtime_pm.txt
> -	- Power management framework for I/O devices.
> -s2ram.txt
> -	- How to get suspend to ram working (and debug it when it isn't)
> -states.txt
> -	- System power management states
> -suspend-and-cpuhotplug.txt
> -	- Explains the interaction between Suspend-to-RAM (S3) and CPU hotplug
> -swsusp-and-swap-files.txt
> -	- Using swap files with software suspend (to disk)
> -swsusp-dmcrypt.txt
> -	- How to use dm-crypt and software suspend (to disk) together
> -swsusp.txt
> -	- Goals, implementation, and usage of software suspend (ACPI S3)
> -tricks.txt
> -	- How to trick software suspend (to disk) into working when it isn't
> -userland-swsusp.txt
> -	- Experimental implementation of software suspend in userspace
> -video.txt
> -	- Video issues during resume from suspend
> diff --git a/Documentation/powerpc/00-INDEX b/Documentation/powerpc/00-INDEX
> deleted file mode 100644
> index 9dc845c..0000000
> --- a/Documentation/powerpc/00-INDEX
> +++ /dev/null
> @@ -1,34 +0,0 @@
> -Index of files in Documentation/powerpc.  If you think something about
> -Linux/PPC needs an entry here, needs correction or you've written one
> -please mail me.
> -                                        Cort Dougan (cort@fsmlabs.com)
> -
> -00-INDEX
> -	- this file
> -bootwrapper.txt
> -	- Information on how the powerpc kernel is wrapped for boot on various
> -	  different platforms.
> -cpu_features.txt
> -	- info on how we support a variety of CPUs with minimal compile-time
> -	options.
> -cxl.txt
> -	- Overview of the CXL driver.
> -eeh-pci-error-recovery.txt
> -	- info on PCI Bus EEH Error Recovery
> -firmware-assisted-dump.txt
> -	- Documentation on the firmware assisted dump mechanism "fadump".
> -hvcs.txt
> -	- IBM "Hypervisor Virtual Console Server" Installation Guide
> -mpc52xx.txt
> -	- Linux 2.6.x on MPC52xx family
> -pmu-ebb.txt
> -	- Description of the API for using the PMU with Event Based Branches.
> -qe_firmware.txt
> -	- describes the layout of firmware binaries for the Freescale QUICC
> -	  Engine and the code that parses and uploads the microcode therein.
> -ptrace.txt
> -	- Information on the ptrace interfaces for hardware debug registers.
> -transactional_memory.txt
> -	- Overview of the Power8 transactional memory support.
> -dscr.txt
> -	- Overview DSCR (Data Stream Control Register) support.
> diff --git a/Documentation/s390/00-INDEX b/Documentation/s390/00-INDEX
> deleted file mode 100644
> index 317f037..0000000
> --- a/Documentation/s390/00-INDEX
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -00-INDEX
> -	- this file.
> -3270.ChangeLog
> -	- ChangeLog for the UTS Global 3270-support patch (outdated).
> -3270.txt
> -	- how to use the IBM 3270 display system support.
> -cds.txt
> -	- s390 common device support (common I/O layer).
> -CommonIO
> -	- common I/O layer command line parameters, procfs and debugfs	entries
> -config3270.sh
> -	- example configuration for 3270 devices.
> -DASD
> -	- information on the DASD disk device driver.
> -Debugging390.txt
> -	- hints for debugging on s390 systems.
> -driver-model.txt
> -	- information on s390 devices and the driver model.
> -monreader.txt
> -	- information on accessing the z/VM monitor stream from Linux.
> -qeth.txt
> -	- HiperSockets Bridge Port Support.
> -s390dbf.txt
> -	- information on using the s390 debug feature.
> -vfio-ccw.txt
> -	  information on the vfio-ccw I/O subchannel driver.
> -zfcpdump.txt
> -	- information on the s390 SCSI dump tool.
> diff --git a/Documentation/scheduler/00-INDEX b/Documentation/scheduler/00-INDEX
> deleted file mode 100644
> index eccf7ad..0000000
> --- a/Documentation/scheduler/00-INDEX
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -00-INDEX
> -	- this file.
> -sched-arch.txt
> -	- CPU Scheduler implementation hints for architecture specific code.
> -sched-bwc.txt
> -	- CFS bandwidth control overview.
> -sched-design-CFS.txt
> -	- goals, design and implementation of the Completely Fair Scheduler.
> -sched-domains.txt
> -	- information on scheduling domains.
> -sched-nice-design.txt
> -	- How and why the scheduler's nice levels are implemented.
> -sched-rt-group.txt
> -	- real-time group scheduling.
> -sched-deadline.txt
> -	- deadline scheduling.
> -sched-stats.txt
> -	- information on schedstats (Linux Scheduler Statistics).
> diff --git a/Documentation/scsi/00-INDEX b/Documentation/scsi/00-INDEX
> deleted file mode 100644
> index bb4a76f..0000000
> --- a/Documentation/scsi/00-INDEX
> +++ /dev/null
> @@ -1,108 +0,0 @@
> -00-INDEX
> -	- this file
> -53c700.txt
> -	- info on driver for 53c700 based adapters
> -BusLogic.txt
> -	- info on driver for adapters with BusLogic chips
> -ChangeLog.1992-1997
> -	- Changes to scsi files, if not listed elsewhere
> -ChangeLog.arcmsr
> -	- Changes to driver for ARECA's SATA RAID controller cards
> -ChangeLog.ips
> -	- IBM ServeRAID driver Changelog
> -ChangeLog.lpfc
> -	- Changes to lpfc driver
> -ChangeLog.megaraid
> -	- Changes to LSI megaraid controller.
> -ChangeLog.megaraid_sas
> -	- Changes to serial attached scsi version of LSI megaraid controller.
> -ChangeLog.ncr53c8xx
> -	- Changes to ncr53c8xx driver
> -ChangeLog.sym53c8xx
> -	- Changes to sym53c8xx driver
> -ChangeLog.sym53c8xx_2
> -	- Changes to second generation of sym53c8xx driver
> -FlashPoint.txt
> -	- info on driver for BusLogic FlashPoint adapters
> -LICENSE.FlashPoint
> -	- Licence of the Flashpoint driver
> -LICENSE.qla2xxx
> -	- License for QLogic Linux Fibre Channel HBA Driver firmware.
> -LICENSE.qla4xxx
> -	- License for QLogic Linux iSCSI HBA Driver.
> -Mylex.txt
> -	- info on driver for Mylex adapters
> -NinjaSCSI.txt
> -	- info on WorkBiT NinjaSCSI-32/32Bi driver
> -aacraid.txt
> -	- Driver supporting Adaptec RAID controllers
> -advansys.txt
> -	- List of Advansys Host Adapters
> -aha152x.txt
> -	- info on driver for Adaptec AHA152x based adapters
> -aic79xx.txt
> -	- Adaptec Ultra320 SCSI host adapters
> -aic7xxx.txt
> -	- info on driver for Adaptec controllers
> -arcmsr_spec.txt
> -	- ARECA FIRMWARE SPEC (for IOP331 adapter)
> -bfa.txt
> -	- Brocade FC/FCOE adapter driver.
> -bnx2fc.txt
> -	- FCoE hardware offload for Broadcom network interfaces.
> -cxgb3i.txt
> -	- Chelsio iSCSI Linux Driver
> -dc395x.txt
> -	- README file for the dc395x SCSI driver
> -dpti.txt
> -	- info on driver for DPT SmartRAID and Adaptec I2O RAID based adapters
> -dtc3x80.txt
> -	- info on driver for DTC 2x80 based adapters
> -g_NCR5380.txt
> -	- info on driver for NCR5380 and NCR53c400 based adapters
> -hpsa.txt
> -	- HP Smart Array Controller SCSI driver.
> -hptiop.txt
> -	- HIGHPOINT ROCKETRAID 3xxx RAID DRIVER
> -libsas.txt
> -	- Serial Attached SCSI management layer.
> -link_power_management_policy.txt
> -	- Link power management options.
> -lpfc.txt
> -	- LPFC driver release notes
> -megaraid.txt
> -	- Common Management Module, shared code handling ioctls for LSI drivers
> -ncr53c8xx.txt
> -	- info on driver for NCR53c8xx based adapters
> -osd.txt
> -	Object-Based Storage Device, command set introduction.
> -osst.txt
> -	- info on driver for OnStream SC-x0 SCSI tape
> -ppa.txt
> -	- info on driver for IOmega zip drive
> -qlogicfas.txt
> -	- info on driver for QLogic FASxxx based adapters
> -scsi-changer.txt
> -	- README for the SCSI media changer driver
> -scsi-generic.txt
> -	- info on the sg driver for generic (non-disk/CD/tape) SCSI devices.
> -scsi-parameters.txt
> -	- List of SCSI-parameters to pass to the kernel at module load-time.
> -scsi.txt
> -	- short blurb on using SCSI support as a module.
> -scsi_mid_low_api.txt
> -	- info on API between SCSI layer and low level drivers
> -scsi_eh.txt
> -	- info on SCSI midlayer error handling infrastructure
> -scsi_fc_transport.txt
> -	- SCSI Fiber Channel Tansport
> -st.txt
> -	- info on scsi tape driver
> -sym53c500_cs.txt
> -	- info on PCMCIA driver for Symbios Logic 53c500 based adapters
> -sym53c8xx_2.txt
> -	- info on second generation driver for sym53c8xx based adapters
> -tmscsim.txt
> -	- info on driver for AM53c974 based adapters
> -ufs.txt
> -	- info on Universal Flash Storage(UFS) and UFS host controller driver.
> diff --git a/Documentation/serial/00-INDEX b/Documentation/serial/00-INDEX
> deleted file mode 100644
> index 8021a9f..0000000
> --- a/Documentation/serial/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -README.cycladesZ
> -	- info on Cyclades-Z firmware loading.
> -driver
> -	- intro to the low level serial driver.
> -moxa-smartio
> -	- file with info on installing/using Moxa multiport serial driver.
> -n_gsm.txt
> -	- GSM 0710 tty multiplexer howto.
> -rocket.txt
> -	- info on the Comtrol RocketPort multiport serial driver.
> -serial-rs485.txt
> -	- info about RS485 structures and support in the kernel.
> -tty.txt
> -	- guide to the locking policies of the tty layer.
> diff --git a/Documentation/spi/00-INDEX b/Documentation/spi/00-INDEX
> deleted file mode 100644
> index 8e4bb17..0000000
> --- a/Documentation/spi/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -butterfly
> -	- AVR Butterfly SPI driver overview and pin configuration.
> -ep93xx_spi
> -	- Basic EP93xx SPI driver configuration.
> -pxa2xx
> -	- PXA2xx SPI master controller build by spi_message fifo wq
> -spidev
> -	- Intro to the userspace API for spi devices
> -spi-lm70llp
> -	- Connecting an LM70-LLP sensor to the kernel via the SPI subsys.
> -spi-sc18is602
> -	- NXP SC18IS602/603 I2C-bus to SPI bridge
> -spi-summary
> -	- (Linux) SPI overview. If unsure about SPI or SPI in Linux, start here.
> diff --git a/Documentation/sysctl/00-INDEX b/Documentation/sysctl/00-INDEX
> deleted file mode 100644
> index 8cf5d49..0000000
> --- a/Documentation/sysctl/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -README
> -	- general information about /proc/sys/ sysctl files.
> -abi.txt
> -	- documentation for /proc/sys/abi/*.
> -fs.txt
> -	- documentation for /proc/sys/fs/*.
> -kernel.txt
> -	- documentation for /proc/sys/kernel/*.
> -net.txt
> -	- documentation for /proc/sys/net/*.
> -sunrpc.txt
> -	- documentation for /proc/sys/sunrpc/*.
> -vm.txt
> -	- documentation for /proc/sys/vm/*.
> diff --git a/Documentation/timers/00-INDEX b/Documentation/timers/00-INDEX
> deleted file mode 100644
> index 3be05fe..0000000
> --- a/Documentation/timers/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file
> -highres.txt
> -	- High resolution timers and dynamic ticks design notes
> -hpet.txt
> -	- High Precision Event Timer Driver for Linux
> -hrtimers.txt
> -	- subsystem for high-resolution kernel timers
> -NO_HZ.txt
> -	- Summary of the different methods for the scheduler clock-interrupts management.
> -timekeeping.txt
> -	- Clock sources, clock events, sched_clock() and delay timer notes
> -timers-howto.txt
> -	- how to insert delays in the kernel the right (tm) way.
> -timer_stats.txt
> -	- timer usage statistics
> diff --git a/Documentation/virtual/00-INDEX b/Documentation/virtual/00-INDEX
> deleted file mode 100644
> index af0d239..0000000
> --- a/Documentation/virtual/00-INDEX
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -Virtualization support in the Linux kernel.
> -
> -00-INDEX
> -	- this file.
> -
> -paravirt_ops.txt
> -	- Describes the Linux kernel pv_ops to support different hypervisors
> -kvm/
> -	- Kernel Virtual Machine.  See also http://linux-kvm.org
> -uml/
> -	- User Mode Linux, builds/runs Linux kernel as a userspace program.
> diff --git a/Documentation/virtual/kvm/00-INDEX b/Documentation/virtual/kvm/00-INDEX
> deleted file mode 100644
> index 3492458..0000000
> --- a/Documentation/virtual/kvm/00-INDEX
> +++ /dev/null
> @@ -1,35 +0,0 @@
> -00-INDEX
> -	- this file.
> -amd-memory-encryption.rst
> -	- notes on AMD Secure Encrypted Virtualization feature and SEV firmware
> -	  command description
> -api.txt
> -	- KVM userspace API.
> -arm
> -	- internal ABI between the kernel and HYP (for arm/arm64)
> -cpuid.txt
> -	- KVM-specific cpuid leaves (x86).
> -devices/
> -	- KVM_CAP_DEVICE_CTRL userspace API.
> -halt-polling.txt
> -	- notes on halt-polling
> -hypercalls.txt
> -	- KVM hypercalls.
> -locking.txt
> -	- notes on KVM locks.
> -mmu.txt
> -	- the x86 kvm shadow mmu.
> -msr.txt
> -	- KVM-specific MSRs (x86).
> -nested-vmx.txt
> -	- notes on nested virtualization for Intel x86 processors.
> -ppc-pv.txt
> -	- the paravirtualization interface on PowerPC.
> -review-checklist.txt
> -	- review checklist for KVM patches.
> -s390-diag.txt
> -	- Diagnose hypercall description (for IBM S/390)
> -timekeeping.txt
> -	- timekeeping virtualization for x86-based architectures.
> -vcpu-requests.rst
> -	- internal VCPU request API
> diff --git a/Documentation/vm/00-INDEX b/Documentation/vm/00-INDEX
> deleted file mode 100644
> index f4a4f3e..0000000
> --- a/Documentation/vm/00-INDEX
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -00-INDEX
> -	- this file.
> -active_mm.rst
> -	- An explanation from Linus about tsk->active_mm vs tsk->mm.
> -balance.rst
> -	- various information on memory balancing.
> -cleancache.rst
> -	- Intro to cleancache and page-granularity victim cache.
> -frontswap.rst
> -	- Outline frontswap, part of the transcendent memory frontend.
> -highmem.rst
> -	- Outline of highmem and common issues.
> -hmm.rst
> -	- Documentation of heterogeneous memory management
> -hugetlbfs_reserv.rst
> -	- A brief overview of hugetlbfs reservation design/implementation.
> -hwpoison.rst
> -	- explains what hwpoison is
> -ksm.rst
> -	- how to use the Kernel Samepage Merging feature.
> -mmu_notifier.rst
> -	- a note about clearing pte/pmd and mmu notifications
> -numa.rst
> -	- information about NUMA specific code in the Linux vm.
> -overcommit-accounting.rst
> -	- description of the Linux kernels overcommit handling modes.
> -page_frags.rst
> -	- description of page fragments allocator
> -page_migration.rst
> -	- description of page migration in NUMA systems.
> -page_owner.rst
> -	- tracking about who allocated each page
> -remap_file_pages.rst
> -	- a note about remap_file_pages() system call
> -slub.rst
> -	- a short users guide for SLUB.
> -split_page_table_lock.rst
> -	- Separate per-table lock to improve scalability of the old page_table_lock.
> -swap_numa.rst
> -	- automatic binding of swap device to numa node
> -transhuge.rst
> -	- Transparent Hugepage Support, alternative way of using hugepages.
> -unevictable-lru.rst
> -	- Unevictable LRU infrastructure
> -z3fold.txt
> -	- outline of z3fold allocator for storing compressed pages
> -zsmalloc.rst
> -	- outline of zsmalloc allocator for storing compressed pages
> -zswap.rst
> -	- Intro to compressed cache for swap pages
> diff --git a/Documentation/w1/00-INDEX b/Documentation/w1/00-INDEX
> deleted file mode 100644
> index cb49802..0000000
> --- a/Documentation/w1/00-INDEX
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -00-INDEX
> -	- This file
> -slaves/
> -	- Drivers that provide support for specific family codes.
> -masters/
> -	- Individual chips providing 1-wire busses.
> -w1.generic
> -	- The 1-wire (w1) bus
> -w1.netlink
> -	- Userspace communication protocol over connector [1].
> diff --git a/Documentation/w1/masters/00-INDEX b/Documentation/w1/masters/00-INDEX
> deleted file mode 100644
> index 8330cf9..0000000
> --- a/Documentation/w1/masters/00-INDEX
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -00-INDEX
> -	- This file
> -ds2482
> -	- The Maxim/Dallas Semiconductor DS2482 provides 1-wire busses.
> -ds2490
> -	- The Maxim/Dallas Semiconductor DS2490 builds USB <-> W1 bridges.
> -mxc-w1
> -	- W1 master controller driver found on Freescale MX2/MX3 SoCs
> -omap-hdq
> -	- HDQ/1-wire module of TI OMAP 2430/3430.
> -w1-gpio
> -	- GPIO 1-wire bus master driver.
> diff --git a/Documentation/w1/slaves/00-INDEX b/Documentation/w1/slaves/00-INDEX
> deleted file mode 100644
> index 68946f8..0000000
> --- a/Documentation/w1/slaves/00-INDEX
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -00-INDEX
> -	- This file
> -w1_therm
> -	- The Maxim/Dallas Semiconductor ds18*20 temperature sensor.
> -w1_ds2413
> -	- The Maxim/Dallas Semiconductor ds2413 dual channel addressable switch.
> -w1_ds2423
> -	- The Maxim/Dallas Semiconductor ds2423 counter device.
> -w1_ds2438
> -	- The Maxim/Dallas Semiconductor ds2438 smart battery monitor.
> -w1_ds28e04
> -	- The Maxim/Dallas Semiconductor ds28e04 eeprom.
> -w1_ds28e17
> -	- The Maxim/Dallas Semiconductor ds28e17 1-Wire-to-I2C Master Bridge.
> diff --git a/Documentation/x86/00-INDEX b/Documentation/x86/00-INDEX
> deleted file mode 100644
> index 3bb2ee3..0000000
> --- a/Documentation/x86/00-INDEX
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -00-INDEX
> -	- this file
> -boot.txt
> -	- List of boot protocol versions
> -earlyprintk.txt
> -	- Using earlyprintk with a USB2 debug port key.
> -entry_64.txt
> -	- Describe (some of the) kernel entry points for x86.
> -exception-tables.txt
> -	- why and how Linux kernel uses exception tables on x86
> -microcode.txt
> -	- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
> -mtrr.txt
> -	- how to use x86 Memory Type Range Registers to increase performance
> -pat.txt
> -	- Page Attribute Table intro and API
> -usb-legacy-support.txt
> -	- how to fix/avoid quirks when using emulated PS/2 mouse/keyboard.
> -zero-page.txt
> -	- layout of the first page of memory.
> diff --git a/Documentation/x86/x86_64/00-INDEX b/Documentation/x86/x86_64/00-INDEX
> deleted file mode 100644
> index 92fc20a..0000000
> --- a/Documentation/x86/x86_64/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- This file
> -boot-options.txt
> -	- AMD64-specific boot options.
> -cpu-hotplug-spec
> -	- Firmware support for CPU hotplug under Linux/x86-64
> -fake-numa-for-cpusets
> -	- Using numa=fake and CPUSets for Resource Management
> -kernel-stacks
> -	- Context-specific per-processor interrupt stacks.
> -machinecheck
> -	- Configurable sysfs parameters for the x86-64 machine check code.
> -mm.txt
> -	- Memory layout of x86-64 (4 level page tables, 46 bits physical).
> -uefi.txt
> -	- Booting Linux via Unified Extensible Firmware Interface.
> diff --git a/README b/README
> index 2c927cc..669ac7c 100644
> --- a/README
> +++ b/README
> @@ -12,7 +12,6 @@ In order to build the documentation, use ``make htmldocs`` or
> 
>  There are various text files in the Documentation/ subdirectory,
>  several of them using the Restructured Text markup notation.
> -See Documentation/00-INDEX for a list of what is contained in each file.
> 
>  Please read the Documentation/process/changes.rst file, as it contains the
>  requirements for building and running the kernel, and information about
> diff --git a/scripts/check_00index.sh b/scripts/check_00index.sh
> deleted file mode 100755
> index aa47f592..0000000
> --- a/scripts/check_00index.sh
> +++ /dev/null
> @@ -1,67 +0,0 @@
> -#!/bin/bash
> -# SPDX-License-Identifier: GPL-2.0
> -
> -cd Documentation/
> -
> -# Check entries that should be removed
> -
> -obsolete=""
> -for i in $(tail -n +12 00-INDEX |grep -E '^[a-zA-Z0-9]+'); do
> -	if [ ! -e $i ]; then
> -		obsolete="$obsolete $i"
> -	fi
> -done
> -
> -# Check directory entries that should be added
> -search=""
> -dir=""
> -for i in $(find . -maxdepth 1 -type d); do
> -	if [ "$i" != "." ]; then
> -		new=$(echo $i|perl -ne 's,./(.*),$1/,; print $_')
> -		search="$search $new"
> -	fi
> -done
> -
> -for i in $search; do
> -	if [ "$(grep -P "^$i" 00-INDEX)" == "" ]; then
> -		dir="$dir $i"
> -	fi
> -done
> -
> -# Check file entries that should be added
> -search=""
> -file=""
> -for i in $(find . -maxdepth 1 -type f); do
> -	if [ "$i" != "./.gitignore" ]; then
> -		new=$(echo $i|perl -ne 's,./(.*),$1,; print $_')
> -		search="$search $new"
> -	fi
> -done
> -
> -for i in $search; do
> -	if [ "$(grep -P "^$i\$" 00-INDEX)" == "" ]; then
> -		file="$file $i"
> -	fi
> -done
> -
> -# Output its findings
> -
> -echo -e "Documentation/00-INDEX check results:\n"
> -
> -if [ "$obsolete" != "" ]; then
> -	echo -e "- Should remove those entries:\n\t$obsolete\n"
> -else
> -	echo -e "- No obsolete entries\n"
> -fi
> -
> -if [ "$dir" != "" ]; then
> -	echo -e "- Should document those directories:\n\t$dir\n"
> -else
> -	echo -e "- No new directories to add\n"
> -fi
> -
> -if [ "$file" != "" ]; then
> -	echo -e "- Should document those files:\n\t$file"
> -else
> -	echo "- No new files to add"
> -fi
> -- 
> 2.7.4
> 

-- 
Sincerely yours,
Mike.

^ permalink raw reply

* Regression from patch 'tty: hvc: hvc_poll() break hv read loop'
From: Jason Gunthorpe @ 2018-09-04 17:48 UTC (permalink / raw)
  To: Nicholas Piggin, Michael Ellerman
  Cc: linuxppc-dev, linux-kernel, Leon Romanovsky

Hi Nicholas,

I am testing 4.19-rc2 and I see bad behavior with my qemu hvc0
console..

Running interactive with qemu (qemu-2.11.2-1.fc28) on the console
providing hvc0, using options like:

        -nographic
        -chardev stdio,id=stdio,mux=on,signal=off
        -mon chardev=stdio
	-device isa-serial,chardev=stdio
        -device virtio-serial-pci
	-device virtconsole,chardev=stdio

I see the hvc0 console hang regularly, ie doing something like 'up
arrow' in bash causes the hvc0 console to hang. Prior kernels worked
OK.

Any ideas? I'm not familiar with this code.. Thanks!

git bisect says this patch is to blame:

# bad: [5b394b2ddf0347bef56e50c69a58773c94343ff3] Linux 4.19-rc1
# good: [845b397a7771f2d3504beff5521f452be0d22eec] IB/ucm: fix UCM link error
# bad: [60c1f89241d49bacf71035470684a8d7b4bb46ea] Merge tag 'dma-mapping-4.19-2' of git://git.infradead.org/users/hch/dma-mapping
# bad: [1290290c922fdcefbce8984e6e44b8f4e3a169b5] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
# bad: [6eaac34ff30e189fda28110298ca9fbfb2f51e28] Merge tag 'linux-watchdog-4.19-rc1' of git://www.linux-watchdog.org/linux-watchdog
# good: [e4f6a44c4aeca9eda153302abb0c14d053914f72] staging:rtl8192u: Remove unused macro definitions - Style
# bad: [5695d5d1970f975de059bb6dec76941440f62488] Merge tag 'usb-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
# bad: [f80a71b0c4111e26433744721ad68f05c169ad39] Merge tag 'drm-next-2018-08-17' of git://anongit.freedesktop.org/drm/drm
# good: [cf175dc315f90185128fb061dc05b6fbb211aa2f] powerpc/64: Disable the speculation barrier from the command line
# bad: [a2dc009afa9ae8b92305be7728676562a104cb40] powerpc/mm/book3s/radix: Add mapping statistics
# good: [d6690b1a9b0dd95a6fbd166d9657e0cc80afbf99] powerpc: Allow CPU selection of e300core variants
# good: [f2c6d0d1092e3da2bd36c768777e883fa3908548] powerpc/32: Include setup.h header file to fix warnings
# good: [b3124ec2f9970c7374d34b00843d9791fca66afc] Merge branch 'fixes' into next
# bad: [70b5c4ee8e3bf7ce107d6926d9c7d8ebb68578c2] Merge branch 'topic/hvc' into next
# bad: [cfb5946b55f1dfd19e042feae1fbff6041e25a98] tty: hvc: hvc_poll() may sleep
# bad: [ec97eaad1383ab2500fcf9a07ade6044fbcc67f5] tty: hvc: hvc_poll() break hv read loop
# good: [a9bf5c8a271b9a954709b7ada1bd258f5cadf7ff] tty: hvc: use mutex instead of spinlock for hvc_structs lock
# first bad commit: [ec97eaad1383ab2500fcf9a07ade6044fbcc67f5] tty: hvc: hvc_poll() break hv read loop

>From ec97eaad1383ab2500fcf9a07ade6044fbcc67f5 Mon Sep 17 00:00:00 2001
From: Nicholas Piggin <npiggin@gmail.com>
Date: Tue, 1 May 2018 00:55:54 +1000
Subject: [PATCH] tty: hvc: hvc_poll() break hv read loop

Avoid looping with the spinlock held while there is read data
being returned from the hv driver. Instead note if the entire
size returned by tty_buffer_request_room was read, and request
another read poll.

This limits the critical section lengths, and provides more
even service to other consoles in case there is a pathological
condition.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 drivers/tty/hvc/hvc_console.c | 88 ++++++++++++++++++-----------------
 1 file changed, 45 insertions(+), 43 deletions(-)

diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c
index fddb63322c6786..745ac220fce84c 100644
--- a/drivers/tty/hvc/hvc_console.c
+++ b/drivers/tty/hvc/hvc_console.c
@@ -592,7 +592,7 @@ static u32 timeout = MIN_TIMEOUT;
 int hvc_poll(struct hvc_struct *hp)
 {
 	struct tty_struct *tty;
-	int i, n, poll_mask = 0;
+	int i, n, count, poll_mask = 0;
 	char buf[N_INBUF] __ALIGNED__;
 	unsigned long flags;
 	int read_total = 0;
@@ -618,7 +618,7 @@ int hvc_poll(struct hvc_struct *hp)
 
 	/* Now check if we can get data (are we throttled ?) */
 	if (tty_throttled(tty))
-		goto throttled;
+		goto out;
 
 	/* If we aren't notifier driven and aren't throttled, we always
 	 * request a reschedule
@@ -627,56 +627,58 @@ int hvc_poll(struct hvc_struct *hp)
 		poll_mask |= HVC_POLL_READ;
 
 	/* Read data if any */
-	for (;;) {
-		int count = tty_buffer_request_room(&hp->port, N_INBUF);
 
-		/* If flip is full, just reschedule a later read */
-		if (count == 0) {
+	count = tty_buffer_request_room(&hp->port, N_INBUF);
+
+	/* If flip is full, just reschedule a later read */
+	if (count == 0) {
+		poll_mask |= HVC_POLL_READ;
+		goto out;
+	}
+
+	n = hp->ops->get_chars(hp->vtermno, buf, count);
+	if (n <= 0) {
+		/* Hangup the tty when disconnected from host */
+		if (n == -EPIPE) {
+			spin_unlock_irqrestore(&hp->lock, flags);
+			tty_hangup(tty);
+			spin_lock_irqsave(&hp->lock, flags);
+		} else if ( n == -EAGAIN ) {
+			/*
+			 * Some back-ends can only ensure a certain min
+			 * num of bytes read, which may be > 'count'.
+			 * Let the tty clear the flip buff to make room.
+			 */
 			poll_mask |= HVC_POLL_READ;
-			break;
 		}
+		goto out;
+	}
 
-		n = hp->ops->get_chars(hp->vtermno, buf, count);
-		if (n <= 0) {
-			/* Hangup the tty when disconnected from host */
-			if (n == -EPIPE) {
-				spin_unlock_irqrestore(&hp->lock, flags);
-				tty_hangup(tty);
-				spin_lock_irqsave(&hp->lock, flags);
-			} else if ( n == -EAGAIN ) {
-				/*
-				 * Some back-ends can only ensure a certain min
-				 * num of bytes read, which may be > 'count'.
-				 * Let the tty clear the flip buff to make room.
-				 */
-				poll_mask |= HVC_POLL_READ;
-			}
-			break;
-		}
-		for (i = 0; i < n; ++i) {
+	for (i = 0; i < n; ++i) {
 #ifdef CONFIG_MAGIC_SYSRQ
-			if (hp->index == hvc_console.index) {
-				/* Handle the SysRq Hack */
-				/* XXX should support a sequence */
-				if (buf[i] == '\x0f') {	/* ^O */
-					/* if ^O is pressed again, reset
-					 * sysrq_pressed and flip ^O char */
-					sysrq_pressed = !sysrq_pressed;
-					if (sysrq_pressed)
-						continue;
-				} else if (sysrq_pressed) {
-					handle_sysrq(buf[i]);
-					sysrq_pressed = 0;
+		if (hp->index == hvc_console.index) {
+			/* Handle the SysRq Hack */
+			/* XXX should support a sequence */
+			if (buf[i] == '\x0f') {	/* ^O */
+				/* if ^O is pressed again, reset
+				 * sysrq_pressed and flip ^O char */
+				sysrq_pressed = !sysrq_pressed;
+				if (sysrq_pressed)
 					continue;
-				}
+			} else if (sysrq_pressed) {
+				handle_sysrq(buf[i]);
+				sysrq_pressed = 0;
+				continue;
 			}
-#endif /* CONFIG_MAGIC_SYSRQ */
-			tty_insert_flip_char(&hp->port, buf[i], 0);
 		}
-
-		read_total += n;
+#endif /* CONFIG_MAGIC_SYSRQ */
+		tty_insert_flip_char(&hp->port, buf[i], 0);
 	}
- throttled:
+	if (n == count)
+		poll_mask |= HVC_POLL_READ;
+	read_total = n;
+
+ out:
 	/* Wakeup write queue if necessary */
 	if (hp->do_wakeup) {
 		hp->do_wakeup = 0;
-- 
2.18.0

^ permalink raw reply related

* Re: [PATCH] [RFC v2] Drop all 00-INDEX files from Documentation/
From: Jens Axboe @ 2018-09-04 15:45 UTC (permalink / raw)
  To: Henrik Austad, linux-doc
  Cc: Jonathan Corbet, Bjorn Helgaas, Paul E. McKenney, Josh Triplett,
	Steven Rostedt, Mathieu Desnoyers, Lai Jiangshan, Rob Herring,
	Mark Rutland, Bartlomiej Zolnierkiewicz, Linus Walleij,
	David S. Miller, Karsten Keil, Masahiro Yamada, Michal Marek,
	Peter Zijlstra, Ingo Molnar, Will Deacon, Ralf Baechle,
	Paul Burton, James Hogan, Paul Moore, James E.J. Bottomley,
	Helge Deller, Rafael J. Wysocki, Len Brown, Pavel Machek,
	Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	Martin Schwidefsky, Heiko Carstens, Greg Kroah-Hartman,
	Jiri Slaby, Mark Brown, Thomas Gleixner, Paolo Bonzini,
	Radim Krčmář, Evgeniy Polyakov, H. Peter Anvin,
	x86, Andrew Morton, Ian Kent, Jacek Anaszewski, Mike Rapoport,
	Jan Kandziora, linux-kernel, linux-pci, devicetree, dri-devel,
	linux-fbdev, linux-gpio, linux-ide, netdev, linux-kbuild,
	linux-mips, linux-security-module, linux-parisc, linux-pm,
	linuxppc-dev, linux-s390, linux-spi, kvm, Henrik Austad
In-Reply-To: <1536012923-16275-1-git-send-email-henrik@austad.us>

On 9/3/18 4:15 PM, Henrik Austad wrote:
> This is a respin with a wider audience (all that get_maintainer returned)
> and I know this spams a *lot* of people. Not sure what would be the correct
> way, so my apologies for ruining your inbox.
> 
> The 00-INDEX files are supposed to give a summary of all files present
> in a directory, but these files are horribly out of date and their
> usefulness is brought into question. Often a simple "ls" would reveal
> the same information as the filenames are generally quite descriptive as
> a short introduction to what the file covers (it should not surprise
> anyone what Documentation/sched/sched-design-CFS.txt covers)
> 
> A few years back it was mentioned that these files were no longer really
> needed, and they have since then grown further out of date, so perhaps
> it is time to just throw them out.
> 
> A short status yields the following _outdated_ 00-INDEX files, first
> counter is files listed in 00-INDEX but missing in the directory, last
> is files present but not listed in 00-INDEX.

For the block related bits:

Reviewed-by: Jens Axboe <axboe@kernel.dk>

-- 
Jens Axboe

^ permalink raw reply

* Re: [PATCH] [RFC v2] Drop all 00-INDEX files from Documentation/
From: Steven Rostedt @ 2018-09-04 13:59 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Henrik Austad, linux-doc, Jonathan Corbet, Bjorn Helgaas,
	Paul E. McKenney, Josh Triplett, Mathieu Desnoyers, Lai Jiangshan,
	Jens Axboe, Rob Herring, Mark Rutland, Bartlomiej Zolnierkiewicz,
	Linus Walleij, David S. Miller, Karsten Keil, Masahiro Yamada,
	Michal Marek, Peter Zijlstra, Ingo Molnar, Will Deacon,
	Ralf Baechle, Paul Burton, James Hogan, Paul Moore,
	James E.J. Bottomley, Helge Deller, Rafael J. Wysocki, Len Brown,
	Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	Martin Schwidefsky, Heiko Carstens, Greg Kroah-Hartman,
	Jiri Slaby, Mark Brown, Thomas Gleixner, Paolo Bonzini,
	Radim Krčmář, Evgeniy Polyakov, H. Peter Anvin,
	x86, Andrew Morton, Ian Kent, Jacek Anaszewski, Mike Rapoport,
	Jan Kandziora, linux-kernel, linux-pci, devicetree, dri-devel,
	linux-fbdev, linux-gpio, linux-ide, netdev, linux-kbuild,
	linux-mips, linux-security-module, linux-parisc, linux-pm,
	linuxppc-dev, linux-s390, linux-spi, kvm, Henrik Austad
In-Reply-To: <20180904113030.GB25177@amd>

On Tue, 4 Sep 2018 13:30:30 +0200
Pavel Machek <pavel@ucw.cz> wrote:

> I'd say this is still quite valueable, and it might be worth fixing,
> rather then removing completely.

I agree. Perhaps we should have a 00-DESCRIPTION file in each
directory, and each file could start with a:

 DESCRIPTION: <one line description here>

and then these files could be generated by those that have these tags.

-- Steve

^ permalink raw reply

* Re: [PATCH 2/3] Documentation: dt: binding: fsl: update property description for RCPM
From: Rob Herring @ 2018-09-04  1:25 UTC (permalink / raw)
  To: Ran Wang
  Cc: Leo Li, Mark Rutland, linuxppc-dev, linux-arm-kernel, devicetree,
	linux-kernel
In-Reply-To: <20180831035219.31619-2-ran.wang_1@nxp.com>

On Fri, Aug 31, 2018 at 11:52:18AM +0800, Ran Wang wrote:
> Add property 'big-endian' and supportted IP's configuration info.
> Remove property 'fsl,#rcpm-wakeup-cell'.

"dt-bindings: soc: ..." for the subject

It is obvious reading the diff you are removing fsl,#rcpm-wakeup-cell. 
What is not obvious is why? The commit msg should answer that.

You also are mixing several things in this patch like adding ls1012 
which you don't mention. Please split.

> 
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
> ---
>  Documentation/devicetree/bindings/soc/fsl/rcpm.txt |   42 ++++++-------------
>  1 files changed, 13 insertions(+), 29 deletions(-)

^ permalink raw reply

* Re: [PATCH] [RFC v2] Drop all 00-INDEX files from Documentation/
From: Paul E. McKenney @ 2018-09-04 13:02 UTC (permalink / raw)
  To: Henrik Austad
  Cc: linux-doc, Jonathan Corbet, Bjorn Helgaas, Josh Triplett,
	Steven Rostedt, Mathieu Desnoyers, Lai Jiangshan, Jens Axboe,
	Rob Herring, Mark Rutland, Bartlomiej Zolnierkiewicz,
	Linus Walleij, David S. Miller, Karsten Keil, Masahiro Yamada,
	Michal Marek, Peter Zijlstra, Ingo Molnar, Will Deacon,
	Ralf Baechle, Paul Burton, James Hogan, Paul Moore,
	James E.J. Bottomley, Helge Deller, Rafael J. Wysocki, Len Brown,
	Pavel Machek, Benjamin Herrenschmidt, Paul Mackerras,
	Michael Ellerman, Martin Schwidefsky, Heiko Carstens,
	Greg Kroah-Hartman, Jiri Slaby, Mark Brown, Thomas Gleixner,
	Paolo Bonzini, Radim Krčmář, Evgeniy Polyakov,
	H. Peter Anvin, x86, Andrew Morton, Ian Kent, Jacek Anaszewski,
	Mike Rapoport, Jan Kandziora, linux-kernel, linux-pci, devicetree,
	dri-devel, linux-fbdev, linux-gpio, linux-ide, netdev,
	linux-kbuild, linux-mips, linux-security-module, linux-parisc,
	linux-pm, linuxppc-dev, linux-s390, linux-spi, kvm, Henrik Austad
In-Reply-To: <1536012923-16275-1-git-send-email-henrik@austad.us>

On Tue, Sep 04, 2018 at 12:15:23AM +0200, Henrik Austad wrote:
> This is a respin with a wider audience (all that get_maintainer returned)
> and I know this spams a *lot* of people. Not sure what would be the correct
> way, so my apologies for ruining your inbox.
> 
> The 00-INDEX files are supposed to give a summary of all files present
> in a directory, but these files are horribly out of date and their
> usefulness is brought into question. Often a simple "ls" would reveal
> the same information as the filenames are generally quite descriptive as
> a short introduction to what the file covers (it should not surprise
> anyone what Documentation/sched/sched-design-CFS.txt covers)
> 
> A few years back it was mentioned that these files were no longer really
> needed, and they have since then grown further out of date, so perhaps
> it is time to just throw them out.
> 
> A short status yields the following _outdated_ 00-INDEX files, first
> counter is files listed in 00-INDEX but missing in the directory, last
> is files present but not listed in 00-INDEX.
> 
> List of outdated 00-INDEX:
> Documentation: (4/10)
> Documentation/sysctl: (0/1)
> Documentation/timers: (1/0)
> Documentation/blockdev: (3/1)
> Documentation/w1/slaves: (0/1)
> Documentation/locking: (0/1)
> Documentation/devicetree: (0/5)
> Documentation/power: (1/1)
> Documentation/powerpc: (0/5)
> Documentation/arm: (1/0)
> Documentation/x86: (0/9)
> Documentation/x86/x86_64: (1/1)
> Documentation/scsi: (4/4)
> Documentation/filesystems: (2/9)
> Documentation/filesystems/nfs: (0/2)
> Documentation/cgroup-v1: (0/2)
> Documentation/kbuild: (0/4)
> Documentation/spi: (1/0)
> Documentation/virtual/kvm: (1/0)
> Documentation/scheduler: (0/2)
> Documentation/fb: (0/1)
> Documentation/block: (0/1)
> Documentation/networking: (6/37)
> Documentation/vm: (1/3)
> 
> Then there are 364 subdirectories in Documentation/ with several files that
> are missing 00-INDEX alltogether (and another 120 with a single file and no
> 00-INDEX).
> 
> I don't really have an opinion to whether or not we /should/ have 00-INDEX,
> but the above 00-INDEX should either be removed or be kept up to date. If
> we should keep the files, I can try to keep them updated, but I rather not
> if we just want to delete them anyway.
> 
> As a starting point, remove all index-files and references to 00-INDEX and
> see where the discussion is going.

For the RCU portions:

Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

> Again, sorry for the insanely wide distribution.
> 
> Signed-off-by: Henrik Austad <henrik@austad.us>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Bjorn Helgaas <bhelgaas@google.com>
> Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
> Cc: Josh Triplett <josh@joshtriplett.org>
> Cc: Steven Rostedt <rostedt@goodmis.org>
> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> Cc: Lai Jiangshan <jiangshanlai@gmail.com>
> Cc: Jens Axboe <axboe@kernel.dk>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Karsten Keil <isdn@linux-pingi.de>
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cc: Michal Marek <michal.lkml@markovi.net>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: Paul Burton <paul.burton@mips.com>
> Cc: James Hogan <jhogan@kernel.org>
> Cc: Paul Moore <paul@paul-moore.com>
> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
> Cc: Helge Deller <deller@gmx.de>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <len.brown@intel.com>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
> Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jiri Slaby <jslaby@suse.com>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: "Radim Krčmář" <rkrcmar@redhat.com>
> Cc: Evgeniy Polyakov <zbr@ioremap.net>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
> Cc: x86@kernel.org
> Cc: Henrik Austad <henrik@austad.us>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Ian Kent <raven@themaw.net>
> Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
> Cc: Jan Kandziora <jjj@gmx.de>
> Cc: linux-doc@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-pci@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: dri-devel@lists.freedesktop.org
> Cc: linux-fbdev@vger.kernel.org
> Cc: linux-gpio@vger.kernel.org
> Cc: linux-ide@vger.kernel.org
> Cc: netdev@vger.kernel.org
> Cc: linux-kbuild@vger.kernel.org
> Cc: linux-mips@linux-mips.org
> Cc: linux-security-module@vger.kernel.org
> Cc: linux-parisc@vger.kernel.org
> Cc: linux-pm@vger.kernel.org
> Cc: linuxppc-dev@lists.ozlabs.org
> Cc: linux-s390@vger.kernel.org
> Cc: linux-spi@vger.kernel.org
> Cc: kvm@vger.kernel.org
> Signed-off-by: Henrik Austad <haustad@cisco.com>
> ---
>  Documentation/00-INDEX                  | 428 --------------------------------
>  Documentation/PCI/00-INDEX              |  26 --
>  Documentation/RCU/00-INDEX              |  34 ---
>  Documentation/RCU/rcu.txt               |   4 -
>  Documentation/admin-guide/README.rst    |   3 +-
>  Documentation/arm/00-INDEX              |  50 ----
>  Documentation/block/00-INDEX            |  34 ---
>  Documentation/blockdev/00-INDEX         |  18 --
>  Documentation/cdrom/00-INDEX            |  11 -
>  Documentation/cgroup-v1/00-INDEX        |  26 --
>  Documentation/devicetree/00-INDEX       |  12 -
>  Documentation/fb/00-INDEX               |  75 ------
>  Documentation/filesystems/00-INDEX      | 153 ------------
>  Documentation/filesystems/nfs/00-INDEX  |  26 --
>  Documentation/fmc/00-INDEX              |  38 ---
>  Documentation/gpio/00-INDEX             |   4 -
>  Documentation/ide/00-INDEX              |  14 --
>  Documentation/ioctl/00-INDEX            |  12 -
>  Documentation/isdn/00-INDEX             |  42 ----
>  Documentation/kbuild/00-INDEX           |  14 --
>  Documentation/laptops/00-INDEX          |  16 --
>  Documentation/leds/00-INDEX             |  32 ---
>  Documentation/locking/00-INDEX          |  16 --
>  Documentation/m68k/00-INDEX             |   7 -
>  Documentation/mips/00-INDEX             |   4 -
>  Documentation/mmc/00-INDEX              |  10 -
>  Documentation/netlabel/00-INDEX         |  10 -
>  Documentation/netlabel/cipso_ipv4.txt   |  11 +-
>  Documentation/netlabel/introduction.txt |   2 +-
>  Documentation/networking/00-INDEX       | 234 -----------------
>  Documentation/parisc/00-INDEX           |   6 -
>  Documentation/power/00-INDEX            |  44 ----
>  Documentation/powerpc/00-INDEX          |  34 ---
>  Documentation/s390/00-INDEX             |  28 ---
>  Documentation/scheduler/00-INDEX        |  18 --
>  Documentation/scsi/00-INDEX             | 108 --------
>  Documentation/serial/00-INDEX           |  16 --
>  Documentation/spi/00-INDEX              |  16 --
>  Documentation/sysctl/00-INDEX           |  16 --
>  Documentation/timers/00-INDEX           |  16 --
>  Documentation/virtual/00-INDEX          |  11 -
>  Documentation/virtual/kvm/00-INDEX      |  35 ---
>  Documentation/vm/00-INDEX               |  50 ----
>  Documentation/w1/00-INDEX               |  10 -
>  Documentation/w1/masters/00-INDEX       |  12 -
>  Documentation/w1/slaves/00-INDEX        |  14 --
>  Documentation/x86/00-INDEX              |  20 --
>  Documentation/x86/x86_64/00-INDEX       |  16 --
>  README                                  |   1 -
>  scripts/check_00index.sh                |  67 -----
>  50 files changed, 8 insertions(+), 1896 deletions(-)
>  delete mode 100644 Documentation/00-INDEX
>  delete mode 100644 Documentation/PCI/00-INDEX
>  delete mode 100644 Documentation/RCU/00-INDEX
>  delete mode 100644 Documentation/arm/00-INDEX
>  delete mode 100644 Documentation/block/00-INDEX
>  delete mode 100644 Documentation/blockdev/00-INDEX
>  delete mode 100644 Documentation/cdrom/00-INDEX
>  delete mode 100644 Documentation/cgroup-v1/00-INDEX
>  delete mode 100644 Documentation/devicetree/00-INDEX
>  delete mode 100644 Documentation/fb/00-INDEX
>  delete mode 100644 Documentation/filesystems/00-INDEX
>  delete mode 100644 Documentation/filesystems/nfs/00-INDEX
>  delete mode 100644 Documentation/fmc/00-INDEX
>  delete mode 100644 Documentation/gpio/00-INDEX
>  delete mode 100644 Documentation/ide/00-INDEX
>  delete mode 100644 Documentation/ioctl/00-INDEX
>  delete mode 100644 Documentation/isdn/00-INDEX
>  delete mode 100644 Documentation/kbuild/00-INDEX
>  delete mode 100644 Documentation/laptops/00-INDEX
>  delete mode 100644 Documentation/leds/00-INDEX
>  delete mode 100644 Documentation/locking/00-INDEX
>  delete mode 100644 Documentation/m68k/00-INDEX
>  delete mode 100644 Documentation/mips/00-INDEX
>  delete mode 100644 Documentation/mmc/00-INDEX
>  delete mode 100644 Documentation/netlabel/00-INDEX
>  delete mode 100644 Documentation/networking/00-INDEX
>  delete mode 100644 Documentation/parisc/00-INDEX
>  delete mode 100644 Documentation/power/00-INDEX
>  delete mode 100644 Documentation/powerpc/00-INDEX
>  delete mode 100644 Documentation/s390/00-INDEX
>  delete mode 100644 Documentation/scheduler/00-INDEX
>  delete mode 100644 Documentation/scsi/00-INDEX
>  delete mode 100644 Documentation/serial/00-INDEX
>  delete mode 100644 Documentation/spi/00-INDEX
>  delete mode 100644 Documentation/sysctl/00-INDEX
>  delete mode 100644 Documentation/timers/00-INDEX
>  delete mode 100644 Documentation/virtual/00-INDEX
>  delete mode 100644 Documentation/virtual/kvm/00-INDEX
>  delete mode 100644 Documentation/vm/00-INDEX
>  delete mode 100644 Documentation/w1/00-INDEX
>  delete mode 100644 Documentation/w1/masters/00-INDEX
>  delete mode 100644 Documentation/w1/slaves/00-INDEX
>  delete mode 100644 Documentation/x86/00-INDEX
>  delete mode 100644 Documentation/x86/x86_64/00-INDEX
>  delete mode 100755 scripts/check_00index.sh
> 
> diff --git a/Documentation/00-INDEX b/Documentation/00-INDEX
> deleted file mode 100644
> index 2754fe8..0000000
> --- a/Documentation/00-INDEX
> +++ /dev/null
> @@ -1,428 +0,0 @@
> -
> -This is a brief list of all the files in ./linux/Documentation and what
> -they contain. If you add a documentation file, please list it here in
> -alphabetical order as well, or risk being hunted down like a rabid dog.
> -Please keep the descriptions small enough to fit on one line.
> -							 Thanks -- Paul G.
> -
> -Following translations are available on the WWW:
> -
> -   - Japanese, maintained by the JF Project (jf@listserv.linux.or.jp), at
> -     http://linuxjf.sourceforge.jp/
> -
> -00-INDEX
> -	- this file.
> -ABI/
> -	- info on kernel <-> userspace ABI and relative interface stability.
> -CodingStyle
> -	- nothing here, just a pointer to process/coding-style.rst.
> -DMA-API.txt
> -	- DMA API, pci_ API & extensions for non-consistent memory machines.
> -DMA-API-HOWTO.txt
> -	- Dynamic DMA mapping Guide
> -DMA-ISA-LPC.txt
> -	- How to do DMA with ISA (and LPC) devices.
> -DMA-attributes.txt
> -	- listing of the various possible attributes a DMA region can have
> -EDID/
> -	- directory with info on customizing EDID for broken gfx/displays.
> -IPMI.txt
> -	- info on Linux Intelligent Platform Management Interface (IPMI) Driver.
> -IRQ-affinity.txt
> -	- how to select which CPU(s) handle which interrupt events on SMP.
> -IRQ-domain.txt
> -	- info on interrupt numbering and setting up IRQ domains.
> -IRQ.txt
> -	- description of what an IRQ is.
> -Intel-IOMMU.txt
> -	- basic info on the Intel IOMMU virtualization support.
> -Makefile
> -	- It's not of interest for those who aren't touching the build system.
> -PCI/
> -	- info related to PCI drivers.
> -RCU/
> -	- directory with info on RCU (read-copy update).
> -SAK.txt
> -	- info on Secure Attention Keys.
> -SM501.txt
> -	- Silicon Motion SM501 multimedia companion chip
> -SubmittingPatches
> -	- nothing here, just a pointer to process/coding-style.rst.
> -accounting/
> -	- documentation on accounting and taskstats.
> -acpi/
> -	- info on ACPI-specific hooks in the kernel.
> -admin-guide/
> -	- info related to Linux users and system admins.
> -aoe/
> -	- description of AoE (ATA over Ethernet) along with config examples.
> -arm/
> -	- directory with info about Linux on the ARM architecture.
> -arm64/
> -	- directory with info about Linux on the 64 bit ARM architecture.
> -auxdisplay/
> -	- misc. LCD driver documentation (cfag12864b, ks0108).
> -backlight/
> -	- directory with info on controlling backlights in flat panel displays
> -block/
> -	- info on the Block I/O (BIO) layer.
> -blockdev/
> -	- info on block devices & drivers
> -bt8xxgpio.txt
> -	- info on how to modify a bt8xx video card for GPIO usage.
> -btmrvl.txt
> -	- info on Marvell Bluetooth driver usage.
> -bus-devices/
> -	- directory with info on TI GPMC (General Purpose Memory Controller)
> -bus-virt-phys-mapping.txt
> -	- how to access I/O mapped memory from within device drivers.
> -cdrom/
> -	- directory with information on the CD-ROM drivers that Linux has.
> -cgroup-v1/
> -	- cgroups v1 features, including cpusets and memory controller.
> -cma/
> -	- Continuous Memory Area (CMA) debugfs interface.
> -conf.py
> -	- It's not of interest for those who aren't touching the build system.
> -connector/
> -	- docs on the netlink based userspace<->kernel space communication mod.
> -console/
> -	- documentation on Linux console drivers.
> -core-api/
> -	- documentation on kernel core components.
> -cpu-freq/
> -	- info on CPU frequency and voltage scaling.
> -cpu-hotplug.txt
> -	- document describing CPU hotplug support in the Linux kernel.
> -cpu-load.txt
> -	- document describing how CPU load statistics are collected.
> -cpuidle/
> -	- info on CPU_IDLE, CPU idle state management subsystem.
> -cputopology.txt
> -	- documentation on how CPU topology info is exported via sysfs.
> -crc32.txt
> -	- brief tutorial on CRC computation
> -crypto/
> -	- directory with info on the Crypto API.
> -dcdbas.txt
> -	- information on the Dell Systems Management Base Driver.
> -debugging-modules.txt
> -	- some notes on debugging modules after Linux 2.6.3.
> -debugging-via-ohci1394.txt
> -	- how to use firewire like a hardware debugger memory reader.
> -dell_rbu.txt
> -	- document demonstrating the use of the Dell Remote BIOS Update driver.
> -dev-tools/
> -	- directory with info on development tools for the kernel.
> -device-mapper/
> -	- directory with info on Device Mapper.
> -dmaengine/
> -	- the DMA engine and controller API guides.
> -devicetree/
> -	- directory with info on device tree files used by OF/PowerPC/ARM
> -digsig.txt
> -	-info on the Digital Signature Verification API
> -dma-buf-sharing.txt
> -	- the DMA Buffer Sharing API Guide
> -docutils.conf
> -	- nothing here. Just a configuration file for docutils.
> -dontdiff
> -	- file containing a list of files that should never be diff'ed.
> -driver-api/
> -	- the Linux driver implementer's API guide.
> -driver-model/
> -	- directory with info about Linux driver model.
> -early-userspace/
> -	- info about initramfs, klibc, and userspace early during boot.
> -efi-stub.txt
> -	- How to use the EFI boot stub to bypass GRUB or elilo on EFI systems.
> -eisa.txt
> -	- info on EISA bus support.
> -extcon/
> -	- directory with porting guide for Android kernel switch driver.
> -isa.txt
> -	- info on EISA bus support.
> -fault-injection/
> -	- dir with docs about the fault injection capabilities infrastructure.
> -fb/
> -	- directory with info on the frame buffer graphics abstraction layer.
> -features/
> -	- status of feature implementation on different architectures.
> -filesystems/
> -	- info on the vfs and the various filesystems that Linux supports.
> -firmware_class/
> -	- request_firmware() hotplug interface info.
> -flexible-arrays.txt
> -	- how to make use of flexible sized arrays in linux
> -fmc/
> -	- information about the FMC bus abstraction
> -fpga/
> -	- FPGA Manager Core.
> -futex-requeue-pi.txt
> -	- info on requeueing of tasks from a non-PI futex to a PI futex
> -gcc-plugins.txt
> -	- GCC plugin infrastructure.
> -gpio/
> -	- gpio related documentation
> -gpu/
> -	- directory with information on GPU driver developer's guide.
> -hid/
> -	- directory with information on human interface devices
> -highuid.txt
> -	- notes on the change from 16 bit to 32 bit user/group IDs.
> -hwspinlock.txt
> -	- hardware spinlock provides hardware assistance for synchronization
> -timers/
> -	- info on the timer related topics
> -hw_random.txt
> -	- info on Linux support for random number generator in i8xx chipsets.
> -hwmon/
> -	- directory with docs on various hardware monitoring drivers.
> -i2c/
> -	- directory with info about the I2C bus/protocol (2 wire, kHz speed).
> -x86/i386/
> -	- directory with info about Linux on Intel 32 bit architecture.
> -ia64/
> -	- directory with info about Linux on Intel 64 bit architecture.
> -ide/
> -	- Information regarding the Enhanced IDE drive.
> -iio/
> -	- info on industrial IIO configfs support.
> -index.rst
> -	- main index for the documentation at ReST format.
> -infiniband/
> -	- directory with documents concerning Linux InfiniBand support.
> -input/
> -	- info on Linux input device support.
> -intel_txt.txt
> -	- info on intel Trusted Execution Technology (intel TXT).
> -io-mapping.txt
> -	- description of io_mapping functions in linux/io-mapping.h
> -io_ordering.txt
> -	- info on ordering I/O writes to memory-mapped addresses.
> -ioctl/
> -	- directory with documents describing various IOCTL calls.
> -iostats.txt
> -	- info on I/O statistics Linux kernel provides.
> -irqflags-tracing.txt
> -	- how to use the irq-flags tracing feature.
> -isapnp.txt
> -	- info on Linux ISA Plug & Play support.
> -isdn/
> -	- directory with info on the Linux ISDN support, and supported cards.
> -kbuild/
> -	- directory with info about the kernel build process.
> -kdump/
> -	- directory with mini HowTo on getting the crash dump code to work.
> -doc-guide/
> -	- how to write and format reStructuredText kernel documentation
> -kernel-per-CPU-kthreads.txt
> -	- List of all per-CPU kthreads and how they introduce jitter.
> -kobject.txt
> -	- info of the kobject infrastructure of the Linux kernel.
> -kprobes.txt
> -	- documents the kernel probes debugging feature.
> -kref.txt
> -	- docs on adding reference counters (krefs) to kernel objects.
> -laptops/
> -	- directory with laptop related info and laptop driver documentation.
> -ldm.txt
> -	- a brief description of LDM (Windows Dynamic Disks).
> -leds/
> -	- directory with info about LED handling under Linux.
> -livepatch/
> -	- info on kernel live patching.
> -locking/
> -	- directory with info about kernel locking primitives
> -lockup-watchdogs.txt
> -	- info on soft and hard lockup detectors (aka nmi_watchdog).
> -logo.gif
> -	- full colour GIF image of Linux logo (penguin - Tux).
> -logo.txt
> -	- info on creator of above logo & site to get additional images from.
> -lsm.txt
> -	- Linux Security Modules: General Security Hooks for Linux
> -lzo.txt
> -	- kernel LZO decompressor input formats
> -m68k/
> -	- directory with info about Linux on Motorola 68k architecture.
> -mailbox.txt
> -	- How to write drivers for the common mailbox framework (IPC).
> -md/
> -	- directory with info about Linux Software RAID
> -media/
> -	- info on media drivers: uAPI, kAPI and driver documentation.
> -memory-barriers.txt
> -	- info on Linux kernel memory barriers.
> -memory-devices/
> -	- directory with info on parts like the Texas Instruments EMIF driver
> -memory-hotplug.txt
> -	- Hotpluggable memory support, how to use and current status.
> -men-chameleon-bus.txt
> -	- info on MEN chameleon bus.
> -mic/
> -	- Intel Many Integrated Core (MIC) architecture device driver.
> -mips/
> -	- directory with info about Linux on MIPS architecture.
> -misc-devices/
> -	- directory with info about devices using the misc dev subsystem
> -mmc/
> -	- directory with info about the MMC subsystem
> -mtd/
> -	- directory with info about memory technology devices (flash)
> -namespaces/
> -	- directory with various information about namespaces
> -netlabel/
> -	- directory with information on the NetLabel subsystem.
> -networking/
> -	- directory with info on various aspects of networking with Linux.
> -nfc/
> -	- directory relating info about Near Field Communications support.
> -nios2/
> -	- Linux on the Nios II architecture.
> -nommu-mmap.txt
> -	- documentation about no-mmu memory mapping support.
> -numastat.txt
> -	- info on how to read Numa policy hit/miss statistics in sysfs.
> -ntb.txt
> -	- info on Non-Transparent Bridge (NTB) drivers.
> -nvdimm/
> -	- info on non-volatile devices.
> -nvmem/
> -	- info on non volatile memory framework.
> -output/
> -	- default directory where html/LaTeX/pdf files will be written.
> -padata.txt
> -	- An introduction to the "padata" parallel execution API
> -parisc/
> -	- directory with info on using Linux on PA-RISC architecture.
> -parport-lowlevel.txt
> -	- description and usage of the low level parallel port functions.
> -pcmcia/
> -	- info on the Linux PCMCIA driver.
> -percpu-rw-semaphore.txt
> -	- RCU based read-write semaphore optimized for locking for reading
> -perf/
> -	- info about the APM X-Gene SoC Performance Monitoring Unit (PMU).
> -phy/
> -	- ino on Samsung USB 2.0 PHY adaptation layer.
> -phy.txt
> -	- Description of the generic PHY framework.
> -pi-futex.txt
> -	- documentation on lightweight priority inheritance futexes.
> -pinctrl.txt
> -	- info on pinctrl subsystem and the PINMUX/PINCONF and drivers
> -platform/
> -	- List of supported hardware by compal and Dell laptop.
> -pnp.txt
> -	- Linux Plug and Play documentation.
> -power/
> -	- directory with info on Linux PCI power management.
> -powerpc/
> -	- directory with info on using Linux with the PowerPC.
> -prctl/
> -	- directory with info on the priveledge control subsystem
> -preempt-locking.txt
> -	- info on locking under a preemptive kernel.
> -process/
> -	- how to work with the mainline kernel development process.
> -pps/
> -	- directory with information on the pulse-per-second support
> -pti/
> -	- directory with info on Intel MID PTI.
> -ptp/
> -	- directory with info on support for IEEE 1588 PTP clocks in Linux.
> -pwm.txt
> -	- info on the pulse width modulation driver subsystem
> -rapidio/
> -	- directory with info on RapidIO packet-based fabric interconnect
> -rbtree.txt
> -	- info on what red-black trees are and what they are for.
> -remoteproc.txt
> -	- info on how to handle remote processor (e.g. AMP) offloads/usage.
> -rfkill.txt
> -	- info on the radio frequency kill switch subsystem/support.
> -robust-futex-ABI.txt
> -	- documentation of the robust futex ABI.
> -robust-futexes.txt
> -	- a description of what robust futexes are.
> -rpmsg.txt
> -	- info on the Remote Processor Messaging (rpmsg) Framework
> -rtc.txt
> -	- notes on how to use the Real Time Clock (aka CMOS clock) driver.
> -s390/
> -	- directory with info on using Linux on the IBM S390.
> -scheduler/
> -	- directory with info on the scheduler.
> -scsi/
> -	- directory with info on Linux scsi support.
> -security/
> -	- directory that contains security-related info
> -serial/
> -	- directory with info on the low level serial API.
> -sgi-ioc4.txt
> -	- description of the SGI IOC4 PCI (multi function) device.
> -sh/
> -	- directory with info on porting Linux to a new architecture.
> -smsc_ece1099.txt
> -	-info on the smsc Keyboard Scan Expansion/GPIO Expansion device.
> -sound/
> -	- directory with info on sound card support.
> -spi/
> -	- overview of Linux kernel Serial Peripheral Interface (SPI) support.
> -sphinx/
> -	- no documentation here, just files required by Sphinx toolchain.
> -sphinx-static/
> -	- no documentation here, just files required by Sphinx toolchain.
> -static-keys.txt
> -	- info on how static keys allow debug code in hotpaths via patching
> -svga.txt
> -	- short guide on selecting video modes at boot via VGA BIOS.
> -sync_file.txt
> -	- Sync file API guide.
> -sysctl/
> -	- directory with info on the /proc/sys/* files.
> -target/
> -	- directory with info on generating TCM v4 fabric .ko modules
> -tee.txt
> -	- info on the TEE subsystem and drivers
> -this_cpu_ops.txt
> -	- List rationale behind and the way to use this_cpu operations.
> -thermal/
> -	- directory with information on managing thermal issues (CPU/temp)
> -trace/
> -	- directory with info on tracing technologies within linux
> -translations/
> -	- translations of this document from English to another language
> -unaligned-memory-access.txt
> -	- info on how to avoid arch breaking unaligned memory access in code.
> -unshare.txt
> -	- description of the Linux unshare system call.
> -usb/
> -	- directory with info regarding the Universal Serial Bus.
> -vfio.txt
> -	- info on Virtual Function I/O used in guest/hypervisor instances.
> -video-output.txt
> -	- sysfs class driver interface to enable/disable a video output device.
> -virtual/
> -	- directory with information on the various linux virtualizations.
> -vm/
> -	- directory with info on the Linux vm code.
> -w1/
> -	- directory with documents regarding the 1-wire (w1) subsystem.
> -watchdog/
> -	- how to auto-reboot Linux if it has "fallen and can't get up". ;-)
> -wimax/
> -	- directory with info about Intel Wireless Wimax Connections
> -core-api/workqueue.rst
> -	- information on the Concurrency Managed Workqueue implementation
> -x86/x86_64/
> -	- directory with info on Linux support for AMD x86-64 (Hammer) machines.
> -xillybus.txt
> -	- Overview and basic ui of xillybus driver
> -xtensa/
> -	- directory with documents relating to arch/xtensa port/implementation
> -xz.txt
> -	- how to make use of the XZ data compression within linux kernel
> -zorro.txt
> -	- info on writing drivers for Zorro bus devices found on Amigas.
> diff --git a/Documentation/PCI/00-INDEX b/Documentation/PCI/00-INDEX
> deleted file mode 100644
> index 206b1d5..0000000
> --- a/Documentation/PCI/00-INDEX
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -00-INDEX
> -	- this file
> -acpi-info.txt
> -	- info on how PCI host bridges are represented in ACPI
> -MSI-HOWTO.txt
> -	- the Message Signaled Interrupts (MSI) Driver Guide HOWTO and FAQ.
> -PCIEBUS-HOWTO.txt
> -	- a guide describing the PCI Express Port Bus driver
> -pci-error-recovery.txt
> -	- info on PCI error recovery
> -pci-iov-howto.txt
> -	- the PCI Express I/O Virtualization HOWTO
> -pci.txt
> -	- info on the PCI subsystem for device driver authors
> -pcieaer-howto.txt
> -	- the PCI Express Advanced Error Reporting Driver Guide HOWTO
> -endpoint/pci-endpoint.txt
> -	- guide to add endpoint controller driver and endpoint function driver.
> -endpoint/pci-endpoint-cfs.txt
> -	- guide to use configfs to configure the PCI endpoint function.
> -endpoint/pci-test-function.txt
> -	- specification of *PCI test* function device.
> -endpoint/pci-test-howto.txt
> -	- userguide for PCI endpoint test function.
> -endpoint/function/binding/
> -	- binding documentation for PCI endpoint function
> diff --git a/Documentation/RCU/00-INDEX b/Documentation/RCU/00-INDEX
> deleted file mode 100644
> index f46980c..0000000
> --- a/Documentation/RCU/00-INDEX
> +++ /dev/null
> @@ -1,34 +0,0 @@
> -00-INDEX
> -	- This file
> -arrayRCU.txt
> -	- Using RCU to Protect Read-Mostly Arrays
> -checklist.txt
> -	- Review Checklist for RCU Patches
> -listRCU.txt
> -	- Using RCU to Protect Read-Mostly Linked Lists
> -lockdep.txt
> -	- RCU and lockdep checking
> -lockdep-splat.txt
> -	- RCU Lockdep splats explained.
> -NMI-RCU.txt
> -	- Using RCU to Protect Dynamic NMI Handlers
> -rcu_dereference.txt
> -	- Proper care and feeding of return values from rcu_dereference()
> -rcubarrier.txt
> -	- RCU and Unloadable Modules
> -rculist_nulls.txt
> -	- RCU list primitives for use with SLAB_TYPESAFE_BY_RCU
> -rcuref.txt
> -	- Reference-count design for elements of lists/arrays protected by RCU
> -rcu.txt
> -	- RCU Concepts
> -RTFP.txt
> -	- List of RCU papers (bibliography) going back to 1980.
> -stallwarn.txt
> -	- RCU CPU stall warnings (module parameter rcu_cpu_stall_suppress)
> -torture.txt
> -	- RCU Torture Test Operation (CONFIG_RCU_TORTURE_TEST)
> -UP.txt
> -	- RCU on Uniprocessor Systems
> -whatisRCU.txt
> -	- What is RCU?
> diff --git a/Documentation/RCU/rcu.txt b/Documentation/RCU/rcu.txt
> index 7d4ae11..721b3e4 100644
> --- a/Documentation/RCU/rcu.txt
> +++ b/Documentation/RCU/rcu.txt
> @@ -87,7 +87,3 @@ o	Where can I find more information on RCU?
> 
>  	See the RTFP.txt file in this directory.
>  	Or point your browser at http://www.rdrop.com/users/paulmck/RCU/.
> -
> -o	What are all these files in this directory?
> -
> -	See 00-INDEX for the list.
> diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst
> index 15ea785..0797eec 100644
> --- a/Documentation/admin-guide/README.rst
> +++ b/Documentation/admin-guide/README.rst
> @@ -51,8 +51,7 @@ Documentation
> 
>   - There are various README files in the Documentation/ subdirectory:
>     these typically contain kernel-specific installation notes for some
> -   drivers for example. See Documentation/00-INDEX for a list of what
> -   is contained in each file.  Please read the
> +   drivers for example. Please read the
>     :ref:`Documentation/process/changes.rst <changes>` file, as it
>     contains information about the problems, which may result by upgrading
>     your kernel.
> diff --git a/Documentation/arm/00-INDEX b/Documentation/arm/00-INDEX
> deleted file mode 100644
> index b6e69fd..0000000
> --- a/Documentation/arm/00-INDEX
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -00-INDEX
> -	- this file
> -Booting
> -	- requirements for booting
> -CCN.txt
> -	- Cache Coherent Network ring-bus and perf PMU driver.
> -Interrupts
> -	- ARM Interrupt subsystem documentation
> -IXP4xx
> -	- Intel IXP4xx Network processor.
> -Netwinder
> -	- Netwinder specific documentation
> -Porting
> -       - Symbol definitions for porting Linux to a new ARM machine.
> -Setup
> -       - Kernel initialization parameters on ARM Linux
> -README
> -	- General ARM documentation
> -SA1100/
> -	- SA1100 documentation
> -Samsung-S3C24XX/
> -	- S3C24XX ARM Linux Overview
> -SPEAr/
> -	- ST SPEAr platform Linux Overview
> -VFP/
> -	- Release notes for Linux Kernel Vector Floating Point support code
> -cluster-pm-race-avoidance.txt
> -	- Algorithm for CPU and Cluster setup/teardown
> -empeg/
> -	- Ltd's Empeg MP3 Car Audio Player
> -firmware.txt
> -	- Secure firmware registration and calling.
> -kernel_mode_neon.txt
> -	- How to use NEON instructions in kernel mode
> -kernel_user_helpers.txt
> -	- Helper functions in kernel space made available for userspace.
> -mem_alignment
> -	- alignment abort handler documentation
> -memory.txt
> -	- description of the virtual memory layout
> -nwfpe/
> -	- NWFPE floating point emulator documentation
> -swp_emulation
> -	- SWP/SWPB emulation handler/logging description
> -tcm.txt
> -	- ARM Tightly Coupled Memory
> -uefi.txt
> -	- [U]EFI configuration and runtime services documentation
> -vlocks.txt
> -	- Voting locks, low-level mechanism relying on memory system atomic writes.
> diff --git a/Documentation/block/00-INDEX b/Documentation/block/00-INDEX
> deleted file mode 100644
> index 8d55b4b..0000000
> --- a/Documentation/block/00-INDEX
> +++ /dev/null
> @@ -1,34 +0,0 @@
> -00-INDEX
> -	- This file
> -bfq-iosched.txt
> -	- BFQ IO scheduler and its tunables
> -biodoc.txt
> -	- Notes on the Generic Block Layer Rewrite in Linux 2.5
> -biovecs.txt
> -	- Immutable biovecs and biovec iterators
> -capability.txt
> -	- Generic Block Device Capability (/sys/block/<device>/capability)
> -cfq-iosched.txt
> -	- CFQ IO scheduler tunables
> -cmdline-partition.txt
> -	- how to specify block device partitions on kernel command line
> -data-integrity.txt
> -	- Block data integrity
> -deadline-iosched.txt
> -	- Deadline IO scheduler tunables
> -ioprio.txt
> -	- Block io priorities (in CFQ scheduler)
> -pr.txt
> -	- Block layer support for Persistent Reservations
> -null_blk.txt
> -	- Null block for block-layer benchmarking.
> -queue-sysfs.txt
> -	- Queue's sysfs entries
> -request.txt
> -	- The members of struct request (in include/linux/blkdev.h)
> -stat.txt
> -	- Block layer statistics in /sys/block/<device>/stat
> -switching-sched.txt
> -	- Switching I/O schedulers at runtime
> -writeback_cache_control.txt
> -	- Control of volatile write back caches
> diff --git a/Documentation/blockdev/00-INDEX b/Documentation/blockdev/00-INDEX
> deleted file mode 100644
> index c08df56..0000000
> --- a/Documentation/blockdev/00-INDEX
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -00-INDEX
> -	- this file
> -README.DAC960
> -	- info on Mylex DAC960/DAC1100 PCI RAID Controller Driver for Linux.
> -cciss.txt
> -	- info, major/minor #'s for Compaq's SMART Array Controllers.
> -cpqarray.txt
> -	- info on using Compaq's SMART2 Intelligent Disk Array Controllers.
> -floppy.txt
> -	- notes and driver options for the floppy disk driver.
> -mflash.txt
> -	- info on mGine m(g)flash driver for linux.
> -nbd.txt
> -	- info on a TCP implementation of a network block device.
> -paride.txt
> -	- information about the parallel port IDE subsystem.
> -ramdisk.txt
> -	- short guide on how to set up and use the RAM disk.
> diff --git a/Documentation/cdrom/00-INDEX b/Documentation/cdrom/00-INDEX
> deleted file mode 100644
> index 433edf2..0000000
> --- a/Documentation/cdrom/00-INDEX
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -00-INDEX
> -	- this file (info on CD-ROMs and Linux)
> -Makefile
> -	- only used to generate TeX output from the documentation.
> -cdrom-standard.tex
> -	- LaTeX document on standardizing the CD-ROM programming interface.
> -ide-cd
> -	- info on setting up and using ATAPI (aka IDE) CD-ROMs.
> -packet-writing.txt
> -	- Info on the CDRW packet writing module
> -
> diff --git a/Documentation/cgroup-v1/00-INDEX b/Documentation/cgroup-v1/00-INDEX
> deleted file mode 100644
> index 13e0c85..0000000
> --- a/Documentation/cgroup-v1/00-INDEX
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -00-INDEX
> -	- this file
> -blkio-controller.txt
> -	- Description for Block IO Controller, implementation and usage details.
> -cgroups.txt
> -	- Control Groups definition, implementation details, examples and API.
> -cpuacct.txt
> -	- CPU Accounting Controller; account CPU usage for groups of tasks.
> -cpusets.txt
> -	- documents the cpusets feature; assign CPUs and Mem to a set of tasks.
> -admin-guide/devices.rst
> -	- Device Whitelist Controller; description, interface and security.
> -freezer-subsystem.txt
> -	- checkpointing; rationale to not use signals, interface.
> -hugetlb.txt
> -	- HugeTLB Controller implementation and usage details.
> -memcg_test.txt
> -	- Memory Resource Controller; implementation details.
> -memory.txt
> -	- Memory Resource Controller; design, accounting, interface, testing.
> -net_cls.txt
> -	- Network classifier cgroups details and usages.
> -net_prio.txt
> -	- Network priority cgroups details and usages.
> -pids.txt
> -	- Process number cgroups details and usages.
> diff --git a/Documentation/devicetree/00-INDEX b/Documentation/devicetree/00-INDEX
> deleted file mode 100644
> index 8c4102c..0000000
> --- a/Documentation/devicetree/00-INDEX
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -Documentation for device trees, a data structure by which bootloaders pass
> -hardware layout to Linux in a device-independent manner, simplifying hardware
> -probing.  This subsystem is maintained by Grant Likely
> -<grant.likely@secretlab.ca> and has a mailing list at
> -https://lists.ozlabs.org/listinfo/devicetree-discuss
> -
> -00-INDEX
> -	- this file
> -booting-without-of.txt
> -	- Booting Linux without Open Firmware, describes history and format of device trees.
> -usage-model.txt
> -	- How Linux uses DT and what DT aims to solve.
> \ No newline at end of file
> diff --git a/Documentation/fb/00-INDEX b/Documentation/fb/00-INDEX
> deleted file mode 100644
> index fe85e7c..0000000
> --- a/Documentation/fb/00-INDEX
> +++ /dev/null
> @@ -1,75 +0,0 @@
> -Index of files in Documentation/fb.  If you think something about frame
> -buffer devices needs an entry here, needs correction or you've written one
> -please mail me.
> -				    Geert Uytterhoeven <geert@linux-m68k.org>
> -
> -00-INDEX
> -	- this file.
> -api.txt
> -	- The frame buffer API between applications and buffer devices.
> -arkfb.txt
> -	- info on the fbdev driver for ARK Logic chips.
> -aty128fb.txt
> -	- info on the ATI Rage128 frame buffer driver.
> -cirrusfb.txt
> -	- info on the driver for Cirrus Logic chipsets.
> -cmap_xfbdev.txt
> -	- an introduction to fbdev's cmap structures.
> -deferred_io.txt
> -	- an introduction to deferred IO.
> -efifb.txt
> -	- info on the EFI platform driver for Intel based Apple computers.
> -ep93xx-fb.txt
> -	- info on the driver for EP93xx LCD controller.
> -fbcon.txt
> -	- intro to and usage guide for the framebuffer console (fbcon).
> -framebuffer.txt
> -	- introduction to frame buffer devices.
> -gxfb.txt
> -	- info on the framebuffer driver for AMD Geode GX2 based processors.
> -intel810.txt
> -	- documentation for the Intel 810/815 framebuffer driver.
> -intelfb.txt
> -	- docs for Intel 830M/845G/852GM/855GM/865G/915G/945G fb driver.
> -internals.txt
> -	- quick overview of frame buffer device internals.
> -lxfb.txt
> -	- info on the framebuffer driver for AMD Geode LX based processors.
> -matroxfb.txt
> -	- info on the Matrox framebuffer driver for Alpha, Intel and PPC.
> -metronomefb.txt
> -	- info on the driver for the Metronome display controller.
> -modedb.txt
> -	- info on the video mode database.
> -pvr2fb.txt
> -	- info on the PowerVR 2 frame buffer driver.
> -pxafb.txt
> -	- info on the driver for the PXA25x LCD controller.
> -s3fb.txt
> -	- info on the fbdev driver for S3 Trio/Virge chips.
> -sa1100fb.txt
> -	- information about the driver for the SA-1100 LCD controller.
> -sh7760fb.txt
> -	- info on the SH7760/SH7763 integrated LCDC Framebuffer driver.
> -sisfb.txt
> -	- info on the framebuffer device driver for various SiS chips.
> -sm501.txt
> -	- info on the framebuffer device driver for sm501 videoframebuffer.
> -sstfb.txt
> -	- info on the frame buffer driver for 3dfx' Voodoo Graphics boards.
> -tgafb.txt
> -	- info on the TGA (DECChip 21030) frame buffer driver.
> -tridentfb.txt
> -	info on the framebuffer driver for some Trident chip based cards.
> -udlfb.txt
> -	- Driver for DisplayLink USB 2.0 chips.
> -uvesafb.txt
> -	- info on the userspace VESA (VBE2+ compliant) frame buffer device.
> -vesafb.txt
> -	- info on the VESA frame buffer device.
> -viafb.modes
> -	- list of modes for VIA Integration Graphic Chip.
> -viafb.txt
> -	- info on the VIA Integration Graphic Chip console framebuffer driver.
> -vt8623fb.txt
> -	- info on the fb driver for the graphics core in VIA VT8623 chipsets.
> diff --git a/Documentation/filesystems/00-INDEX b/Documentation/filesystems/00-INDEX
> deleted file mode 100644
> index 0937bad..0000000
> --- a/Documentation/filesystems/00-INDEX
> +++ /dev/null
> @@ -1,153 +0,0 @@
> -00-INDEX
> -	- this file (info on some of the filesystems supported by linux).
> -Locking
> -	- info on locking rules as they pertain to Linux VFS.
> -9p.txt
> -	- 9p (v9fs) is an implementation of the Plan 9 remote fs protocol.
> -adfs.txt
> -	- info and mount options for the Acorn Advanced Disc Filing System.
> -afs.txt
> -	- info and examples for the distributed AFS (Andrew File System) fs.
> -affs.txt
> -	- info and mount options for the Amiga Fast File System.
> -autofs-mount-control.txt
> -	- info on device control operations for autofs module.
> -automount-support.txt
> -	- information about filesystem automount support.
> -befs.txt
> -	- information about the BeOS filesystem for Linux.
> -bfs.txt
> -	- info for the SCO UnixWare Boot Filesystem (BFS).
> -btrfs.txt
> -	- info for the BTRFS filesystem.
> -caching/
> -	- directory containing filesystem cache documentation.
> -ceph.txt
> -	- info for the Ceph Distributed File System.
> -cifs/
> -	- directory containing CIFS filesystem documentation and example code.
> -coda.txt
> -	- description of the CODA filesystem.
> -configfs/
> -	- directory containing configfs documentation and example code.
> -cramfs.txt
> -	- info on the cram filesystem for small storage (ROMs etc).
> -dax.txt
> -	- info on avoiding the page cache for files stored on CPU-addressable
> -	  storage devices.
> -debugfs.txt
> -	- info on the debugfs filesystem.
> -devpts.txt
> -	- info on the devpts filesystem.
> -directory-locking
> -	- info about the locking scheme used for directory operations.
> -dlmfs.txt
> -	- info on the userspace interface to the OCFS2 DLM.
> -dnotify.txt
> -	- info about directory notification in Linux.
> -dnotify_test.c
> -	- example program for dnotify.
> -ecryptfs.txt
> -	- docs on eCryptfs: stacked cryptographic filesystem for Linux.
> -efivarfs.txt
> -	- info for the efivarfs filesystem.
> -exofs.txt
> -	- info, usage, mount options, design about EXOFS.
> -ext2.txt
> -	- info, mount options and specifications for the Ext2 filesystem.
> -ext3.txt
> -	- info, mount options and specifications for the Ext3 filesystem.
> -ext4.txt
> -	- info, mount options and specifications for the Ext4 filesystem.
> -f2fs.txt
> -	- info and mount options for the F2FS filesystem.
> -fiemap.txt
> -	- info on fiemap ioctl.
> -files.txt
> -	- info on file management in the Linux kernel.
> -fuse.txt
> -	- info on the Filesystem in User SpacE including mount options.
> -gfs2-glocks.txt
> -	- info on the Global File System 2 - Glock internal locking rules.
> -gfs2-uevents.txt
> -	- info on the Global File System 2 - uevents.
> -gfs2.txt
> -	- info on the Global File System 2.
> -hfs.txt
> -	- info on the Macintosh HFS Filesystem for Linux.
> -hfsplus.txt
> -	- info on the Macintosh HFSPlus Filesystem for Linux.
> -hpfs.txt
> -	- info and mount options for the OS/2 HPFS.
> -inotify.txt
> -	- info on the powerful yet simple file change notification system.
> -isofs.txt
> -	- info and mount options for the ISO 9660 (CDROM) filesystem.
> -jfs.txt
> -	- info and mount options for the JFS filesystem.
> -locks.txt
> -	- info on file locking implementations, flock() vs. fcntl(), etc.
> -mandatory-locking.txt
> -	- info on the Linux implementation of Sys V mandatory file locking.
> -nfs/
> -	- nfs-related documentation.
> -nilfs2.txt
> -	- info and mount options for the NILFS2 filesystem.
> -ntfs.txt
> -	- info and mount options for the NTFS filesystem (Windows NT).
> -ocfs2.txt
> -	- info and mount options for the OCFS2 clustered filesystem.
> -omfs.txt
> -	- info on the Optimized MPEG FileSystem.
> -path-lookup.txt
> -	- info on path walking and name lookup locking.
> -pohmelfs/
> -	- directory containing pohmelfs filesystem documentation.
> -porting
> -	- various information on filesystem porting.
> -proc.txt
> -	- info on Linux's /proc filesystem.
> -qnx6.txt
> -	- info on the QNX6 filesystem.
> -quota.txt
> -	- info on Quota subsystem.
> -ramfs-rootfs-initramfs.txt
> -	- info on the 'in memory' filesystems ramfs, rootfs and initramfs.
> -relay.txt
> -	- info on relay, for efficient streaming from kernel to user space.
> -romfs.txt
> -	- description of the ROMFS filesystem.
> -seq_file.txt
> -	- how to use the seq_file API.
> -sharedsubtree.txt
> -	- a description of shared subtrees for namespaces.
> -spufs.txt
> -	- info and mount options for the SPU filesystem used on Cell.
> -squashfs.txt
> -	- info on the squashfs filesystem.
> -sysfs-pci.txt
> -	- info on accessing PCI device resources through sysfs.
> -sysfs-tagging.txt
> -	- info on sysfs tagging to avoid duplicates.
> -sysfs.txt
> -	- info on sysfs, a ram-based filesystem for exporting kernel objects.
> -sysv-fs.txt
> -	- info on the SystemV/V7/Xenix/Coherent filesystem.
> -tmpfs.txt
> -	- info on tmpfs, a filesystem that holds all files in virtual memory.
> -ubifs.txt
> -	- info on the Unsorted Block Images FileSystem.
> -udf.txt
> -	- info and mount options for the UDF filesystem.
> -ufs.txt
> -	- info on the ufs filesystem.
> -vfat.txt
> -	- info on using the VFAT filesystem used in Windows NT and Windows 95.
> -vfs.txt
> -	- overview of the Virtual File System.
> -xfs-delayed-logging-design.txt
> -	- info on the XFS Delayed Logging Design.
> -xfs-self-describing-metadata.txt
> -	- info on XFS Self Describing Metadata.
> -xfs.txt
> -	- info and mount options for the XFS filesystem.
> diff --git a/Documentation/filesystems/nfs/00-INDEX b/Documentation/filesystems/nfs/00-INDEX
> deleted file mode 100644
> index 53f3b59..0000000
> --- a/Documentation/filesystems/nfs/00-INDEX
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -00-INDEX
> -	- this file (nfs-related documentation).
> -Exporting
> -	- explanation of how to make filesystems exportable.
> -fault_injection.txt
> -	- information for using fault injection on the server
> -knfsd-stats.txt
> -	- statistics which the NFS server makes available to user space.
> -nfs.txt
> -	- nfs client, and DNS resolution for fs_locations.
> -nfs41-server.txt
> -	- info on the Linux server implementation of NFSv4 minor version 1.
> -nfs-rdma.txt
> -	- how to install and setup the Linux NFS/RDMA client and server software
> -nfsd-admin-interfaces.txt
> -	- Administrative interfaces for nfsd.
> -nfsroot.txt
> -	- short guide on setting up a diskless box with NFS root filesystem.
> -pnfs.txt
> -	- short explanation of some of the internals of the pnfs client code
> -rpc-cache.txt
> -	- introduction to the caching mechanisms in the sunrpc layer.
> -idmapper.txt
> -	- information for configuring request-keys to be used by idmapper
> -rpc-server-gss.txt
> -	- Information on GSS authentication support in the NFS Server
> diff --git a/Documentation/fmc/00-INDEX b/Documentation/fmc/00-INDEX
> deleted file mode 100644
> index 431c695..0000000
> --- a/Documentation/fmc/00-INDEX
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -
> -Documentation in this directory comes from sections of the manual we
> -wrote for the externally-developed fmc-bus package. The complete
> -manual as of today (2013-02) is available in PDF format at
> -http://www.ohwr.org/projects/fmc-bus/files
> -
> -00-INDEX
> -	- this file.
> -
> -FMC-and-SDB.txt
> -	- What are FMC and SDB, basic concepts for this framework
> -
> -API.txt
> -	- The functions that are exported by the bus driver
> -
> -parameters.txt
> -	- The module parameters
> -
> -carrier.txt
> -	- writing a carrier (a device)
> -
> -mezzanine.txt
> -	- writing code for your mezzanine (a driver)
> -
> -identifiers.txt
> -	- how identification and matching works
> -
> -fmc-fakedev.txt
> -	- about drivers/fmc/fmc-fakedev.ko
> -
> -fmc-trivial.txt
> -	- about drivers/fmc/fmc-trivial.ko
> -
> -fmc-write-eeprom.txt
> -	- about drivers/fmc/fmc-write-eeprom.ko
> -
> -fmc-chardev.txt
> -	- about drivers/fmc/fmc-chardev.ko
> diff --git a/Documentation/gpio/00-INDEX b/Documentation/gpio/00-INDEX
> deleted file mode 100644
> index 17e19a6..0000000
> --- a/Documentation/gpio/00-INDEX
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -00-INDEX
> -	- This file
> -sysfs.txt
> -	- Information about the GPIO sysfs interface
> diff --git a/Documentation/ide/00-INDEX b/Documentation/ide/00-INDEX
> deleted file mode 100644
> index 22f98ca..0000000
> --- a/Documentation/ide/00-INDEX
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -00-INDEX
> -    	- this file
> -ChangeLog.ide-cd.1994-2004
> -	- ide-cd changelog
> -ChangeLog.ide-floppy.1996-2002
> -	- ide-floppy changelog
> -ChangeLog.ide-tape.1995-2002
> -	- ide-tape changelog
> -ide-tape.txt
> -	- info on the IDE ATAPI streaming tape driver
> -ide.txt
> -	- important info for users of ATA devices (IDE/EIDE disks and CD-ROMS).
> -warm-plug-howto.txt
> -	- using sysfs to remove and add IDE devices.
> \ No newline at end of file
> diff --git a/Documentation/ioctl/00-INDEX b/Documentation/ioctl/00-INDEX
> deleted file mode 100644
> index c1a9257..0000000
> --- a/Documentation/ioctl/00-INDEX
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -00-INDEX
> -	- this file
> -botching-up-ioctls.txt
> -	- how to avoid botching up ioctls
> -cdrom.txt
> -	- summary of CDROM ioctl calls
> -hdio.txt
> -	- summary of HDIO_ ioctl calls
> -ioctl-decoding.txt
> -	- how to decode the bits of an IOCTL code
> -ioctl-number.txt
> -	- how to implement and register device/driver ioctl calls
> diff --git a/Documentation/isdn/00-INDEX b/Documentation/isdn/00-INDEX
> deleted file mode 100644
> index 2d1889b..0000000
> --- a/Documentation/isdn/00-INDEX
> +++ /dev/null
> @@ -1,42 +0,0 @@
> -00-INDEX
> -	- this file (info on ISDN implementation for Linux)
> -CREDITS
> -	- list of the kind folks that brought you this stuff.
> -HiSax.cert
> -	- information about the ITU approval certification of the HiSax driver.
> -INTERFACE
> -	- description of isdn4linux Link Level and Hardware Level interfaces.
> -INTERFACE.fax
> -	- description of the fax subinterface of isdn4linux.
> -INTERFACE.CAPI
> -	- description of kernel CAPI Link Level to Hardware Level interface.
> -README
> -	- general info on what you need and what to do for Linux ISDN.
> -README.FAQ
> -	- general info for FAQ.
> -README.HiSax
> -	- info on the HiSax driver which replaces the old teles.
> -README.audio
> -	- info for running audio over ISDN.
> -README.avmb1
> -	- info on driver for AVM-B1 ISDN card.
> -README.concap
> -	- info on "CONCAP" encapsulation protocol interface used for X.25.
> -README.diversion
> -	- info on module for isdn diversion services.
> -README.fax
> -	- info for using Fax over ISDN.
> -README.gigaset
> -	- info on the drivers for Siemens Gigaset ISDN adapters
> -README.hfc-pci
> -	- info on hfc-pci based cards.
> -README.hysdn
> -        - info on driver for Hypercope active HYSDN cards
> -README.mISDN
> -	- info on the Modular ISDN subsystem (mISDN)
> -README.syncppp
> -	- info on running Sync PPP over ISDN.
> -README.x25
> -	- info for running X.25 over ISDN.
> -syncPPP.FAQ
> -	- frequently asked questions about running PPP over ISDN.
> diff --git a/Documentation/kbuild/00-INDEX b/Documentation/kbuild/00-INDEX
> deleted file mode 100644
> index 8c5e6aa..0000000
> --- a/Documentation/kbuild/00-INDEX
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -00-INDEX
> -	- this file: info on the kernel build process
> -headers_install.txt
> -	- how to export Linux headers for use by userspace
> -kbuild.txt
> -	- developer information on kbuild
> -kconfig.txt
> -	- usage help for make *config
> -kconfig-language.txt
> -	- specification of Config Language, the language in Kconfig files
> -makefiles.txt
> -	- developer information for linux kernel makefiles
> -modules.txt
> -	- how to build modules and to install them
> diff --git a/Documentation/laptops/00-INDEX b/Documentation/laptops/00-INDEX
> deleted file mode 100644
> index 86169dc..0000000
> --- a/Documentation/laptops/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- This file
> -asus-laptop.txt
> -	- information on the Asus Laptop Extras driver.
> -disk-shock-protection.txt
> -	- information on hard disk shock protection.
> -laptop-mode.txt
> -	- how to conserve battery power using laptop-mode.
> -sony-laptop.txt
> -	- Sony Notebook Control Driver (SNC) Readme.
> -sonypi.txt
> -	- info on Linux Sony Programmable I/O Device support.
> -thinkpad-acpi.txt
> -	- information on the (IBM and Lenovo) ThinkPad ACPI Extras driver.
> -toshiba_haps.txt
> -	- information on the Toshiba HDD Active Protection Sensor driver.
> diff --git a/Documentation/leds/00-INDEX b/Documentation/leds/00-INDEX
> deleted file mode 100644
> index ae626b2..0000000
> --- a/Documentation/leds/00-INDEX
> +++ /dev/null
> @@ -1,32 +0,0 @@
> -00-INDEX
> -	- This file
> -leds-blinkm.txt
> -	- Driver for BlinkM LED-devices.
> -leds-class.txt
> -	- documents LED handling under Linux.
> -leds-class-flash.txt
> -	- documents flash LED handling under Linux.
> -leds-lm3556.txt
> -	- notes on how to use the leds-lm3556 driver.
> -leds-lp3944.txt
> -	- notes on how to use the leds-lp3944 driver.
> -leds-lp5521.txt
> -	- notes on how to use the leds-lp5521 driver.
> -leds-lp5523.txt
> -	- notes on how to use the leds-lp5523 driver.
> -leds-lp5562.txt
> -	- notes on how to use the leds-lp5562 driver.
> -leds-lp55xx.txt
> -	- description about lp55xx common driver.
> -leds-lm3556.txt
> -	- notes on how to use the leds-lm3556 driver.
> -leds-mlxcpld.txt
> -	- notes on how to use the leds-mlxcpld driver.
> -ledtrig-oneshot.txt
> -	- One-shot LED trigger for both sporadic and dense events.
> -ledtrig-transient.txt
> -	- LED Transient Trigger, one shot timer activation.
> -ledtrig-usbport.txt
> -	- notes on how to use the drivers/usb/core/ledtrig-usbport.c trigger.
> -uleds.txt
> -	- notes on how to use the uleds driver.
> diff --git a/Documentation/locking/00-INDEX b/Documentation/locking/00-INDEX
> deleted file mode 100644
> index c256c9b..0000000
> --- a/Documentation/locking/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -lockdep-design.txt
> -	- documentation on the runtime locking correctness validator.
> -lockstat.txt
> -	- info on collecting statistics on locks (and contention).
> -mutex-design.txt
> -	- info on the generic mutex subsystem.
> -rt-mutex-design.txt
> -	- description of the RealTime mutex implementation design.
> -rt-mutex.txt
> -	- desc. of RT-mutex subsystem with PI (Priority Inheritance) support.
> -spinlocks.txt
> -	- info on using spinlocks to provide exclusive access in kernel.
> -ww-mutex-design.txt
> -	- Intro to Mutex wait/would deadlock handling.s
> diff --git a/Documentation/m68k/00-INDEX b/Documentation/m68k/00-INDEX
> deleted file mode 100644
> index 2be8c6b..0000000
> --- a/Documentation/m68k/00-INDEX
> +++ /dev/null
> @@ -1,7 +0,0 @@
> -00-INDEX
> -	- this file
> -README.buddha
> -	- Amiga Buddha and Catweasel IDE Driver
> -kernel-options.txt
> -	- command line options for Linux/m68k
> -
> diff --git a/Documentation/mips/00-INDEX b/Documentation/mips/00-INDEX
> deleted file mode 100644
> index 8ae9cff..0000000
> --- a/Documentation/mips/00-INDEX
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -00-INDEX
> -	- this file.
> -AU1xxx_IDE.README
> -	- README for MIPS AU1XXX IDE driver.
> diff --git a/Documentation/mmc/00-INDEX b/Documentation/mmc/00-INDEX
> deleted file mode 100644
> index 4623bc0..0000000
> --- a/Documentation/mmc/00-INDEX
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -00-INDEX
> -        - this file
> -mmc-dev-attrs.txt
> -        - info on SD and MMC device attributes
> -mmc-dev-parts.txt
> -        - info on SD and MMC device partitions
> -mmc-async-req.txt
> -        - info on mmc asynchronous requests
> -mmc-tools.txt
> -	- info on mmc-utils tools
> diff --git a/Documentation/netlabel/00-INDEX b/Documentation/netlabel/00-INDEX
> deleted file mode 100644
> index 837bf35..0000000
> --- a/Documentation/netlabel/00-INDEX
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -00-INDEX
> -	- this file.
> -cipso_ipv4.txt
> -	- documentation on the IPv4 CIPSO protocol engine.
> -draft-ietf-cipso-ipsecurity-01.txt
> -	- IETF draft of the CIPSO protocol, dated 16 July 1992.
> -introduction.txt
> -	- NetLabel introduction, READ THIS FIRST.
> -lsm_interface.txt
> -	- documentation on the NetLabel kernel security module API.
> diff --git a/Documentation/netlabel/cipso_ipv4.txt b/Documentation/netlabel/cipso_ipv4.txt
> index 93dacb1..a607548 100644
> --- a/Documentation/netlabel/cipso_ipv4.txt
> +++ b/Documentation/netlabel/cipso_ipv4.txt
> @@ -6,11 +6,12 @@ May 17, 2006
> 
>   * Overview
> 
> -The NetLabel CIPSO/IPv4 protocol engine is based on the IETF Commercial IP
> -Security Option (CIPSO) draft from July 16, 1992.  A copy of this draft can be
> -found in this directory, consult '00-INDEX' for the filename.  While the IETF
> -draft never made it to an RFC standard it has become a de-facto standard for
> -labeled networking and is used in many trusted operating systems.
> +The NetLabel CIPSO/IPv4 protocol engine is based on the IETF Commercial
> +IP Security Option (CIPSO) draft from July 16, 1992.  A copy of this
> +draft can be found in this directory
> +(draft-ietf-cipso-ipsecurity-01.txt).  While the IETF draft never made
> +it to an RFC standard it has become a de-facto standard for labeled
> +networking and is used in many trusted operating systems.
> 
>   * Outbound Packet Processing
> 
> diff --git a/Documentation/netlabel/introduction.txt b/Documentation/netlabel/introduction.txt
> index 5ecd8d1..3caf77b 100644
> --- a/Documentation/netlabel/introduction.txt
> +++ b/Documentation/netlabel/introduction.txt
> @@ -22,7 +22,7 @@ refrain from calling the protocol engines directly, instead they should use
>  the NetLabel kernel security module API described below.
> 
>  Detailed information about each NetLabel protocol engine can be found in this
> -directory, consult '00-INDEX' for filenames.
> +directory.
> 
>   * Communication Layer
> 
> diff --git a/Documentation/networking/00-INDEX b/Documentation/networking/00-INDEX
> deleted file mode 100644
> index 02a323c..0000000
> --- a/Documentation/networking/00-INDEX
> +++ /dev/null
> @@ -1,234 +0,0 @@
> -00-INDEX
> -	- this file
> -3c509.txt
> -	- information on the 3Com Etherlink III Series Ethernet cards.
> -6pack.txt
> -	- info on the 6pack protocol, an alternative to KISS for AX.25
> -LICENSE.qla3xxx
> -	- GPLv2 for QLogic Linux Networking HBA Driver
> -LICENSE.qlge
> -	- GPLv2 for QLogic Linux qlge NIC Driver
> -LICENSE.qlcnic
> -	- GPLv2 for QLogic Linux qlcnic NIC Driver
> -PLIP.txt
> -	- PLIP: The Parallel Line Internet Protocol device driver
> -README.ipw2100
> -	- README for the Intel PRO/Wireless 2100 driver.
> -README.ipw2200
> -	- README for the Intel PRO/Wireless 2915ABG and 2200BG driver.
> -README.sb1000
> -	- info on General Instrument/NextLevel SURFboard1000 cable modem.
> -altera_tse.txt
> -	- Altera Triple-Speed Ethernet controller.
> -arcnet-hardware.txt
> -	- tons of info on ARCnet, hubs, jumper settings for ARCnet cards, etc.
> -arcnet.txt
> -	- info on the using the ARCnet driver itself.
> -atm.txt
> -	- info on where to get ATM programs and support for Linux.
> -ax25.txt
> -	- info on using AX.25 and NET/ROM code for Linux
> -baycom.txt
> -	- info on the driver for Baycom style amateur radio modems
> -bonding.txt
> -	- Linux Ethernet Bonding Driver HOWTO: link aggregation in Linux.
> -bridge.txt
> -	- where to get user space programs for ethernet bridging with Linux.
> -cdc_mbim.txt
> -	- 3G/LTE USB modem (Mobile Broadband Interface Model)
> -checksum-offloads.txt
> -	- Explanation of checksum offloads; LCO, RCO
> -cops.txt
> -	- info on the COPS LocalTalk Linux driver
> -cs89x0.txt
> -	- the Crystal LAN (CS8900/20-based) Ethernet ISA adapter driver
> -cxacru.txt
> -	- Conexant AccessRunner USB ADSL Modem
> -cxacru-cf.py
> -	- Conexant AccessRunner USB ADSL Modem configuration file parser
> -cxgb.txt
> -	- Release Notes for the Chelsio N210 Linux device driver.
> -dccp.txt
> -	- the Datagram Congestion Control Protocol (DCCP) (RFC 4340..42).
> -dctcp.txt
> -	- DataCenter TCP congestion control
> -de4x5.txt
> -	- the Digital EtherWORKS DE4?? and DE5?? PCI Ethernet driver
> -decnet.txt
> -	- info on using the DECnet networking layer in Linux.
> -dl2k.txt
> -	- README for D-Link DL2000-based Gigabit Ethernet Adapters (dl2k.ko).
> -dm9000.txt
> -	- README for the Simtec DM9000 Network driver.
> -dmfe.txt
> -	- info on the Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver.
> -dns_resolver.txt
> -	- The DNS resolver module allows kernel servies to make DNS queries.
> -driver.txt
> -	- Softnet driver issues.
> -ena.txt
> -	- info on Amazon's Elastic Network Adapter (ENA)
> -e100.txt
> -	- info on Intel's EtherExpress PRO/100 line of 10/100 boards
> -e1000.txt
> -	- info on Intel's E1000 line of gigabit ethernet boards
> -e1000e.txt
> -	- README for the Intel Gigabit Ethernet Driver (e1000e).
> -eql.txt
> -	- serial IP load balancing
> -fib_trie.txt
> -	- Level Compressed Trie (LC-trie) notes: a structure for routing.
> -filter.txt
> -	- Linux Socket Filtering
> -fore200e.txt
> -	- FORE Systems PCA-200E/SBA-200E ATM NIC driver info.
> -framerelay.txt
> -	- info on using Frame Relay/Data Link Connection Identifier (DLCI).
> -gen_stats.txt
> -	- Generic networking statistics for netlink users.
> -generic-hdlc.txt
> -	- The generic High Level Data Link Control (HDLC) layer.
> -generic_netlink.txt
> -	- info on Generic Netlink
> -gianfar.txt
> -	- Gianfar Ethernet Driver.
> -i40e.txt
> -	- README for the Intel Ethernet Controller XL710 Driver (i40e).
> -i40evf.txt
> -	- Short note on the Driver for the Intel(R) XL710 X710 Virtual Function
> -ieee802154.txt
> -	- Linux IEEE 802.15.4 implementation, API and drivers
> -igb.txt
> -	- README for the Intel Gigabit Ethernet Driver (igb).
> -igbvf.txt
> -	- README for the Intel Gigabit Ethernet Driver (igbvf).
> -ip-sysctl.txt
> -	- /proc/sys/net/ipv4/* variables
> -ip_dynaddr.txt
> -	- IP dynamic address hack e.g. for auto-dialup links
> -ipddp.txt
> -	- AppleTalk-IP Decapsulation and AppleTalk-IP Encapsulation
> -iphase.txt
> -	- Interphase PCI ATM (i)Chip IA Linux driver info.
> -ipsec.txt
> -	- Note on not compressing IPSec payload and resulting failed policy check.
> -ipv6.txt
> -	- Options to the ipv6 kernel module.
> -ipvs-sysctl.txt
> -	- Per-inode explanation of the /proc/sys/net/ipv4/vs interface.
> -irda.txt
> -	- where to get IrDA (infrared) utilities and info for Linux.
> -ixgb.txt
> -	- README for the Intel 10 Gigabit Ethernet Driver (ixgb).
> -ixgbe.txt
> -	- README for the Intel 10 Gigabit Ethernet Driver (ixgbe).
> -ixgbevf.txt
> -	- README for the Intel Virtual Function (VF) Driver (ixgbevf).
> -l2tp.txt
> -	- User guide to the L2TP tunnel protocol.
> -lapb-module.txt
> -	- programming information of the LAPB module.
> -ltpc.txt
> -	- the Apple or Farallon LocalTalk PC card driver
> -mac80211-auth-assoc-deauth.txt
> -	- authentication and association / deauth-disassoc with max80211
> -mac80211-injection.txt
> -	- HOWTO use packet injection with mac80211
> -multiqueue.txt
> -	- HOWTO for multiqueue network device support.
> -netconsole.txt
> -	- The network console module netconsole.ko: configuration and notes.
> -netdev-features.txt
> -	- Network interface features API description.
> -netdevices.txt
> -	- info on network device driver functions exported to the kernel.
> -netif-msg.txt
> -	- Design of the network interface message level setting (NETIF_MSG_*).
> -netlink_mmap.txt
> -	- memory mapped I/O with netlink
> -nf_conntrack-sysctl.txt
> -	- list of netfilter-sysctl knobs.
> -nfc.txt
> -	- The Linux Near Field Communication (NFS) subsystem.
> -openvswitch.txt
> -	- Open vSwitch developer documentation.
> -operstates.txt
> -	- Overview of network interface operational states.
> -packet_mmap.txt
> -	- User guide to memory mapped packet socket rings (PACKET_[RT]X_RING).
> -phonet.txt
> -	- The Phonet packet protocol used in Nokia cellular modems.
> -phy.txt
> -	- The PHY abstraction layer.
> -pktgen.txt
> -	- User guide to the kernel packet generator (pktgen.ko).
> -policy-routing.txt
> -	- IP policy-based routing
> -ppp_generic.txt
> -	- Information about the generic PPP driver.
> -proc_net_tcp.txt
> -	- Per inode overview of the /proc/net/tcp and /proc/net/tcp6 interfaces.
> -radiotap-headers.txt
> -	- Background on radiotap headers.
> -ray_cs.txt
> -	- Raylink Wireless LAN card driver info.
> -rds.txt
> -	- Background on the reliable, ordered datagram delivery method RDS.
> -regulatory.txt
> -	- Overview of the Linux wireless regulatory infrastructure.
> -rxrpc.txt
> -	- Guide to the RxRPC protocol.
> -s2io.txt
> -	- Release notes for Neterion Xframe I/II 10GbE driver.
> -scaling.txt
> -	- Explanation of network scaling techniques: RSS, RPS, RFS, aRFS, XPS.
> -sctp.txt
> -	- Notes on the Linux kernel implementation of the SCTP protocol.
> -secid.txt
> -	- Explanation of the secid member in flow structures.
> -skfp.txt
> -	- SysKonnect FDDI (SK-5xxx, Compaq Netelligent) driver info.
> -smc9.txt
> -	- the driver for SMC's 9000 series of Ethernet cards
> -spider_net.txt
> -	- README for the Spidernet Driver (as found in PS3 / Cell BE).
> -stmmac.txt
> -	- README for the STMicro Synopsys Ethernet driver.
> -tc-actions-env-rules.txt
> -	- rules for traffic control (tc) actions.
> -timestamping.txt
> -	- overview of network packet timestamping variants.
> -tcp.txt
> -	- short blurb on how TCP output takes place.
> -tcp-thin.txt
> -	- kernel tuning options for low rate 'thin' TCP streams.
> -team.txt
> -	- pointer to information for ethernet teaming devices.
> -tlan.txt
> -	- ThunderLAN (Compaq Netelligent 10/100, Olicom OC-2xxx) driver info.
> -tproxy.txt
> -	- Transparent proxy support user guide.
> -tuntap.txt
> -	- TUN/TAP device driver, allowing user space Rx/Tx of packets.
> -udplite.txt
> -	- UDP-Lite protocol (RFC 3828) introduction.
> -vortex.txt
> -	- info on using 3Com Vortex (3c590, 3c592, 3c595, 3c597) Ethernet cards.
> -vxge.txt
> -	- README for the Neterion X3100 PCIe Server Adapter.
> -vxlan.txt
> -	- Virtual extensible LAN overview
> -x25.txt
> -	- general info on X.25 development.
> -x25-iface.txt
> -	- description of the X.25 Packet Layer to LAPB device interface.
> -xfrm_device.txt
> -	- description of XFRM offload API
> -xfrm_proc.txt
> -	- description of the statistics package for XFRM.
> -xfrm_sync.txt
> -	- sync patches for XFRM enable migration of an SA between hosts.
> -xfrm_sysctl.txt
> -	- description of the XFRM configuration options.
> -z8530drv.txt
> -	- info about Linux driver for Z8530 based HDLC cards for AX.25
> diff --git a/Documentation/parisc/00-INDEX b/Documentation/parisc/00-INDEX
> deleted file mode 100644
> index cbd0609..0000000
> --- a/Documentation/parisc/00-INDEX
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -00-INDEX
> -	- this file.
> -debugging
> -	- some debugging hints for real-mode code
> -registers
> -	- current/planned usage of registers
> diff --git a/Documentation/power/00-INDEX b/Documentation/power/00-INDEX
> deleted file mode 100644
> index 7f3c2de..0000000
> --- a/Documentation/power/00-INDEX
> +++ /dev/null
> @@ -1,44 +0,0 @@
> -00-INDEX
> -	- This file
> -apm-acpi.txt
> -	- basic info about the APM and ACPI support.
> -basic-pm-debugging.txt
> -	- Debugging suspend and resume
> -charger-manager.txt
> -	- Battery charger management.
> -admin-guide/devices.rst
> -	- How drivers interact with system-wide power management
> -drivers-testing.txt
> -	- Testing suspend and resume support in device drivers
> -freezing-of-tasks.txt
> -	- How processes and controlled during suspend
> -interface.txt
> -	- Power management user interface in /sys/power
> -opp.txt
> -	- Operating Performance Point library
> -pci.txt
> -	- How the PCI Subsystem Does Power Management
> -pm_qos_interface.txt
> -	- info on Linux PM Quality of Service interface
> -power_supply_class.txt
> -	- Tells userspace about battery, UPS, AC or DC power supply properties
> -runtime_pm.txt
> -	- Power management framework for I/O devices.
> -s2ram.txt
> -	- How to get suspend to ram working (and debug it when it isn't)
> -states.txt
> -	- System power management states
> -suspend-and-cpuhotplug.txt
> -	- Explains the interaction between Suspend-to-RAM (S3) and CPU hotplug
> -swsusp-and-swap-files.txt
> -	- Using swap files with software suspend (to disk)
> -swsusp-dmcrypt.txt
> -	- How to use dm-crypt and software suspend (to disk) together
> -swsusp.txt
> -	- Goals, implementation, and usage of software suspend (ACPI S3)
> -tricks.txt
> -	- How to trick software suspend (to disk) into working when it isn't
> -userland-swsusp.txt
> -	- Experimental implementation of software suspend in userspace
> -video.txt
> -	- Video issues during resume from suspend
> diff --git a/Documentation/powerpc/00-INDEX b/Documentation/powerpc/00-INDEX
> deleted file mode 100644
> index 9dc845c..0000000
> --- a/Documentation/powerpc/00-INDEX
> +++ /dev/null
> @@ -1,34 +0,0 @@
> -Index of files in Documentation/powerpc.  If you think something about
> -Linux/PPC needs an entry here, needs correction or you've written one
> -please mail me.
> -                                        Cort Dougan (cort@fsmlabs.com)
> -
> -00-INDEX
> -	- this file
> -bootwrapper.txt
> -	- Information on how the powerpc kernel is wrapped for boot on various
> -	  different platforms.
> -cpu_features.txt
> -	- info on how we support a variety of CPUs with minimal compile-time
> -	options.
> -cxl.txt
> -	- Overview of the CXL driver.
> -eeh-pci-error-recovery.txt
> -	- info on PCI Bus EEH Error Recovery
> -firmware-assisted-dump.txt
> -	- Documentation on the firmware assisted dump mechanism "fadump".
> -hvcs.txt
> -	- IBM "Hypervisor Virtual Console Server" Installation Guide
> -mpc52xx.txt
> -	- Linux 2.6.x on MPC52xx family
> -pmu-ebb.txt
> -	- Description of the API for using the PMU with Event Based Branches.
> -qe_firmware.txt
> -	- describes the layout of firmware binaries for the Freescale QUICC
> -	  Engine and the code that parses and uploads the microcode therein.
> -ptrace.txt
> -	- Information on the ptrace interfaces for hardware debug registers.
> -transactional_memory.txt
> -	- Overview of the Power8 transactional memory support.
> -dscr.txt
> -	- Overview DSCR (Data Stream Control Register) support.
> diff --git a/Documentation/s390/00-INDEX b/Documentation/s390/00-INDEX
> deleted file mode 100644
> index 317f037..0000000
> --- a/Documentation/s390/00-INDEX
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -00-INDEX
> -	- this file.
> -3270.ChangeLog
> -	- ChangeLog for the UTS Global 3270-support patch (outdated).
> -3270.txt
> -	- how to use the IBM 3270 display system support.
> -cds.txt
> -	- s390 common device support (common I/O layer).
> -CommonIO
> -	- common I/O layer command line parameters, procfs and debugfs	entries
> -config3270.sh
> -	- example configuration for 3270 devices.
> -DASD
> -	- information on the DASD disk device driver.
> -Debugging390.txt
> -	- hints for debugging on s390 systems.
> -driver-model.txt
> -	- information on s390 devices and the driver model.
> -monreader.txt
> -	- information on accessing the z/VM monitor stream from Linux.
> -qeth.txt
> -	- HiperSockets Bridge Port Support.
> -s390dbf.txt
> -	- information on using the s390 debug feature.
> -vfio-ccw.txt
> -	  information on the vfio-ccw I/O subchannel driver.
> -zfcpdump.txt
> -	- information on the s390 SCSI dump tool.
> diff --git a/Documentation/scheduler/00-INDEX b/Documentation/scheduler/00-INDEX
> deleted file mode 100644
> index eccf7ad..0000000
> --- a/Documentation/scheduler/00-INDEX
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -00-INDEX
> -	- this file.
> -sched-arch.txt
> -	- CPU Scheduler implementation hints for architecture specific code.
> -sched-bwc.txt
> -	- CFS bandwidth control overview.
> -sched-design-CFS.txt
> -	- goals, design and implementation of the Completely Fair Scheduler.
> -sched-domains.txt
> -	- information on scheduling domains.
> -sched-nice-design.txt
> -	- How and why the scheduler's nice levels are implemented.
> -sched-rt-group.txt
> -	- real-time group scheduling.
> -sched-deadline.txt
> -	- deadline scheduling.
> -sched-stats.txt
> -	- information on schedstats (Linux Scheduler Statistics).
> diff --git a/Documentation/scsi/00-INDEX b/Documentation/scsi/00-INDEX
> deleted file mode 100644
> index bb4a76f..0000000
> --- a/Documentation/scsi/00-INDEX
> +++ /dev/null
> @@ -1,108 +0,0 @@
> -00-INDEX
> -	- this file
> -53c700.txt
> -	- info on driver for 53c700 based adapters
> -BusLogic.txt
> -	- info on driver for adapters with BusLogic chips
> -ChangeLog.1992-1997
> -	- Changes to scsi files, if not listed elsewhere
> -ChangeLog.arcmsr
> -	- Changes to driver for ARECA's SATA RAID controller cards
> -ChangeLog.ips
> -	- IBM ServeRAID driver Changelog
> -ChangeLog.lpfc
> -	- Changes to lpfc driver
> -ChangeLog.megaraid
> -	- Changes to LSI megaraid controller.
> -ChangeLog.megaraid_sas
> -	- Changes to serial attached scsi version of LSI megaraid controller.
> -ChangeLog.ncr53c8xx
> -	- Changes to ncr53c8xx driver
> -ChangeLog.sym53c8xx
> -	- Changes to sym53c8xx driver
> -ChangeLog.sym53c8xx_2
> -	- Changes to second generation of sym53c8xx driver
> -FlashPoint.txt
> -	- info on driver for BusLogic FlashPoint adapters
> -LICENSE.FlashPoint
> -	- Licence of the Flashpoint driver
> -LICENSE.qla2xxx
> -	- License for QLogic Linux Fibre Channel HBA Driver firmware.
> -LICENSE.qla4xxx
> -	- License for QLogic Linux iSCSI HBA Driver.
> -Mylex.txt
> -	- info on driver for Mylex adapters
> -NinjaSCSI.txt
> -	- info on WorkBiT NinjaSCSI-32/32Bi driver
> -aacraid.txt
> -	- Driver supporting Adaptec RAID controllers
> -advansys.txt
> -	- List of Advansys Host Adapters
> -aha152x.txt
> -	- info on driver for Adaptec AHA152x based adapters
> -aic79xx.txt
> -	- Adaptec Ultra320 SCSI host adapters
> -aic7xxx.txt
> -	- info on driver for Adaptec controllers
> -arcmsr_spec.txt
> -	- ARECA FIRMWARE SPEC (for IOP331 adapter)
> -bfa.txt
> -	- Brocade FC/FCOE adapter driver.
> -bnx2fc.txt
> -	- FCoE hardware offload for Broadcom network interfaces.
> -cxgb3i.txt
> -	- Chelsio iSCSI Linux Driver
> -dc395x.txt
> -	- README file for the dc395x SCSI driver
> -dpti.txt
> -	- info on driver for DPT SmartRAID and Adaptec I2O RAID based adapters
> -dtc3x80.txt
> -	- info on driver for DTC 2x80 based adapters
> -g_NCR5380.txt
> -	- info on driver for NCR5380 and NCR53c400 based adapters
> -hpsa.txt
> -	- HP Smart Array Controller SCSI driver.
> -hptiop.txt
> -	- HIGHPOINT ROCKETRAID 3xxx RAID DRIVER
> -libsas.txt
> -	- Serial Attached SCSI management layer.
> -link_power_management_policy.txt
> -	- Link power management options.
> -lpfc.txt
> -	- LPFC driver release notes
> -megaraid.txt
> -	- Common Management Module, shared code handling ioctls for LSI drivers
> -ncr53c8xx.txt
> -	- info on driver for NCR53c8xx based adapters
> -osd.txt
> -	Object-Based Storage Device, command set introduction.
> -osst.txt
> -	- info on driver for OnStream SC-x0 SCSI tape
> -ppa.txt
> -	- info on driver for IOmega zip drive
> -qlogicfas.txt
> -	- info on driver for QLogic FASxxx based adapters
> -scsi-changer.txt
> -	- README for the SCSI media changer driver
> -scsi-generic.txt
> -	- info on the sg driver for generic (non-disk/CD/tape) SCSI devices.
> -scsi-parameters.txt
> -	- List of SCSI-parameters to pass to the kernel at module load-time.
> -scsi.txt
> -	- short blurb on using SCSI support as a module.
> -scsi_mid_low_api.txt
> -	- info on API between SCSI layer and low level drivers
> -scsi_eh.txt
> -	- info on SCSI midlayer error handling infrastructure
> -scsi_fc_transport.txt
> -	- SCSI Fiber Channel Tansport
> -st.txt
> -	- info on scsi tape driver
> -sym53c500_cs.txt
> -	- info on PCMCIA driver for Symbios Logic 53c500 based adapters
> -sym53c8xx_2.txt
> -	- info on second generation driver for sym53c8xx based adapters
> -tmscsim.txt
> -	- info on driver for AM53c974 based adapters
> -ufs.txt
> -	- info on Universal Flash Storage(UFS) and UFS host controller driver.
> diff --git a/Documentation/serial/00-INDEX b/Documentation/serial/00-INDEX
> deleted file mode 100644
> index 8021a9f..0000000
> --- a/Documentation/serial/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -README.cycladesZ
> -	- info on Cyclades-Z firmware loading.
> -driver
> -	- intro to the low level serial driver.
> -moxa-smartio
> -	- file with info on installing/using Moxa multiport serial driver.
> -n_gsm.txt
> -	- GSM 0710 tty multiplexer howto.
> -rocket.txt
> -	- info on the Comtrol RocketPort multiport serial driver.
> -serial-rs485.txt
> -	- info about RS485 structures and support in the kernel.
> -tty.txt
> -	- guide to the locking policies of the tty layer.
> diff --git a/Documentation/spi/00-INDEX b/Documentation/spi/00-INDEX
> deleted file mode 100644
> index 8e4bb17..0000000
> --- a/Documentation/spi/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -butterfly
> -	- AVR Butterfly SPI driver overview and pin configuration.
> -ep93xx_spi
> -	- Basic EP93xx SPI driver configuration.
> -pxa2xx
> -	- PXA2xx SPI master controller build by spi_message fifo wq
> -spidev
> -	- Intro to the userspace API for spi devices
> -spi-lm70llp
> -	- Connecting an LM70-LLP sensor to the kernel via the SPI subsys.
> -spi-sc18is602
> -	- NXP SC18IS602/603 I2C-bus to SPI bridge
> -spi-summary
> -	- (Linux) SPI overview. If unsure about SPI or SPI in Linux, start here.
> diff --git a/Documentation/sysctl/00-INDEX b/Documentation/sysctl/00-INDEX
> deleted file mode 100644
> index 8cf5d49..0000000
> --- a/Documentation/sysctl/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file.
> -README
> -	- general information about /proc/sys/ sysctl files.
> -abi.txt
> -	- documentation for /proc/sys/abi/*.
> -fs.txt
> -	- documentation for /proc/sys/fs/*.
> -kernel.txt
> -	- documentation for /proc/sys/kernel/*.
> -net.txt
> -	- documentation for /proc/sys/net/*.
> -sunrpc.txt
> -	- documentation for /proc/sys/sunrpc/*.
> -vm.txt
> -	- documentation for /proc/sys/vm/*.
> diff --git a/Documentation/timers/00-INDEX b/Documentation/timers/00-INDEX
> deleted file mode 100644
> index 3be05fe..0000000
> --- a/Documentation/timers/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- this file
> -highres.txt
> -	- High resolution timers and dynamic ticks design notes
> -hpet.txt
> -	- High Precision Event Timer Driver for Linux
> -hrtimers.txt
> -	- subsystem for high-resolution kernel timers
> -NO_HZ.txt
> -	- Summary of the different methods for the scheduler clock-interrupts management.
> -timekeeping.txt
> -	- Clock sources, clock events, sched_clock() and delay timer notes
> -timers-howto.txt
> -	- how to insert delays in the kernel the right (tm) way.
> -timer_stats.txt
> -	- timer usage statistics
> diff --git a/Documentation/virtual/00-INDEX b/Documentation/virtual/00-INDEX
> deleted file mode 100644
> index af0d239..0000000
> --- a/Documentation/virtual/00-INDEX
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -Virtualization support in the Linux kernel.
> -
> -00-INDEX
> -	- this file.
> -
> -paravirt_ops.txt
> -	- Describes the Linux kernel pv_ops to support different hypervisors
> -kvm/
> -	- Kernel Virtual Machine.  See also http://linux-kvm.org
> -uml/
> -	- User Mode Linux, builds/runs Linux kernel as a userspace program.
> diff --git a/Documentation/virtual/kvm/00-INDEX b/Documentation/virtual/kvm/00-INDEX
> deleted file mode 100644
> index 3492458..0000000
> --- a/Documentation/virtual/kvm/00-INDEX
> +++ /dev/null
> @@ -1,35 +0,0 @@
> -00-INDEX
> -	- this file.
> -amd-memory-encryption.rst
> -	- notes on AMD Secure Encrypted Virtualization feature and SEV firmware
> -	  command description
> -api.txt
> -	- KVM userspace API.
> -arm
> -	- internal ABI between the kernel and HYP (for arm/arm64)
> -cpuid.txt
> -	- KVM-specific cpuid leaves (x86).
> -devices/
> -	- KVM_CAP_DEVICE_CTRL userspace API.
> -halt-polling.txt
> -	- notes on halt-polling
> -hypercalls.txt
> -	- KVM hypercalls.
> -locking.txt
> -	- notes on KVM locks.
> -mmu.txt
> -	- the x86 kvm shadow mmu.
> -msr.txt
> -	- KVM-specific MSRs (x86).
> -nested-vmx.txt
> -	- notes on nested virtualization for Intel x86 processors.
> -ppc-pv.txt
> -	- the paravirtualization interface on PowerPC.
> -review-checklist.txt
> -	- review checklist for KVM patches.
> -s390-diag.txt
> -	- Diagnose hypercall description (for IBM S/390)
> -timekeeping.txt
> -	- timekeeping virtualization for x86-based architectures.
> -vcpu-requests.rst
> -	- internal VCPU request API
> diff --git a/Documentation/vm/00-INDEX b/Documentation/vm/00-INDEX
> deleted file mode 100644
> index f4a4f3e..0000000
> --- a/Documentation/vm/00-INDEX
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -00-INDEX
> -	- this file.
> -active_mm.rst
> -	- An explanation from Linus about tsk->active_mm vs tsk->mm.
> -balance.rst
> -	- various information on memory balancing.
> -cleancache.rst
> -	- Intro to cleancache and page-granularity victim cache.
> -frontswap.rst
> -	- Outline frontswap, part of the transcendent memory frontend.
> -highmem.rst
> -	- Outline of highmem and common issues.
> -hmm.rst
> -	- Documentation of heterogeneous memory management
> -hugetlbfs_reserv.rst
> -	- A brief overview of hugetlbfs reservation design/implementation.
> -hwpoison.rst
> -	- explains what hwpoison is
> -ksm.rst
> -	- how to use the Kernel Samepage Merging feature.
> -mmu_notifier.rst
> -	- a note about clearing pte/pmd and mmu notifications
> -numa.rst
> -	- information about NUMA specific code in the Linux vm.
> -overcommit-accounting.rst
> -	- description of the Linux kernels overcommit handling modes.
> -page_frags.rst
> -	- description of page fragments allocator
> -page_migration.rst
> -	- description of page migration in NUMA systems.
> -page_owner.rst
> -	- tracking about who allocated each page
> -remap_file_pages.rst
> -	- a note about remap_file_pages() system call
> -slub.rst
> -	- a short users guide for SLUB.
> -split_page_table_lock.rst
> -	- Separate per-table lock to improve scalability of the old page_table_lock.
> -swap_numa.rst
> -	- automatic binding of swap device to numa node
> -transhuge.rst
> -	- Transparent Hugepage Support, alternative way of using hugepages.
> -unevictable-lru.rst
> -	- Unevictable LRU infrastructure
> -z3fold.txt
> -	- outline of z3fold allocator for storing compressed pages
> -zsmalloc.rst
> -	- outline of zsmalloc allocator for storing compressed pages
> -zswap.rst
> -	- Intro to compressed cache for swap pages
> diff --git a/Documentation/w1/00-INDEX b/Documentation/w1/00-INDEX
> deleted file mode 100644
> index cb49802..0000000
> --- a/Documentation/w1/00-INDEX
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -00-INDEX
> -	- This file
> -slaves/
> -	- Drivers that provide support for specific family codes.
> -masters/
> -	- Individual chips providing 1-wire busses.
> -w1.generic
> -	- The 1-wire (w1) bus
> -w1.netlink
> -	- Userspace communication protocol over connector [1].
> diff --git a/Documentation/w1/masters/00-INDEX b/Documentation/w1/masters/00-INDEX
> deleted file mode 100644
> index 8330cf9..0000000
> --- a/Documentation/w1/masters/00-INDEX
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -00-INDEX
> -	- This file
> -ds2482
> -	- The Maxim/Dallas Semiconductor DS2482 provides 1-wire busses.
> -ds2490
> -	- The Maxim/Dallas Semiconductor DS2490 builds USB <-> W1 bridges.
> -mxc-w1
> -	- W1 master controller driver found on Freescale MX2/MX3 SoCs
> -omap-hdq
> -	- HDQ/1-wire module of TI OMAP 2430/3430.
> -w1-gpio
> -	- GPIO 1-wire bus master driver.
> diff --git a/Documentation/w1/slaves/00-INDEX b/Documentation/w1/slaves/00-INDEX
> deleted file mode 100644
> index 68946f8..0000000
> --- a/Documentation/w1/slaves/00-INDEX
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -00-INDEX
> -	- This file
> -w1_therm
> -	- The Maxim/Dallas Semiconductor ds18*20 temperature sensor.
> -w1_ds2413
> -	- The Maxim/Dallas Semiconductor ds2413 dual channel addressable switch.
> -w1_ds2423
> -	- The Maxim/Dallas Semiconductor ds2423 counter device.
> -w1_ds2438
> -	- The Maxim/Dallas Semiconductor ds2438 smart battery monitor.
> -w1_ds28e04
> -	- The Maxim/Dallas Semiconductor ds28e04 eeprom.
> -w1_ds28e17
> -	- The Maxim/Dallas Semiconductor ds28e17 1-Wire-to-I2C Master Bridge.
> diff --git a/Documentation/x86/00-INDEX b/Documentation/x86/00-INDEX
> deleted file mode 100644
> index 3bb2ee3..0000000
> --- a/Documentation/x86/00-INDEX
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -00-INDEX
> -	- this file
> -boot.txt
> -	- List of boot protocol versions
> -earlyprintk.txt
> -	- Using earlyprintk with a USB2 debug port key.
> -entry_64.txt
> -	- Describe (some of the) kernel entry points for x86.
> -exception-tables.txt
> -	- why and how Linux kernel uses exception tables on x86
> -microcode.txt
> -	- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
> -mtrr.txt
> -	- how to use x86 Memory Type Range Registers to increase performance
> -pat.txt
> -	- Page Attribute Table intro and API
> -usb-legacy-support.txt
> -	- how to fix/avoid quirks when using emulated PS/2 mouse/keyboard.
> -zero-page.txt
> -	- layout of the first page of memory.
> diff --git a/Documentation/x86/x86_64/00-INDEX b/Documentation/x86/x86_64/00-INDEX
> deleted file mode 100644
> index 92fc20a..0000000
> --- a/Documentation/x86/x86_64/00-INDEX
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -00-INDEX
> -	- This file
> -boot-options.txt
> -	- AMD64-specific boot options.
> -cpu-hotplug-spec
> -	- Firmware support for CPU hotplug under Linux/x86-64
> -fake-numa-for-cpusets
> -	- Using numa=fake and CPUSets for Resource Management
> -kernel-stacks
> -	- Context-specific per-processor interrupt stacks.
> -machinecheck
> -	- Configurable sysfs parameters for the x86-64 machine check code.
> -mm.txt
> -	- Memory layout of x86-64 (4 level page tables, 46 bits physical).
> -uefi.txt
> -	- Booting Linux via Unified Extensible Firmware Interface.
> diff --git a/README b/README
> index 2c927cc..669ac7c 100644
> --- a/README
> +++ b/README
> @@ -12,7 +12,6 @@ In order to build the documentation, use ``make htmldocs`` or
> 
>  There are various text files in the Documentation/ subdirectory,
>  several of them using the Restructured Text markup notation.
> -See Documentation/00-INDEX for a list of what is contained in each file.
> 
>  Please read the Documentation/process/changes.rst file, as it contains the
>  requirements for building and running the kernel, and information about
> diff --git a/scripts/check_00index.sh b/scripts/check_00index.sh
> deleted file mode 100755
> index aa47f592..0000000
> --- a/scripts/check_00index.sh
> +++ /dev/null
> @@ -1,67 +0,0 @@
> -#!/bin/bash
> -# SPDX-License-Identifier: GPL-2.0
> -
> -cd Documentation/
> -
> -# Check entries that should be removed
> -
> -obsolete=""
> -for i in $(tail -n +12 00-INDEX |grep -E '^[a-zA-Z0-9]+'); do
> -	if [ ! -e $i ]; then
> -		obsolete="$obsolete $i"
> -	fi
> -done
> -
> -# Check directory entries that should be added
> -search=""
> -dir=""
> -for i in $(find . -maxdepth 1 -type d); do
> -	if [ "$i" != "." ]; then
> -		new=$(echo $i|perl -ne 's,./(.*),$1/,; print $_')
> -		search="$search $new"
> -	fi
> -done
> -
> -for i in $search; do
> -	if [ "$(grep -P "^$i" 00-INDEX)" == "" ]; then
> -		dir="$dir $i"
> -	fi
> -done
> -
> -# Check file entries that should be added
> -search=""
> -file=""
> -for i in $(find . -maxdepth 1 -type f); do
> -	if [ "$i" != "./.gitignore" ]; then
> -		new=$(echo $i|perl -ne 's,./(.*),$1,; print $_')
> -		search="$search $new"
> -	fi
> -done
> -
> -for i in $search; do
> -	if [ "$(grep -P "^$i\$" 00-INDEX)" == "" ]; then
> -		file="$file $i"
> -	fi
> -done
> -
> -# Output its findings
> -
> -echo -e "Documentation/00-INDEX check results:\n"
> -
> -if [ "$obsolete" != "" ]; then
> -	echo -e "- Should remove those entries:\n\t$obsolete\n"
> -else
> -	echo -e "- No obsolete entries\n"
> -fi
> -
> -if [ "$dir" != "" ]; then
> -	echo -e "- Should document those directories:\n\t$dir\n"
> -else
> -	echo -e "- No new directories to add\n"
> -fi
> -
> -if [ "$file" != "" ]; then
> -	echo -e "- Should document those files:\n\t$file"
> -else
> -	echo "- No new files to add"
> -fi
> -- 
> 2.7.4
> 

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox