OSDN Git Service

fw_cfg: fix sparse warnings around FW_CFG_FILE_DIR read
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 28 Feb 2018 15:06:08 +0000 (16:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 01:17:39 +0000 (03:17 +0200)
commit3d47a34ba6761a64b78a8b89f6bbe93b4e8455f1
treedca063229a600f43262cbeabf8bf75a47ee5bf39
parentf295c8dba71841f007e2154143109d1517670a08
fw_cfg: fix sparse warnings around FW_CFG_FILE_DIR read

Use struct fw_cfg_files to read the directory size, fixing the sparse
warnings:

drivers/firmware/qemu_fw_cfg.c:485:17: warning: cast to restricted __be32

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/firmware/qemu_fw_cfg.c