1. 25 8月, 2008 3 次提交
    • D
      libfdt: Increase namespace-pollution paranoia · fc7758ee
      David Gibson 提交于
      libfdt is supposed to easy to embed in projects all and sundry.
      Often, it won't be practical to separate the embedded libfdt's
      namespace from that of the surrounding project.  Which means there can
      be namespace conflicts between even libfdt's internal/static functions
      and functions or macros coming from the surrounding project's headers
      via libfdt_env.h.
      
      This patch, therefore, renames a bunch of libfdt internal functions
      and macros and makes a few other chances to reduce the chances of
      namespace collisions with embedding projects.  Specifically:
      	- Internal functions (even static ones) are now named _fdt_*()
      
      	- The type and (static) global for the error table in
                fdt_strerror() gain an fdt_ prefix
      
      	- The unused macro PALIGN is removed
      
      	- The memeq and streq macros are removed and open-coded in the
                users (they were only used once each)
      
      	- Other macros gain an FDT_ prefix
      
      	- To save some of the bulk from the previous change, an
                FDT_TAGALIGN() macro is introduced, where FDT_TAGALIGN(x) ==
                FDT_ALIGN(x, FDT_TAGSIZE)
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      fc7758ee
    • D
      dtc: Enable and fix -Wcast-qual warnings · c6683026
      David Gibson 提交于
      Enabling -Wcast-qual warnings in dtc shows up a number of places where
      we are incorrectly discarding a const qualification.  There are also
      some places where we are intentionally discarding the 'const', and we
      need an ugly cast through uintptr_t to suppress the warning.  However,
      most of these are pretty well isolated with the *_w() functions.  So
      in the interests of maximum safety with const qualifications, this
      patch enables the warnings and fixes the existing complaints.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NGerald Van Baren <vanbaren@cideas.com>
      c6683026
    • D
      dtc: Enable and fix -Wpointer-arith warnings · ef4e8ce1
      David Gibson 提交于
      This patch turns on the -Wpointer-arith option in the dtc Makefile,
      and fixes the resulting warnings due to using (void *) in pointer
      arithmetic.  While convenient, pointer arithmetic on void * is not
      portable, so it's better that we avoid it, particularly in libfdt.
      
      Also add necessary definition of uintptr_t needed by David Gibson's
      changeset "dtc: Enable and fix -Wpointer-arith warnings" (the definition
      comes from stdint.h, which u-boot doesn't have). -- gvb
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NGerald Van Baren <vanbaren@cideas.com>
      ef4e8ce1
  2. 23 8月, 2008 1 次提交
  3. 22 8月, 2008 4 次提交
  4. 21 8月, 2008 19 次提交
  5. 20 8月, 2008 9 次提交
  6. 19 8月, 2008 4 次提交