[Skiboot] [PATCH v2] Fix FTBFS with -Werror=format-overflow

Stewart Smith stewart at linux.vnet.ibm.com
Fri Feb 9 16:12:22 AEDT 2018


Frédéric Bonnard <frediz at linux.vnet.ibm.com> writes:
> i2c.c fails to compile with gcc7 and -Werror=format-overflow used in
> Debian Unstable and Ubuntu 18.04 :
>
> i2c.c: In function ‘i2c_init’:
> i2c.c:211:15: error: ‘%s’ directive writing up to 255 bytes into a
> region of size 236 [-Werror=format-overflow=]
>
> dpath is supposed to store an entire path.
>
> Signed-off-by: Frédéric Bonnard <frediz at linux.vnet.ibm.com>
> ---
>  external/opal-prd/i2c.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks! Merged to master as of b3e14c46ecb069b3076ca052e7180048dd863e5c

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list