Thread (3 messages) 3 messages, 3 authors, 2021-09-20

Re: [PATCH] agp: define proper stubs for empty helpers

From: Sam Ravnborg <hidden>
Date: 2021-09-20 16:17:47
Also in: dri-devel

On Mon, Sep 20, 2021 at 02:17:19PM +0200, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

The empty unmap_page_from_agp() macro causes a warning when
building with 'make W=1' on a couple of architectures:

drivers/char/agp/generic.c: In function 'agp_generic_destroy_page':
drivers/char/agp/generic.c:1265:28: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 1265 |   unmap_page_from_agp(page);

Change the definitions to a 'do { } while (0)' construct to
make these more reliable.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Looks good.
Acked-by: Sam Ravnborg <redacted>

	Sam
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help