{"action":"created","issue":{"url":"https://api.github.com/repos/riscv/riscv-linux/issues/39","repository_url":"https://api.github.com/repos/riscv/riscv-linux","labels_url":"https://api.github.com/repos/riscv/riscv-linux/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/riscv/riscv-linux/issues/39/comments","events_url":"https://api.github.com/repos/riscv/riscv-linux/issues/39/events","html_url":"https://github.com/riscv/riscv-linux/issues/39","id":172728558,"number":39,"title":"error: implicit declaration of function 'atomic64_xor'","user":{"login":"harriss95","id":20507589,"avatar_url":"https://avatars.githubusercontent.com/u/20507589?v=3","gravatar_id":"","url":"https://api.github.com/users/harriss95","html_url":"https://github.com/harriss95","followers_url":"https://api.github.com/users/harriss95/followers","following_url":"https://api.github.com/users/harriss95/following{/other_user}","gists_url":"https://api.github.com/users/harriss95/gists{/gist_id}","starred_url":"https://api.github.com/users/harriss95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harriss95/subscriptions","organizations_url":"https://api.github.com/users/harriss95/orgs","repos_url":"https://api.github.com/users/harriss95/repos","events_url":"https://api.github.com/users/harriss95/events{/privacy}","received_events_url":"https://api.github.com/users/harriss95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-23T15:20:53Z","updated_at":"2016-08-23T18:30:52Z","closed_at":null,"body":"> In file included from include/linux/spinlock.h:406:0,\r\n                 from include/linux/seqlock.h:35,\r\n                 from include/linux/time.h:5,\r\n                 from include/uapi/linux/timex.h:56,\r\n                 from include/linux/timex.h:56,\r\n                 from include/linux/sched.h:19,\r\n                 from arch/riscv/kernel/asm-offsets.c:2:\r\ninclude/linux/atomic.h: In function 'atomic_andnot':\r\ninclude/linux/atomic.h:464:2: error: implicit declaration of function 'atomic_and' [-Werror=implicit-function-declaration]\r\n  atomic_and(~i, v);\r\n  ^~~~~~~~~~\r\ninclude/linux/atomic.h: At top level:\r\ninclude/linux/atomic.h:468:33: error: redefinition of 'atomic_clear_mask'\r\n static inline __deprecated void atomic_clear_mask(unsigned int mask, atomic_t *v)\r\n                                 ^~~~~~~~~~~~~~~~~\r\nIn file included from include/linux/atomic.h:4:0,\r\n                 from include/linux/spinlock.h:406,\r\n                 from include/linux/seqlock.h:35,\r\n                 from include/linux/time.h:5,\r\n                 from include/uapi/linux/timex.h:56,\r\n                 from include/linux/timex.h:56,\r\n                 from include/linux/sched.h:19,\r\n                 from arch/riscv/kernel/asm-offsets.c:2:\r\n./arch/riscv/include/asm/atomic.h:224:20: note: previous definition of 'atomic_clear_mask' was here\r\n static inline void atomic_clear_mask(unsigned int mask, atomic_t *v)\r\n                    ^~~~~~~~~~~~~~~~~\r\nIn file included from include/linux/spinlock.h:406:0,\r\n                 from include/linux/seqlock.h:35,\r\n                 from include/linux/time.h:5,\r\n                 from include/uapi/linux/timex.h:56,\r\n                 from include/linux/timex.h:56,\r\n                 from include/linux/sched.h:19,\r\n                 from arch/riscv/kernel/asm-offsets.c:2:\r\ninclude/linux/atomic.h:473:33: error: redefinition of 'atomic_set_mask'\r\n static inline __deprecated void atomic_set_mask(unsigned int mask, atomic_t *v)\r\n                                 ^~~~~~~~~~~~~~~\r\nIn file included from include/linux/atomic.h:4:0,\r\n                 from include/linux/spinlock.h:406,\r\n                 from include/linux/seqlock.h:35,\r\n                 from include/linux/time.h:5,\r\n                 from include/uapi/linux/timex.h:56,\r\n                 from include/linux/timex.h:56,\r\n                 from include/linux/sched.h:19,\r\n                 from arch/riscv/kernel/asm-offsets.c:2:\r\n./arch/riscv/include/asm/atomic.h:239:20: note: previous definition of 'atomic_set_mask' was here\r\n static inline void atomic_set_mask(unsigned int mask, atomic_t *v)\r\n                    ^~~~~~~~~~~~~~~\r\nIn file included from include/linux/spinlock.h:406:0,\r\n                 from include/linux/seqlock.h:35,\r\n                 from include/linux/time.h:5,\r\n                 from include/uapi/linux/timex.h:56,\r\n                 from include/linux/timex.h:56,\r\n                 from include/linux/sched.h:19,\r\n                 from arch/riscv/kernel/asm-offsets.c:2:\r\ninclude/linux/atomic.h: In function 'atomic_set_mask':\r\ninclude/linux/atomic.h:475:2: error: implicit declaration of function 'atomic_or' [-Werror=implicit-function-declaration]\r\n  atomic_or(mask, v);\r\n  ^~~~~~~~~\r\ninclude/linux/atomic.h: In function 'atomic64_andnot':\r\ninclude/linux/atomic.h:589:2: error: implicit declaration of function 'atomic64_and' [-Werror=implicit-function-declaration]\r\n  atomic64_and(~i, v);\r\n  ^~~~~~~~~~~~\r\nIn file included from include/linux/atomic.h:593:0,\r\n                 from include/linux/spinlock.h:406,\r\n                 from include/linux/seqlock.h:35,\r\n                 from include/linux/time.h:5,\r\n                 from include/uapi/linux/timex.h:56,\r\n                 from include/linux/timex.h:56,\r\n                 from include/linux/sched.h:19,\r\n                 from arch/riscv/kernel/asm-offsets.c:2:\r\ninclude/asm-generic/atomic-long.h: In function 'atomic_long_or':\r\ninclude/asm-generic/atomic-long.h:26:28: error: implicit declaration of function 'atomic64_or' [-Werror=implicit-function-declaration]\r\n #define ATOMIC_LONG_PFX(x) atomic64 ## x\r\n                            ^\r\ninclude/asm-generic/atomic-long.h:121:2: note: in expansion of macro 'ATOMIC_LONG_PFX'\r\n  ATOMIC_LONG_PFX(_##op)(i, v);     \\\r\n  ^~~~~~~~~~~~~~~\r\ninclude/asm-generic/atomic-long.h:127:1: note: in expansion of macro 'ATOMIC_LONG_OP'\r\n ATOMIC_LONG_OP(or)\r\n ^~~~~~~~~~~~~~\r\ninclude/asm-generic/atomic-long.h: In function 'atomic_long_xor':\r\ninclude/asm-generic/atomic-long.h:26:28: error: implicit declaration of function 'atomic64_xor' [-Werror=implicit-function-declaration]\r\n #define ATOMIC_LONG_PFX(x) atomic64 ## x\r\n                            ^\r\ninclude/asm-generic/atomic-long.h:121:2: note: in expansion of macro 'ATOMIC_LONG_PFX'\r\n  ATOMIC_LONG_PFX(_##op)(i, v);     \\\r\n  ^~~~~~~~~~~~~~~\r\ninclude/asm-generic/atomic-long.h:128:1: note: in expansion of macro 'ATOMIC_LONG_OP'\r\n ATOMIC_LONG_OP(xor)\r\n ^~~~~~~~~~~~~~\r\ncc1: some warnings being treated as errors\r\nKbuild:80: recipe for target 'arch/riscv/kernel/asm-offsets.s' failed\r\nmake[1]: *** [arch/riscv/kernel/asm-offsets.s] Error 1\r\nMakefile:1006: recipe for target 'prepare0' failed\r\nmake: *** [prepare0] Error 2 \r\n"},"comment":{"url":"https://api.github.com/repos/riscv/riscv-linux/issues/comments/241829484","html_url":"https://github.com/riscv/riscv-linux/issues/39#issuecomment-241829484","issue_url":"https://api.github.com/repos/riscv/riscv-linux/issues/39","id":241829484,"user":{"login":"terpstra","id":1101706,"avatar_url":"https://avatars.githubusercontent.com/u/1101706?v=3","gravatar_id":"","url":"https://api.github.com/users/terpstra","html_url":"https://github.com/terpstra","followers_url":"https://api.github.com/users/terpstra/followers","following_url":"https://api.github.com/users/terpstra/following{/other_user}","gists_url":"https://api.github.com/users/terpstra/gists{/gist_id}","starred_url":"https://api.github.com/users/terpstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terpstra/subscriptions","organizations_url":"https://api.github.com/users/terpstra/orgs","repos_url":"https://api.github.com/users/terpstra/repos","events_url":"https://api.github.com/users/terpstra/events{/privacy}","received_events_url":"https://api.github.com/users/terpstra/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T18:30:51Z","updated_at":"2016-08-23T18:30:51Z","body":"That sounds like you're using the wrong kernel version with the repository.\nWhich branch and which kernel?\n\nOn Tue, Aug 23, 2016 at 8:20 AM, harriss95 <notifications@github.com> wrote:\n\n> In file included from include/linux/spinlock.h:406:0,\n> from include/linux/seqlock.h:35,\n> from include/linux/time.h:5,\n> from include/uapi/linux/timex.h:56,\n> from include/linux/timex.h:56,\n> from include/linux/sched.h:19,\n> from arch/riscv/kernel/asm-offsets.c:2:\n> include/linux/atomic.h: In function 'atomic_andnot':\n> include/linux/atomic.h:464:2: error: implicit declaration of function\n> 'atomic_and' [-Werror=implicit-function-declaration]\n> atomic_and(~i, v);\n> ^~~~~~~~~~\n> include/linux/atomic.h: At top level:\n> include/linux/atomic.h:468:33: error: redefinition of 'atomic_clear_mask'\n> static inline __deprecated void atomic_clear_mask(unsigned int mask,\n> atomic_t\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n>\n> *v) ^~~~~~~~~~~~~~~~~ In file included from include/linux/atomic.h:4:0,\n> from include/linux/spinlock.h:406, from include/linux/seqlock.h:35, from\n> include/linux/time.h:5, from include/uapi/linux/timex.h:56, from\n> include/linux/timex.h:56, from include/linux/sched.h:19, from\n> arch/riscv/kernel/asm-offsets.c:2:\n> ./arch/riscv/include/asm/atomic.h:224:20: note: previous definition of\n> 'atomic_clear_mask' was here static inline void atomic_clear_mask(unsigned\n> int mask, atomic_t *v) ^~~~~~~~~~~~~~~~~ In file included from\n> include/linux/spinlock.h:406:0, from include/linux/seqlock.h:35, from\n> include/linux/time.h:5, from include/uapi/linux/timex.h:56, from\n> include/linux/timex.h:56, from include/linux/sched.h:19, from\n> arch/riscv/kernel/asm-offsets.c:2: include/linux/atomic.h:473:33: error:\n> redefinition of 'atomic_set_mask' static inline __deprecated void\n> atomic_set_mask(unsigned int mask, atomic_t *v) ^~~~~~~~~~~~~~~ In file\n> included from include/linux/atomic.h:4:0, from\n> include/linux/spinlock.h:406, from include/linux/seqlock.h:35, from\n> include/linux/time.h:5, from include/uapi/linux/timex.h:56, from\n> include/linux/timex.h:56, from include/linux/sched.h:19, from\n> arch/riscv/kernel/asm-offsets.c:2:\n> ./arch/riscv/include/asm/atomic.h:239:20: note: previous definition of\n> 'atomic_set_mask' was here static inline void atomic_set_mask(unsigned int\n> mask, atomic_t *v) ^~~~~~~~~~~~~~~ In file included from\n> include/linux/spinlock.h:406:0, from include/linux/seqlock.h:35, from\n> include/linux/time.h:5, from include/uapi/linux/timex.h:56, from\n> include/linux/timex.h:56, from include/linux/sched.h:19, from\n> arch/riscv/kernel/asm-offsets.c:2: include/linux/atomic.h: In function\n> 'atomic_set_mask': include/linux/atomic.h:475:2: error: implicit\n> declaration of function 'atomic_or' [-Werror=implicit-function-declaration]\n> atomic_or(mask, v); ^~~~~~~~~ include/linux/atomic.h: In function\n> 'atomic64_andnot': include/linux/atomic.h:589:2: error: implicit\n> declaration of function 'atomic64_and'\n> [-Werror=implicit-function-declaration] atomic64_and(~i, v); ^~~~~~~~~~~~\n> In file included from include/linux/atomic.h:593:0, from\n> include/linux/spinlock.h:406, from include/linux/seqlock.h:35, from\n> include/linux/time.h:5, from include/uapi/linux/timex.h:56, from\n> include/linux/timex.h:56, from include/linux/sched.h:19, from\n> arch/riscv/kernel/asm-offsets.c:2: include/asm-generic/atomic-long.h: In\n> function 'atomic_long_or': include/asm-generic/atomic-long.h:26:28: error:\n> implicit declaration of function 'atomic64_or'\n> [-Werror=implicit-function-declaration] #define ATOMIC_LONG_PFX(x) atomic64\n> ## x ^ include/asm-generic/atomic-long.h:121:2: note: in expansion of macro\n> 'ATOMIC_LONG_PFX' ATOMIC_LONG_PFX(##op)(i, v); \\ ^~~~~~~~~~~~~~~\n> include/asm-generic/atomic-long.h:127:1: note: in expansion of macro\n> 'ATOMIC_LONG_OP' ATOMIC_LONG_OP(or) ^~~~~~~~~~~~~~\n> include/asm-generic/atomic-long.h: In function 'atomic_long_xor':\n> include/asm-generic/atomic-long.h:26:28: error: implicit declaration of\n> function 'atomic64_xor' [-Werror=implicit-function-declaration] #define\n> ATOMIC_LONG_PFX(x) atomic64 ## x ^ include/asm-generic/atomic-long.h:121:2:\n> note: in expansion of macro 'ATOMIC_LONG_PFX' ATOMIC_LONG_PFX(##op)(i, v);\n> \\ ^~~~~~~~~~~~~~~ include/asm-generic/atomic-long.h:128:1: note: in\n> expansion of macro 'ATOMIC_LONG_OP' ATOMIC_LONG_OP(xor) ^~~~~~~~~~~~~~ cc1:\n> some warnings being treated as errors Kbuild:80: recipe for target\n> 'arch/riscv/kernel/asm-offsets.s' failed make[1]: ***\n> [arch/riscv/kernel/asm-offsets.s] Error 1\n> Makefile:1006: recipe for target 'prepare0' failed\n> make: *** [prepare0] Error 2\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/riscv/riscv-linux/issues/39>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABDPisG-sMpXDd2ggnSl1j1w9PRkmuf0ks5qiw_XgaJpZM4JrDMb>\n> .\n>\n"}}
{"actor":{"display_login":"terpstra"}}