[U-Boot] unused-const-variable warnings in FSL I2C driver

Hi all,
When compiling latest u-boot with gcc 6.3 for a T1024RDB system, I get a 'unused-const-variable' warning in the FSL I2C driver. Affected variable is fsl_i2c_speed_map.
I guess this warning can be fixed with the patch applied, but I'm not sure. What do you think?
Best regards, Thomas

On Thu, Feb 09, 2017 at 10:42:52AM +0000, Thomas Schaefer wrote:
Hi all,
When compiling latest u-boot with gcc 6.3 for a T1024RDB system, I get a 'unused-const-variable' warning in the FSL I2C driver. Affected variable is fsl_i2c_speed_map.
I guess this warning can be fixed with the patch applied, but I'm not sure. What do you think?
Close, we can just move the __M68K__ test to cover the entire definition instead and that ends up being slightly cleaner looking. Thanks for the prod!
participants (2)
-
Thomas Schaefer
-
Tom Rini