From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 27/82] x86: i2c: Fix cast of address to 32-bit value
Date: Mon, 26 Sep 2016 06:33:33 +0200 [thread overview]
Message-ID: <57E8A51D.7010107@denx.de> (raw)
In-Reply-To: <1474860866-16406-28-git-send-email-sjg@chromium.org>
Hello Simon,
Am 26.09.2016 um 05:33 schrieb Simon Glass:
> This gives a build warning on 64-bit x86. Fix it.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> drivers/i2c/intel_i2c.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Acked-by: Heiko Schocher <hs@denx.de>
bye,
Heiko
>
> diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c
> index a0182dc..550a728 100644
> --- a/drivers/i2c/intel_i2c.c
> +++ b/drivers/i2c/intel_i2c.c
> @@ -248,11 +248,11 @@ static int intel_i2c_set_bus_speed(struct udevice *bus, unsigned int speed)
> static int intel_i2c_probe(struct udevice *dev)
> {
> struct intel_i2c *priv = dev_get_priv(dev);
> - u32 base;
> + ulong base;
>
> /* Save base address from PCI BAR */
> - priv->base = (u32)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_4,
> - PCI_REGION_IO);
> + priv->base = (ulong)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_4,
> + PCI_REGION_IO);
> base = priv->base;
>
> /* Set SMBus enable. */
>
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2016-09-26 4:33 UTC|newest]
Thread overview: 135+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-26 3:33 [U-Boot] [PATCH 00/82] x86: Add initial support for 64-bit U-Boot Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 01/82] WIP: x86: Fix up types in smbios code Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 02/82] Add _image_binary_end section declaration Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-10-11 3:41 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 03/82] bios_emulator: Fix cast for 64-bit compilation Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-10-11 3:41 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 04/82] board_f: Drop the extra fdtdec_prepare_fdt() Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 05/82] console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-10-17 22:17 ` Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 06/82] elf: Add the Elf64_Rela type Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 07/82] mmc: Fix cast for 64-bit compilation Simon Glass
2016-10-10 6:37 ` Jaehoon Chung
2016-10-10 6:56 ` Bin Meng
2016-10-10 6:56 ` Bin Meng
2016-10-10 23:31 ` Jaehoon Chung
2016-09-26 3:33 ` [U-Boot] [PATCH 08/82] rtc: Use CONFIG_X86 instead of __I386__ Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 09/82] spl: spi: Add a debug message if loading fails Simon Glass
2016-10-11 3:15 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 10/82] spl: Makefile: Define SPL_ earlier Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 11/82] spl: Allow CPU drivers to be used in SPL Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 12/82] spl: Allow PCI " Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 13/82] spl: Allow RTC " Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 14/82] spl: Allow timer " Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 15/82] spl: Allow PCH " Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 16/82] spl: Don't create a BSS padding when it is separate Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 17/82] tpm: Tidy up use of size_t Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 18/82] usb: pci: Fix cast for 64-bit compilation Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 19/82] video: Use ulong for video frame buffer address Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 20/82] x86: Allow interrupts to be disabled in 64-bit mode Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 21/82] x86: Correct address casts in cpu code Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 22/82] x86: Correct address casts in interrupt code Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 23/82] x86: Use unsigned long for address in table generation Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 24/82] WIP: x86: Update mpspec to build on 64-bit machines Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 25/82] x86: Add basic support for U-Boot as a 64-bit EFI application Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 26/82] x86: ivybridge: Declare global data where it is used Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 27/82] x86: i2c: Fix cast of address to 32-bit value Simon Glass
2016-09-26 4:33 ` Heiko Schocher [this message]
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 28/82] x86: Don't export interrupt handlers with x86_64 Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 29/82] x86: ivybridge: Add more debugging for failures Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 30/82] x86: ivybridge: Fix types for 64-bit compilation Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 31/82] x86: ivybridge: Fix PCH power setup Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 32/82] x86: ivybridge: Tidy up enable_clock_gating() for 64-bit Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 33/82] x86: dts: Mark serial as needed before relocation Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-10-17 22:17 ` Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 34/82] x86: fsp: Fix cast for 64-bit compilation Simon Glass
2016-10-11 3:16 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 35/82] x86: Drop unused init_helper functions Simon Glass
2016-10-11 3:17 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 36/82] x86: lib: Fix types and casts for 64-bit compilation Simon Glass
2016-10-11 3:17 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 37/82] x86: mrccache: Fix error handling in mrccache_get_region() Simon Glass
2016-10-11 3:17 ` Bin Meng
2016-10-11 3:42 ` Bin Meng
2016-09-26 3:33 ` [U-Boot] [PATCH 38/82] x86: Add Kconfig options to build 64-bit U-Boot Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 39/82] x86: Kconfig: Add location options for 16/32-bit init Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 40/82] x86: Use X86_16BIT_INIT instead of X86_RESET_VECTOR Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 41/82] x86: Use X86_32BIT_INIT " Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 42/82] x86: ivybridge: Allow 32-bit init to move to SPL Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 43/82] x86: Add 64-bit start-up code Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 44/82] x86: board_f: Update init sequence for 64-bit startup Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 45/82] x86: board_r: Set the global data pointer after relocation Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 46/82] x86: Do relocation before clearing BSS Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 47/82] x86: Refactor relocation to prepare for 64-bit Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 48/82] x86: Add support for 64-bit relocation Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 49/82] x86: Tidy up use of size_t in relocation Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 50/82] x86: Add an SPL implementation Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 51/82] x86: Move the i386 code into its own directory Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 52/82] x86: Add cpu code for x86_64 Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 53/82] x86: Support global_data on x86_64 Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 54/82] x86: Fix up CONFIG_X86_64 check Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 55/82] x86: Add a link script for 64-bit x86 Simon Glass
2016-09-26 3:33 ` [U-Boot] [PATCH 56/82] x86: Add a link script for SPL Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 57/82] x86: Add SPL build rules for start-up code Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 58/82] x86: Fix up byteorder.h for x86_64 Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 59/82] x86: Drop flag_is_changable() on x86_64 Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 60/82] x86: Fix up type sizes for 64-bit Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 61/82] x86: Mention the MRC region in the README Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 62/82] x86: ivybridge: Only do graphics init in 32-bit mode Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 63/82] x86: ivybridge: Skipt SATA init in SPL Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 64/82] x86: ivybridge: Provide a dummy SDRAM init for 64-bit Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 65/82] x86: Don't try to run the VGA BIOS in 64-bit mode Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 66/82] x86: Don't build call64 and setjmp on 64-bit Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 67/82] x86: Don't build cpu files which are not supported " Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 68/82] x86: Don't try to boot Linux from SPL Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 69/82] x86: Drop interrupt support in 64-bit mode Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 70/82] x86: Support jumping from SPL to U-Boot Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 71/82] x86: Move pirq_routing_table to global_data Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 72/82] x86: Move turbo_state " Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 73/82] x86: Change irq_already_routed to a local variable Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 74/82] x86: Move call64 to the i386 directory Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 75/82] x86: Move setjmp " Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 76/82] x86: Add a dummy setjmp implementation for x86_64 Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 77/82] x86: link: Add a text base for 64-bit U-Boot Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 78/82] x86: link: Add SPL declarations to the binman image Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 79/82] x86: link: Set up device tree for SPL Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 80/82] x86: link: Add build options " Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 81/82] x86: Update compile/link flags to support 64-bit U-Boot Simon Glass
2016-09-26 3:34 ` [U-Boot] [PATCH 82/82] x86: link: Switch to " Simon Glass
2016-10-11 5:36 ` [U-Boot] [PATCH 00/82] x86: Add initial support for " Bin Meng
2016-10-17 22:17 ` Simon Glass
2016-10-18 1:25 ` Bin Meng
2016-11-25 19:37 ` Simon Glass
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=57E8A51D.7010107@denx.de \
--to=hs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox