linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh/next: Fix build fail by asm/system.h in asm/bitops.h
Date: Wed, 28 Mar 2012 04:41:43 +0000	[thread overview]
Message-ID: <4F729687.9030606@renesas.com> (raw)
In-Reply-To: <1331010429-29574-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>

Guennadi Liakhovetski さんは書きました:
> On Fri, 9 Mar 2012, Nobuhiro Iwamatsu wrote:
> 
>> Paul Mundt さんは書きました:
>>> On Tue, Mar 06, 2012 at 02:07:09PM +0900, Nobuhiro Iwamatsu wrote:
>>>> Other files are not done include definitely by asm/system.h made
>>>> include in asm/bitops.h.
>>>> This patch remove asm/system.h from asm/bitops.h.
>>>>
>>> Which defconfig were you using that hit this? asm/system.h is usually
>>> included for a reason, although I can't remember off the top of my head
>>> what's used out of it and on what CPU configuration, but I would be
>>> rather hesitant to yank it out on an N of 1 build test.
>>>
>> Sorry, I checked sh7785lcr and ap325rxa and other.
>> We can confirm this problem in linux-next.
> 
> This breakage is now in the mainline too, please, fix. Paul, if you're 
> concerned about removing asm/system.h, the below diff preserves it in 
> asm/bitops.h, but is much uglier, so, I hope the original patch gets 
> applied.
> 
> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski, Ph.D.
> Freelance Open-Source Software Developer
> http://www.open-technology.de/
> 
> diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h
> index 90fa3e4..53323fc 100644
> --- a/arch/sh/include/asm/bitops.h
> +++ b/arch/sh/include/asm/bitops.h
> @@ -7,7 +7,6 @@
>  #error only <linux/bitops.h> can be included directly
>  #endif
>  
> -#include <asm/system.h>
>  /* For __swab32 */
>  #include <asm/byteorder.h>
>  
> @@ -100,6 +99,8 @@ static inline unsigned long ffz(unsigned long word)
>  #include <asm-generic/bitops/__fls.h>
>  #include <asm-generic/bitops/fls64.h>
>  
> +static unsigned fls_long(unsigned long l);
> +#include <asm/system.h>
>  #endif /* __KERNEL__ */
>  
>  #endif /* __ASM_SH_BITOPS_H */
> 

Tested-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>

  parent reply	other threads:[~2012-03-28  4:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06  5:07 [PATCH] sh/next: Fix build fail by asm/system.h in asm/bitops.h Nobuhiro Iwamatsu
2012-03-07  6:36 ` Paul Mundt
2012-03-09  3:16 ` Nobuhiro Iwamatsu
2012-03-23  8:05 ` Guennadi Liakhovetski
2012-03-28  4:41 ` Nobuhiro Iwamatsu [this message]
2012-03-28  4:42 ` Paul Mundt

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=4F729687.9030606@renesas.com \
    --to=nobuhiro.iwamatsu.yj@renesas.com \
    --cc=linux-sh@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).