From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 05 Sep 2011 13:35:50 +0200 Subject: [U-Boot] [PATCH] omap3: beagle: Fix build warning In-Reply-To: <1315218353-18173-1-git-send-email-premi@ti.com> References: <1315218353-18173-1-git-send-email-premi@ti.com> Message-ID: <4E64B416.40708@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Sanjeev, Le 05/09/2011 12:25, Sanjeev Premi a ?crit : > This patch fixes the warning dure to recent changes to the board > configuration: > cmd_i2c.o cmd_i2c.c -c > cmd_i2c.c:109:1: warning: missing braces around initializer > cmd_i2c.c:109:1: warning: (near initialization for 'i2c_no_probes[0]') > > Signed-off-by: Sanjeev Premi > Cc: Jason Kridner > --- > > Patch was compile tested against the latest u-boot-arm.git at: > 58c583b : net: Check network device driver name > > include/configs/omap3_beagle.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h > index 18c6deb..a891246 100644 > --- a/include/configs/omap3_beagle.h > +++ b/include/configs/omap3_beagle.h > @@ -118,7 +118,7 @@ > #define CONFIG_I2C_MULTI_BUS 1 > > /* Probe all devices */ > -#define CONFIG_SYS_I2C_NOPROBES {0x0, 0x0} > +#define CONFIG_SYS_I2C_NOPROBES {{0x0, 0x0}} > > /* USB */ > #define CONFIG_MUSB_UDC 1 Won't all board configs which use CONFIG_SYS_I2C_NOPROBES suffer from the same bug? I would hate to see an endless trickle of individual board config patches, and would much prefer a single patch to fix all boards in one go if you are willing to do it -- yes, it would touch boards that you cannot even test, but I'd say the risk is next to zero. Wolfgang, Heiko, your opinion? Amicalement, -- Albert.