[RFC/PATCH 4/8] LPDDR QINFO records definitions

David Woodhouse dwmw2 at infradead.org
Tue Oct 14 06:14:13 EDT 2008


On Wed, 2008-10-08 at 22:29 +0100, Alexey Korolev wrote:
> 
> --- /dev/null
> +++ b/include/linux/mtd/qinfo.h
> @@ -0,0 +1,91 @@
> +#include <linux/mtd/map.h>
> +#include <linux/wait.h>
> +#include <linux/spinlock.h>
> +#include <linux/delay.h>
> +#include <linux/mtd/mtd.h>
> +#include <linux/mtd/flashchip.h>
> +#include <linux/mtd/partitions.h>
> +
> +#ifndef __LINUX_MTD_QINFO_H
> +#define __LINUX_MTD_QINFO_H

GCC does magic optimisations to avoid looking at include files for a
second time -- but only if your include guard is around the _whole_
file, iirc. So it's best to move those #includes down below the 
#ifndef __LINUX_MTD_QINFO_H

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation




More information about the linux-mtd mailing list