[flashrom] [patch] Include "flash.h" and <inttypes.h> in chipdrivers.h

David Hendricks dhendrix at google.com
Wed Dec 15 23:07:31 CET 2010


oops -- forgot to attach the patch. Since it's tiny, I'll just post it
in-line:

Index: chipdrivers.h
===================================================================
--- chipdrivers.h       (revision 1247)
+++ chipdrivers.h       (working copy)
@@ -25,6 +25,10 @@
 #ifndef __CHIPDRIVERS_H__
 #define __CHIPDRIVERS_H__ 1

+#include <inttypes.h>
+
+#include "flash.h"     /* for chipaddr and flashchip */
+
 /* spi.c, should probably be in spi_chip.c */
 int probe_spi_rdid(struct flashchip *flash);
 int probe_spi_rdid4(struct flashchip *flash);

Signed-off-by: David Hendricks <dhendrix at google.com>

On Wed, Dec 15, 2010 at 2:05 PM, David Hendricks <dhendrix at google.com>wrote:

> This patch is intended to avoid compilation issues caused by the ordering
> of #includes in source files that use chipdrivers.h.
>
> Signed-off-by: David Hendricks <dhendrix at google.com>
>
> --
> David Hendricks (dhendrix)
> Systems Software Engineer, Google Inc.
>



-- 
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20101215/5bd1c249/attachment.html>


More information about the flashrom mailing list