summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb24251)
raw | patch | inline | side by side (parent: eb24251)
author | Wendy Liang <jliang@xilinx.com> | |
Fri, 8 Jan 2016 21:51:17 +0000 (13:51 -0800) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Tue, 9 Feb 2016 19:54:53 +0000 (11:54 -0800) |
In the resource table, it redefine __section to allow
tokens in the input arguments. However, using the
same name will generate compilation warnning.
Rename the redefined __section.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
tokens in the input arguments. However, using the
same name will generate compilation warnning.
Rename the redefined __section.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
apps/system/generic/machine/zynq7/rsc_table.c | patch | blob | history | |
apps/system/generic/machine/zynqmp_r5/rsc_table.c | patch | blob | history |
diff --git a/apps/system/generic/machine/zynq7/rsc_table.c b/apps/system/generic/machine/zynq7/rsc_table.c
index ecbda4fd4f3db7c0f1ca9ce9cfb46c5e596c0565..fff7732164ed10ffe95cf3e450f16b1c8c4c8263 100644 (file)
#include "rsc_table.h"
/* Place resource table in special ELF section */
-#define __section(S) __attribute__((__section__(#S)))
-#define __resource __section(.resource_table)
+/* Redefine __section for section name with token */
+#define __section_t(S) __attribute__((__section__(#S)))
+#define __resource __section_t(.resource_table)
#define RPMSG_IPU_C0_FEATURES 1
diff --git a/apps/system/generic/machine/zynqmp_r5/rsc_table.c b/apps/system/generic/machine/zynqmp_r5/rsc_table.c
index 3c0164f1d13a7a2628e12bf1aa4b6542fe3df0c5..520cf54cbfb1a9e5e853ad433b52011762399c02 100644 (file)
#include "rsc_table.h"
/* Place resource table in special ELF section */
-#define __section(S) __attribute__((__section__(#S)))
-#define __resource __section(.resource_table)
+#define __section_t(S) __attribute__((__section__(#S)))
+#define __resource __section_t(.resource_table)
#define RPMSG_IPU_C0_FEATURES 1