From: Tom Rini Date: Fri, 10 Feb 2017 22:21:54 -0500 Subject: [U-Boot] [PATCH] fsl_i2c.c: Fix warning on gcc-6.x In-Reply-To: <589D6587.7070603@denx.de> References: <1486672816-10748-1-git-send-email-trini@konsulko.com> <589D6587.7070603@denx.de> Message-ID: <20170211032154.GK26129@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Feb 10, 2017 at 08:02:31AM +0100, Heiko Schocher wrote: > Hello Tom, > > Am 09.02.2017 um 21:40 schrieb Tom Rini: > >With gcc-6.x we see: > >drivers/i2c/fsl_i2c.c:86:3: warning: ?fsl_i2c_speed_map? defined but not > >used [-Wunused-const-variable=] > > > >The easy way to fix this is that since we only use fsl_i2c_speed_map at > >all on __M68K__ move the existing guards around slightly. > > > >Reported-by: Thomas Schaefer > >Signed-off-by: Tom Rini > >--- > > drivers/i2c/fsl_i2c.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > Thanks! > > Acked-by: Heiko Schocher > > Do you want to pick up this patch directly, or should I send an i2c pull > request? If you have other i2c things to pick up, please pick it up, otherwise assign it to me (or York, we're going to sort out the rest of the big gcc-6.x warnings) and it'll get picked up. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: