umbim: fix compilation with GCC 10
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 18 Aug 2021 17:27:40 +0000 (20:27 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 18 Aug 2021 17:33:25 +0000 (20:33 +0300)
commitde5623104baee6e0c13c92f05c15bf4b4145c0b1
tree5ff625d7edd2fb5b838053f3c9805b2061bf5a28
parent184b707ddaa0acee84d02e0ffe599cb8b67782bd
umbim: fix compilation with GCC 10

When building umbim with GCC 10, a bunch of these errors appear:

cli.c: In function 'mbim_device_caps_response':
cli.c:55:29: error: taking address of packed member of 'struct mbim_basic_connect_device_caps_r' may result in an unaligned pointer value [-Werror=address-of-packed-member]
   55 |  deviceid = mbim_get_string(&caps->deviceid, buffer);
      |                             ^~~~~~~~~~~~~~~

Fix them by disabling padding between fields of struct mbim_string.

Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
mbim-type.h