LKML Archive on
help / color / mirror / Atom feed
From: Randy Dunlap <>
Cc: Randy Dunlap <>,
	Richard Henderson <>,
	Ivan Kokshaysky <>,
	Matt Turner <>,,
	Andrew Morton <>,
	David Airlie <>
Subject: [PATCH] alpha: agp: make empty macros use do-while-0 style
Date: Sun,  8 Aug 2021 20:08:22 -0700	[thread overview]
Message-ID: <> (raw)

Copy these macros from ia64/include/asm/agp.h to avoid the
"empty-body" in 'if' statment warning.

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

Signed-off-by: Randy Dunlap <>
Cc: Richard Henderson <>
Cc: Ivan Kokshaysky <>
Cc: Matt Turner <>
Cc: Andrew Morton <>
Cc: David Airlie <>
 arch/alpha/include/asm/agp.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20210806.orig/arch/alpha/include/asm/agp.h
+++ linux-next-20210806/arch/alpha/include/asm/agp.h
@@ -6,8 +6,8 @@
 /* dummy for now */
-#define map_page_into_agp(page) 
-#define unmap_page_from_agp(page) 
+#define map_page_into_agp(page)		do { } while (0)
+#define unmap_page_from_agp(page)	do { } while (0)
 #define flush_agp_cache() mb()
 /* GATT allocation. Returns/accepts GATT kernel virtual address. */

                 reply	other threads:[~2021-08-09  3:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] alpha: agp: make empty macros use do-while-0 style' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).