From: Holger Brunck <holger.brunck@keymile.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 04/15] km82xx, km83xx: move ethernet_present() from common to cpu specific
Date: Fri, 18 Jan 2013 09:07:32 +0100 [thread overview]
Message-ID: <50F902C4.6010505@keymile.com> (raw)
In-Reply-To: <20130117182317.523cfb4c958fd3de664977d4@freescale.com>
On 01/18/2013 01:23 AM, Kim Phillips wrote:
> On Thu, 17 Jan 2013 13:47:50 +0100
> Holger Brunck <holger.brunck@keymile.com> wrote:
>
>> +int piggy_present(void)
>> +{
>> + struct km_bec_fpga *base =
>> + (struct km_bec_fpga *)CONFIG_SYS_KMBEC_FPGA_BASE;
>> +
>> + return in_8(&base->bprth) & PIGGY_PRESENT;
>> +}
>
> this change produces two new sparse warnings:
>
> km83xx.c:137:22: warning: incorrect type in argument 1 (different address spaces)
> km83xx.c:137:22: expected unsigned char const volatile [noderef] <asn:2>*addr
> km83xx.c:137:22: got unsigned char *<noident>
> km83xx.c:132:5: warning: symbol 'piggy_present' was not declared. Should it be static?
>
> so make the function static, and add __iomem annotation to the
> assignment of 'base'.
>
ok will do. Just out of curiosity which compiler throws these warnings? I use
powerpc-gcc (GCC) 4.7.2 and don't see them.
Anyway I send a v2 for this patch.
Regards
Holger
next prev parent reply other threads:[~2013-01-18 8:07 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 12:47 [U-Boot] [PATCH 00/15] updates for km83xx boards Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 01/15] km/common: remove unneeded ifdefs for I2C Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 02/15] km/common/ivm: remove obsolete code Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 03/15] km/common/ivm: remove CONFIG_SYS_I2C_IVM_BUS related code Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 04/15] km82xx, km83xx: move ethernet_present() from common to cpu specific Holger Brunck
2013-01-18 0:23 ` Kim Phillips
2013-01-18 8:07 ` Holger Brunck [this message]
2013-01-18 21:09 ` Kim Phillips
2013-01-17 12:47 ` [U-Boot] [PATCH 05/15] powerpc/83xx/km: add MV88E6122 switch support for kmvect1 Holger Brunck
2013-01-18 0:44 ` Kim Phillips
2013-01-18 9:14 ` Holger Brunck
2013-01-18 21:12 ` Kim Phillips
2013-01-21 9:45 ` Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 06/15] powerpc/83xx: use ppc_6xx as arch variable " Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 07/15] km/common: introduce $uimage variable Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 08/15] km/scripts: replace hardcoded uImage Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 09/15] kmeter1_nand: allow usage of NAND_ECC_SOFT_BCH Holger Brunck
2013-01-17 16:00 ` Scott Wood
2013-01-17 12:47 ` [U-Boot] [PATCH 10/15] powerpc/83xx: use NAND_ECC_BCH for kmcoge5ne Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 11/15] km/common: add eccmode to kernel commandline Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 12/15] powerpc/83xx/km: cleanup tuxx1 support Holger Brunck
2013-01-17 12:47 ` [U-Boot] [PATCH 13/15] powerpc/83xx/km: add support for kmopti2 board Holger Brunck
2013-01-17 12:48 ` [U-Boot] [PATCH 14/15] poweprc/83xx/km: remove uneeded CONFIG_MISC_INIT_R Holger Brunck
2013-01-17 12:48 ` [U-Boot] [PATCH 15/15] powerpc/83xx/km: drop uneeded dtt_bus environment var Holger Brunck
2013-01-17 14:30 ` [U-Boot] [PATCH 00/15] updates for km83xx boards Prafulla Wadaskar
2013-01-17 14:35 ` Holger Brunck
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=50F902C4.6010505@keymile.com \
--to=holger.brunck@keymile.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox