All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Fix breakage after removing common.h from export.h
Date: Fri, 09 Dec 2011 13:34:52 +0100	[thread overview]
Message-ID: <4EE2006C.8070505@denx.de> (raw)
In-Reply-To: <20111209112921.950D11A32833@gemini.denx.de>

On 09/12/2011 12:29, Wolfgang Denk wrote:
> Dear Stefano Babic,
> 
> In message <1323426220-30366-1-git-send-email-sbabic@denx.de> you wrote:
>> commit 0910d0bcb85acdf09b9dfd8ded452367b540a4ad
>> Mike Partington <mparting@lexmark.com>
>> Date:   Wed Oct 27 10:31:09 2010 +0000
>>
>>     Standalone Apps: Standalone apps should need only exports.h.
>>
>>     Modify exports.h to remove its dependencies on other files, thus
>>     enabling standalone apps to require only exports.h from the U-Boot
>>     source tree.  This appears to be the intent based on the following
>>     note: http://lists.denx.de/pipermail/u-boot/2010-January/067174.html
>>
>> breaks all boards - the fact is that common.h is not included anymore
>> by exports.h, and this breaks the build of several file.
> 
> Do we accept such a patch?

Yes - it is already in mainline


> 
> 
>> --- a/include/common.h
>> +++ b/include/common.h
>> @@ -35,6 +35,7 @@ typedef volatile unsigned short vu_short;
>>  typedef volatile unsigned char	vu_char;
>>  
>>  #include <config.h>
>> +#include <assert.h>
>>  #include <asm-offsets.h>
>>  #include <linux/bitops.h>
>>  #include <linux/types.h>
> 
> This appears to be an unrelated change, that should be submitted
> separately.

This seems to be, it is not - or not strictly. The problem rises with
lib/qsort.c, that could be used (am I right ?) by standalone program and
can import only export.h

>  Also, we should then remove the "#include <assert.h>"
> from files that have this and also include common.h (that would be at
> least common/hwconfig.c).

There is not yet an assert.h, I have introduced with this patch. This
avoid to include common.h in qsort.c, if qsort can be used in standalone
programs and importing common.h is not allowed. Of course, if I am
wrong, qsort can include directly common.h.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2011-12-09 12:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 10:23 [U-Boot] [PATCH] Fix breakage after removing common.h from export.h Stefano Babic
2011-12-09 10:27 ` Stefano Babic
2011-12-09 10:33 ` [U-Boot] [PATCH V2] " Stefano Babic
2011-12-09 11:30   ` Wolfgang Denk
2011-12-09 11:29 ` [U-Boot] [PATCH] " Wolfgang Denk
2011-12-09 12:34   ` Stefano Babic [this message]
2011-12-09 12:41     ` Wolfgang Denk
2011-12-09 12:59       ` Stefano Babic
2011-12-09 13:38         ` Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EE2006C.8070505@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.