24 Jun, 2011

1 commit

  • checkpatch.pl warns about using __attribute__((packed)) in kernel
    headers: "__packed is preferred over __attribute__((packed))". If one
    follows that advice it could cause problems in the exported header
    files, because the outside world doesn't know about this shortcut.

    For example busybox will fail to compile:
    CC miscutils/ubi_attach_detach.o
    In file included from miscutils/ubi_attach_detach.c:27:0:
    /usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
    /usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
    ...

    Fix the problem by substituting __packed with __attribute__((packed)) in
    the header_install.pl script.

    Cc: Artem Bityutskiy
    CC: Joe Perches
    Signed-off-by: Markus Trippelsdorf
    Signed-off-by: Michal Marek

    Markus Trippelsdorf
     

14 Dec, 2010

1 commit


08 Mar, 2010

1 commit


12 Oct, 2009

1 commit

  • User applications frequently hit problems when they try to use
    the kernel headers directly, rather than the exported headers.

    This adds an explicit warning for this case, and points to
    a URL holding an explanation of why this is wrong and what
    to do about it.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Sam Ravnborg

    Arnd Bergmann
     

03 Jan, 2009

1 commit


30 Oct, 2008

1 commit

  • Fix headers_install.pl and headers_check.pl to be compatible with versions
    of Perl less than 5.6.0. It has been tested with Perl 5.005_03 and 5.8.8.
    I realize this may not be an issue for most people, but there will still
    be some that hit it, I imagine. There are three basic issues:

    1. Prior to 5.6.0 open() only used 2 arguments, and the versions of
    the scripts in 2.6.27.1 use 3.
    2. 5.6.0 also introduced the ability to use uninitialized scalar
    variables as file handles, which the current scripts make use of.
    3. Lastly, 5.6.0 also introduced the pragma 'use warnings'. We can use
    the -w switch and be backwards compatible.

    Signed-off-by: Jeremy Huntwork
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Jeremy Huntwork
     

26 Jul, 2008

2 commits

  • We see some header files that are selected dependent on
    the actual architecture so force a reinstallation
    of all header files when the arch changes.
    This slows down "make headers_check_all" but then
    we better reflect reality.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Move the core functionality of headers_install
    and headers_check to two small perl scripts.
    The makefile is adapted to use the perl scrip and
    changed to operate on all files in a directory.
    So if one file is changed then all files in the
    directory is processed.

    perl were chosen for the helper scripts because this
    is pure text processing which perl is good at and
    especially the headers_check.pl script are expected to
    see changes / new checks implmented.

    The speed is ~300% faster on this box.
    And the output generated to the screen is now down to
    two lines per directory (one for install, one for check)
    so it is easier to scroll back after a kernel build.

    The perl scripts has been brought to sanity by patient
    feedback from: Vegard Nossum

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg