Files
Linux/include/linux
Arnd Bergmann 458025f6c1 vgaarb: avoid -Wempty-body warnings
Building with W=1 shows a few warnings for an empty macro:

drivers/gpu/drm/qxl/qxl_drv.c: In function 'qxl_pci_probe':
drivers/gpu/drm/qxl/qxl_drv.c:131:50: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  131 |                 vga_put(pdev, VGA_RSRC_LEGACY_IO);
      |                                                  ^
drivers/gpu/drm/qxl/qxl_drv.c: In function 'qxl_pci_remove':
drivers/gpu/drm/qxl/qxl_drv.c:159:50: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  159 |                 vga_put(pdev, VGA_RSRC_LEGACY_IO);

Change this to an inline function to make it more robust and avoid
the warning.

Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2021-03-22 15:02:14 +01:00
..
…
…
…
…
2021-02-02 00:16:57 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-26 09:41:03 -08:00
2021-02-17 14:07:48 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-08 12:28:07 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-11 13:24:44 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-01-27 12:27:36 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-26 09:41:03 -08:00
…
…
…
…
…
…
…
2021-02-17 14:12:42 +01:00
…
…
…
2021-02-26 09:41:02 -08:00
…
…
…
…
…
2021-02-26 09:41:03 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-26 09:41:03 -08:00
…
…
…
…
…
…
…
2021-03-13 11:27:30 -08:00
…
…
2021-02-08 12:28:07 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-16 16:11:14 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-02 10:26:12 +01:00
…
…
…
…
…
…
2021-02-17 13:17:49 -08:00
…
…
…
…
…
…
…
…
…
…
2021-02-26 09:40:59 -08:00
…
…
2021-02-03 19:05:50 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-26 09:41:03 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-01-28 00:35:03 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-03-02 17:25:46 -07:00
…
2021-02-20 10:13:32 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-09 12:27:29 -05:00
…
2021-02-13 17:17:53 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-01 13:20:07 -07:00
…
2021-03-22 15:02:14 +01:00
…
…
…
…
2021-02-09 12:15:07 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-08 22:58:55 +01:00
…