[Crash-utility] [PATCH 1/4] sparc64: fix build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following biuld error is observed on sparc64:
  ...
  defs.h:2592:54: error: expected statement before ‘)’ token
   2592 | #define BOOL(ADDR)      LOADER(bool) ((char *)(ADDR)))
        |                                                      ^
  sbitmap.c:425:35: note: in expansion of macro ‘BOOL’
    425 |                 sc->round_robin = BOOL(sbitmap_buf + OFFSET(sbitmap_round_robin));
        |                                   ^~~~
  make[5]: *** [Makefile:395: sbitmap.o] Error 1

The round brackets are not paired, let's fix it.

Signed-off-by: Lianbo Jiang <lijiang@xxxxxxxxxx>
---
 defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defs.h b/defs.h
index 8378cbab2f73..c8b82fe6f469 100644
--- a/defs.h
+++ b/defs.h
@@ -2589,7 +2589,7 @@ DEF_LOADER(bool);
 #define SHORT(ADDR)     LOADER(short) ((char *)(ADDR))
 #define UCHAR(ADDR)     *((unsigned char *)((char *)(ADDR)))
 #define VOID_PTR(ADDR)  ((void *) (LOADER(pointer_t) ((char *)(ADDR))))
-#define BOOL(ADDR)      LOADER(bool) ((char *)(ADDR)))
+#define BOOL(ADDR)      LOADER(bool) ((char *)(ADDR))
 
 #else
 
-- 
2.47.1
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux