Patch to Add to Newlib 2.1.0 in RSB

Joel Sherrill joel.sherrill at OARcorp.com
Mon May 5 14:45:30 UTC 2014


Hi

The current tree gets warnings  and this needs to be added to the
newlib 2.1.0 patch set. It can be retrieved from CVS as:

cvs diff -u -r 1.4 newlib/libc/sys/rtems/sys/cpuset.h

2014-04-14  Sebastian Huber  <sebastian.huber at embedded-brains.de>

        * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
        (CPU_SET): Likewise.


Index: newlib/libc/sys/rtems/sys/cpuset.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/sys/cpuset.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- newlib/libc/sys/rtems/sys/cpuset.h    3 Dec 2013 16:07:33 -0000    1.4
+++ newlib/libc/sys/rtems/sys/cpuset.h    14 Apr 2014 14:08:26 -0000    1.5
@@ -153,14 +153,14 @@
   CPU_CLR_S(cpu, sizeof(*set), set);
 }
 
-static __inline int CPU_ISSET_S(int cpu, size_t setsize, cpu_set_t *set)
+static __inline int CPU_ISSET_S(int cpu, size_t setsize, const
cpu_set_t *set)
 {
   const cpu_set_word_t *w = &set->__bits[0];
 
   return ((w[__cpuset_index(cpu)] & __cpuset_mask(cpu)) != 0);
 }
 
-static __inline int CPU_ISSET(int cpu, cpu_set_t *set)
+static __inline int CPU_ISSET(int cpu, const cpu_set_t *set)
 {
   return CPU_ISSET_S(cpu, sizeof(*set), set);
 }

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list