From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 0B96F383D81F; Fri, 1 Jul 2022 11:57:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B96F383D81F Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RTEMS: _KERNEL tweak for X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 54930ae7d7c1a0eaa18e7fbf8b2ae6398a0f5698 X-Git-Newrev: 27fd806cd7fad2f1af57acfb66db0bc41338562e Message-Id: <20220701115713.0B96F383D81F@sourceware.org> Date: Fri, 1 Jul 2022 11:57:13 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2022 11:57:13 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D27fd806cd7f= ad2f1af57acfb66db0bc41338562e commit 27fd806cd7fad2f1af57acfb66db0bc41338562e Author: Sebastian Huber Date: Fri Jul 1 07:25:32 2022 +0200 RTEMS: _KERNEL tweak for =20 If _KERNEL is defined, then do not delcare CPU_ALLOC() and CPU_FREE() s= ince __cpuset_alloc() and __cpuset_free() are not declared as well. Diff: --- newlib/libc/sys/rtems/include/sys/cpuset.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/sys/rtems/include/sys/cpuset.h b/newlib/libc/sys/r= tems/include/sys/cpuset.h index 09278242f..8b2918cbc 100644 --- a/newlib/libc/sys/rtems/include/sys/cpuset.h +++ b/newlib/libc/sys/rtems/include/sys/cpuset.h @@ -75,6 +75,7 @@ typedef cpuset_t cpu_set_t; =20 __BEGIN_DECLS =20 +#ifndef _KERNEL static __inline cpu_set_t *CPU_ALLOC(int num_cpus) { return __cpuset_alloc(num_cpus); @@ -84,6 +85,7 @@ static __inline void CPU_FREE(cpu_set_t *set) { __cpuset_free(set); } +#endif =20 static __inline void CPU_ZERO_S(size_t setsize, cpu_set_t *set) {