public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RTEMS: _KERNEL tweak for <sys/cpuset.h> Date: Fri, 1 Jul 2022 11:57:13 +0000 (GMT) [thread overview] Message-ID: <20220701115713.0B96F383D81F@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=27fd806cd7fad2f1af57acfb66db0bc41338562e commit 27fd806cd7fad2f1af57acfb66db0bc41338562e Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Fri Jul 1 07:25:32 2022 +0200 RTEMS: _KERNEL tweak for <sys/cpuset.h> If _KERNEL is defined, then do not delcare CPU_ALLOC() and CPU_FREE() since __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/rtems/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; __BEGIN_DECLS +#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 static __inline void CPU_ZERO_S(size_t setsize, cpu_set_t *set) {
reply other threads:[~2022-07-01 11:57 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220701115713.0B96F383D81F@sourceware.org \ --to=sh@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).