[PATCH 2/12] FS-Cache: Permit multiple inclusion of linux/pagevec.h

From: David Howells (dhowells_at_redhat.com)
Date: 11/14/05

  • Next message: Frank Sorenson: "Re: [PATCH 0/13] Time: Generic Timeofday Subsystem (v B10)"
    Date:	Mon, 14 Nov 2005 21:54:37 GMT
    To: torvalds@osdl.org, akpm@osdl.org
    
    

    The attached patch makes it possible to include linux/pagevec.h multiple times
    without incurring errors due to duplicate definitions.

    Signed-Off-By: David Howells <dhowells@redhat.com>

    ---
    warthog>diffstat -p1 pagevec-hdr-ifndef-2614mm2.diff
     include/linux/pagevec.h |    5 +++++
     1 files changed, 5 insertions(+)
    diff -uNrp linux-2.6.14-mm2/include/linux/pagevec.h linux-2.6.14-mm2-cachefs/include/linux/pagevec.h
    --- linux-2.6.14-mm2/include/linux/pagevec.h	2005-01-04 11:13:55.000000000 +0000
    +++ linux-2.6.14-mm2-cachefs/include/linux/pagevec.h	2005-11-14 16:23:41.000000000 +0000
    @@ -5,6 +5,9 @@
      * pages.  A pagevec is a multipage container which is used for that.
      */
     
    +#ifndef _LINUX_PAGEVEC_H
    +#define _LINUX_PAGEVEC_H
    +
     /* 14 pointers + two long's align the pagevec structure to a power of two */
     #define PAGEVEC_SIZE	14
     
    @@ -83,3 +86,5 @@ static inline void pagevec_lru_add(struc
     	if (pagevec_count(pvec))
     		__pagevec_lru_add(pvec);
     }
    +
    +#endif /* _LINUX_PAGEVEC_H */
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Frank Sorenson: "Re: [PATCH 0/13] Time: Generic Timeofday Subsystem (v B10)"

    Relevant Pages

    • Re: var args in kernel?
      ... As such, you can copy it, pass it multiple times, use ... On some Linux architectures you can, ... Architectures where va_list is a char or void pointer include e.g.: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.15-mm4
      ... Write protecting the kernel read-only data: ... I've seen this multiple times today, it is however fatal as every time it has occurred the box needs a reset. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: var args in kernel?
      ... But the way how GCC (and probably other compilers) ... As such, you can copy it, pass it multiple times, use ... (va_list src; ... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.14 X spinning in the kernel
      ... > sysrq-t output shows nothing. ... > I did this multiple times to collect stacks few times. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] was: [RFC] removal of sync in panic
      ... I've seen this multiple times. ... > I also agree that it seems a sensible patch. ... I have one dumb question. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)