[SPARSE PATCH] nios2: add declaration for __builtin_{rd,wr}ctl()

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

 



These 2 are used for the kernel and the lack of a
declaration is causing problems.

So add the declarations for these 2 builtins.
At the same time also add one for '__builtin_custom_ini()'
since this one may also be used in the kernel.

Note: a better fix should be to move this to target-nios2.c

Link: https://lore.kernel.org/lkml/20200609151329.GU23011@xsang-OptiPlex-9020/
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 builtin.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/builtin.c b/builtin.c
index debc22c036ec..5ed17700d422 100644
--- a/builtin.c
+++ b/builtin.c
@@ -613,4 +613,9 @@ void declare_builtins(void)
 	declare_builtin("__builtin_bfin_csync", &void_ctype, 0, NULL);
 	declare_builtin("__builtin_bfin_ssync", &void_ctype, 0, NULL);
 	declare_builtin("__builtin_bfin_norm_fr1x32", &int_ctype, 0, &int_ctype, NULL);
+
+	// Nios-II-specific
+	declare_builtin("__builtin_rdctl", &int_ctype, 0, &int_ctype, NULL);
+	declare_builtin("__builtin_wrctl", &void_ctype, 0, &int_ctype, &int_ctype, NULL);
+	declare_builtin("__builtin_custom_ini", &int_ctype, 0, &int_ctype, NULL);
 }
-- 
2.27.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux