]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit256476d2437bdab7fcd86953a0e3080fe442696d
treedca063229a600f43262cbeabf8bf75a47ee5bf39
parentd353067ccc7638b2372dc7cbee634f20a5f5e2a3
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