OSDN Git Service

fw_cfg: remove inline from fw_cfg_read_blob()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 28 Feb 2018 15:06:09 +0000 (16:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 01:17:39 +0000 (03:17 +0200)
The function is not small and getting bigger.

Let the compiler decide instead. No profiling done, hopefully
unnecessary.

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

index 00ad9b8..0cc71d0 100644 (file)
@@ -77,8 +77,8 @@ static void fw_cfg_sel_endianness(u16 key)
 }
 
 /* read chunk of given fw_cfg blob (caller responsible for sanity-check) */
-static inline void fw_cfg_read_blob(u16 key,
-                                   void *buf, loff_t pos, size_t count)
+static void fw_cfg_read_blob(u16 key,
+                       void *buf, loff_t pos, size_t count)
 {
        u32 glk = -1U;
        acpi_status status;