[PATCH 3/3] PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 6 14:11:31 UTC 2013


---
 c/src/ada-tests/support/init.c                 |    1 -
 c/src/lib/libbsp/i386/shared/irq/irq.c         |    3 ---
 cpukit/libcsupport/src/__gettod.c              |    2 --
 cpukit/libcsupport/src/error.c                 |    7 -------
 cpukit/libcsupport/src/malloc_p.h              |    1 -
 cpukit/libcsupport/src/mallocfreespace.c       |    1 -
 cpukit/libcsupport/src/mallocgetheapptr.c      |    1 -
 cpukit/libcsupport/src/mallocsetheapptr.c      |    1 -
 cpukit/libcsupport/src/newlibc_reent.c         |    1 -
 cpukit/libcsupport/src/sync.c                  |    6 ------
 cpukit/libfs/src/pipe/fifo.c                   |    6 ------
 cpukit/libmisc/monitor/mon-config.c            |    1 -
 cpukit/libmisc/monitor/mon-driver.c            |    2 --
 cpukit/libmisc/monitor/mon-itask.c             |    1 -
 cpukit/libmisc/monitor/mon-mpci.c              |    1 -
 cpukit/libmisc/monitor/mon-object.c            |    1 -
 cpukit/libmisc/monitor/mon-symbols.c           |    1 -
 cpukit/libmisc/shell/main_wkspaceinfo.c        |    1 -
 cpukit/libnetworking/rtems/rtems_glue.c        |    4 ----
 cpukit/libnetworking/rtems/rtems_malloc_mbuf.c |    4 ----
 testsuites/libtests/malloctest/init.c          |    1 -
 testsuites/psxtests/psxfatal_support/system.h  |    1 -
 testsuites/psxtests/psxsignal05/init.c         |    2 --
 testsuites/psxtests/psxstack01/init.c          |    1 -
 testsuites/psxtests/psxstack02/init.c          |    1 -
 testsuites/sptests/sp40/init.c                 |    2 --
 testsuites/sptests/sp67/init.c                 |    6 ------
 testsuites/sptests/sp75/init.c                 |    1 -
 testsuites/sptests/spfatal_support/system.h    |    1 -
 testsuites/sptests/spintrcritical06/init.c     |    1 -
 testsuites/sptests/spintrcritical08/init.c     |    1 -
 testsuites/sptests/spintrcritical09/init.c     |    1 -
 testsuites/sptests/spintrcritical10/init.c     |    1 -
 testsuites/sptests/spintrcritical16/init.c     |    1 -
 testsuites/sptests/spobjgetnext/init.c         |    1 -
 35 files changed, 0 insertions(+), 68 deletions(-)

diff --git a/c/src/ada-tests/support/init.c b/c/src/ada-tests/support/init.c
index 983e51d..3321f60 100644
--- a/c/src/ada-tests/support/init.c
+++ b/c/src/ada-tests/support/init.c
@@ -3,7 +3,6 @@
  *  On-Line Applications Research Corporation (OAR).
  */
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <bsp.h>
 #include <stdlib.h>
 
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq.c b/c/src/lib/libbsp/i386/shared/irq/irq.c
index ac8ee9a..6d304ad 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq.c
+++ b/c/src/lib/libbsp/i386/shared/irq/irq.c
@@ -10,9 +10,6 @@
  *  http://www.rtems.com/license/LICENSE.
  */
 
-/* so we can see _API_extensions_Run_postswitch */
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
-
 #include <bsp.h>
 #include <bsp/irq.h>
 #include <bsp/irq-generic.h>
diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c
index 7de6a1c..a07497d 100644
--- a/cpukit/libcsupport/src/__gettod.c
+++ b/cpukit/libcsupport/src/__gettod.c
@@ -18,8 +18,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-
 #if defined(RTEMS_NEWLIB)
 #include <sys/time.h>
 #include <errno.h>
diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c
index 9933e14..1a682c0 100644
--- a/cpukit/libcsupport/src/error.c
+++ b/cpukit/libcsupport/src/error.c
@@ -9,14 +9,7 @@
 #include "config.h"
 #endif
 
-/* This is always defined on RTEMS Scheduler Simulator and thus
- * we get a redefined warning if this is not present.
- */
-#ifndef __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-  #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-#endif
 #include <rtems.h>
-
 #include <rtems/error.h>
 #include <rtems/assoc.h>
 #include <rtems/score/sysstate.h>
diff --git a/cpukit/libcsupport/src/malloc_p.h b/cpukit/libcsupport/src/malloc_p.h
index 6bd9a49..e7780ec 100644
--- a/cpukit/libcsupport/src/malloc_p.h
+++ b/cpukit/libcsupport/src/malloc_p.h
@@ -9,7 +9,6 @@
  *  http://www.rtems.com/license/LICENSE.
  */
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/libcsupport.h>
 #include <rtems/score/protectedheap.h>
diff --git a/cpukit/libcsupport/src/mallocfreespace.c b/cpukit/libcsupport/src/mallocfreespace.c
index 2b262ca..44fe7a9 100644
--- a/cpukit/libcsupport/src/mallocfreespace.c
+++ b/cpukit/libcsupport/src/mallocfreespace.c
@@ -18,7 +18,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/libcsupport.h>
 #include <rtems/score/protectedheap.h>
diff --git a/cpukit/libcsupport/src/mallocgetheapptr.c b/cpukit/libcsupport/src/mallocgetheapptr.c
index 7392d67..c40bc75 100644
--- a/cpukit/libcsupport/src/mallocgetheapptr.c
+++ b/cpukit/libcsupport/src/mallocgetheapptr.c
@@ -18,7 +18,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/libcsupport.h>
 #include "malloc_p.h"
diff --git a/cpukit/libcsupport/src/mallocsetheapptr.c b/cpukit/libcsupport/src/mallocsetheapptr.c
index 414918a..d5060b2 100644
--- a/cpukit/libcsupport/src/mallocsetheapptr.c
+++ b/cpukit/libcsupport/src/mallocsetheapptr.c
@@ -18,7 +18,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/libcsupport.h>
 #include "malloc_p.h"
diff --git a/cpukit/libcsupport/src/newlibc_reent.c b/cpukit/libcsupport/src/newlibc_reent.c
index 50fd839..b7ac60a 100644
--- a/cpukit/libcsupport/src/newlibc_reent.c
+++ b/cpukit/libcsupport/src/newlibc_reent.c
@@ -18,7 +18,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 
 #if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/sync.c b/cpukit/libcsupport/src/sync.c
index 6cb6a28..ede594d 100644
--- a/cpukit/libcsupport/src/sync.c
+++ b/cpukit/libcsupport/src/sync.c
@@ -29,12 +29,6 @@ int fdatasync(int);        /* still not always prototyped */
 #include <stdio.h>
 
 #include <rtems.h>
-/*
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-
-#include <rtems/libio_.h>
-#include <rtems/seterr.h>
-*/
 
 /* XXX check standards -- Linux version appears to be void */
 void _fwalk(struct _reent *, void *);
diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c
index e6308f5..e991ecf 100644
--- a/cpukit/libfs/src/pipe/fifo.c
+++ b/cpukit/libfs/src/pipe/fifo.c
@@ -18,10 +18,6 @@
 #include "config.h"
 #endif
 
-#ifdef RTEMS_POSIX_API
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-#endif
-
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
@@ -69,8 +65,6 @@ static rtems_id pipe_semaphore = RTEMS_ID_NONE;
 
 
 #ifdef RTEMS_POSIX_API
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-
 #include <rtems/rtems/barrier.h>
 #include <rtems/score/thread.h>
 
diff --git a/cpukit/libmisc/monitor/mon-config.c b/cpukit/libmisc/monitor/mon-config.c
index d10c14c..00eec9b 100644
--- a/cpukit/libmisc/monitor/mon-config.c
+++ b/cpukit/libmisc/monitor/mon-config.c
@@ -8,7 +8,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/monitor.h>
 
diff --git a/cpukit/libmisc/monitor/mon-driver.c b/cpukit/libmisc/monitor/mon-driver.c
index 7fc520f..70073c6 100644
--- a/cpukit/libmisc/monitor/mon-driver.c
+++ b/cpukit/libmisc/monitor/mon-driver.c
@@ -21,9 +21,7 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
-
 #include <rtems/monitor.h>
 
 #include <stdio.h>
diff --git a/cpukit/libmisc/monitor/mon-itask.c b/cpukit/libmisc/monitor/mon-itask.c
index 8544761..a1cca30 100644
--- a/cpukit/libmisc/monitor/mon-itask.c
+++ b/cpukit/libmisc/monitor/mon-itask.c
@@ -6,7 +6,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/monitor.h>
 
diff --git a/cpukit/libmisc/monitor/mon-mpci.c b/cpukit/libmisc/monitor/mon-mpci.c
index 1ab5974..14e538d 100644
--- a/cpukit/libmisc/monitor/mon-mpci.c
+++ b/cpukit/libmisc/monitor/mon-mpci.c
@@ -8,7 +8,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/monitor.h>
 
diff --git a/cpukit/libmisc/monitor/mon-object.c b/cpukit/libmisc/monitor/mon-object.c
index bac8eee..1e54c22 100644
--- a/cpukit/libmisc/monitor/mon-object.c
+++ b/cpukit/libmisc/monitor/mon-object.c
@@ -17,7 +17,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <rtems/monitor.h>
 #include <rtems/extensionimpl.h>
diff --git a/cpukit/libmisc/monitor/mon-symbols.c b/cpukit/libmisc/monitor/mon-symbols.c
index 0d1f1c9..b434b12 100644
--- a/cpukit/libmisc/monitor/mon-symbols.c
+++ b/cpukit/libmisc/monitor/mon-symbols.c
@@ -18,7 +18,6 @@
 #include <strings.h>
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cpukit/libmisc/shell/main_wkspaceinfo.c b/cpukit/libmisc/shell/main_wkspaceinfo.c
index 7a2f819..0bc0da7 100644
--- a/cpukit/libmisc/shell/main_wkspaceinfo.c
+++ b/cpukit/libmisc/shell/main_wkspaceinfo.c
@@ -9,7 +9,6 @@
  *  http://www.rtems.com/license/LICENSE.
  */
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index e5163ac..8ed17d1 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -4,10 +4,6 @@
 
 #define RTEMS_FAST_MUTEX
 
-#ifdef RTEMS_FAST_MUTEX
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
-#endif
-
 #include <string.h>
 #include <stdarg.h>
 #include <stdio.h>
diff --git a/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c b/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c
index 7d89687..602876a 100644
--- a/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c
+++ b/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c
@@ -4,10 +4,6 @@
 
 #define RTEMS_FAST_MUTEX
 
-#ifdef RTEMS_FAST_MUTEX
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
-#endif
-
 #include <string.h>
 #include <stdarg.h>
 #include <stdio.h>
diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c
index c8f380f..dea4c2b 100644
--- a/testsuites/libtests/malloctest/init.c
+++ b/testsuites/libtests/malloctest/init.c
@@ -25,7 +25,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #define CONFIGURE_INIT
 #include "system.h"
 
diff --git a/testsuites/psxtests/psxfatal_support/system.h b/testsuites/psxtests/psxfatal_support/system.h
index e7ba4b1..cbfe3e7 100644
--- a/testsuites/psxtests/psxfatal_support/system.h
+++ b/testsuites/psxtests/psxfatal_support/system.h
@@ -17,7 +17,6 @@
  *  Some of the fatal error cases require the ability to peek inside RTEMS
  */
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <tmacros.h>
 
diff --git a/testsuites/psxtests/psxsignal05/init.c b/testsuites/psxtests/psxsignal05/init.c
index 3541bec..dbd812c 100644
--- a/testsuites/psxtests/psxsignal05/init.c
+++ b/testsuites/psxtests/psxsignal05/init.c
@@ -11,8 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-
 #define TEST_NAME                "05"
 #define TEST_STRING              "User Signals"
 #define SIGNAL_ONE               SIGUSR1
diff --git a/testsuites/psxtests/psxstack01/init.c b/testsuites/psxtests/psxstack01/init.c
index 71590cf..bfd4d00 100644
--- a/testsuites/psxtests/psxstack01/init.c
+++ b/testsuites/psxtests/psxstack01/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <pmacros.h>
 #include <errno.h>
 #include <pthread.h>
diff --git a/testsuites/psxtests/psxstack02/init.c b/testsuites/psxtests/psxstack02/init.c
index 52cbc6a..d7ae876 100644
--- a/testsuites/psxtests/psxstack02/init.c
+++ b/testsuites/psxtests/psxstack02/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <tmacros.h>
 #include "test_support.h"
 
diff --git a/testsuites/sptests/sp40/init.c b/testsuites/sptests/sp40/init.c
index c16fd58..bc897c5 100644
--- a/testsuites/sptests/sp40/init.c
+++ b/testsuites/sptests/sp40/init.c
@@ -11,8 +11,6 @@
  *  http://www.rtems.com/license/LICENSE.
  */
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
diff --git a/testsuites/sptests/sp67/init.c b/testsuites/sptests/sp67/init.c
index 4b78bba..beccb51 100644
--- a/testsuites/sptests/sp67/init.c
+++ b/testsuites/sptests/sp67/init.c
@@ -25,12 +25,6 @@ rtems_timer_service_routine TIMER_service_routine(
   void     *user_data
 );
 
-/*
- *  We have to extern this rather than use __RTEMS_VIOLATE_KERNEL_VISIBILITY__
- *  because this variable isn't actually in any .h.
- */
-extern Watchdog_Interval _Timer_Server_ticks_last_time;
-
 volatile bool _timer_passage_1 = FALSE;
 volatile bool _timer_passage_2 = FALSE;
 
diff --git a/testsuites/sptests/sp75/init.c b/testsuites/sptests/sp75/init.c
index 95ba2e0..cfd6c59 100644
--- a/testsuites/sptests/sp75/init.c
+++ b/testsuites/sptests/sp75/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
 #include <tmacros.h>
 #include "test_support.h"
 
diff --git a/testsuites/sptests/spfatal_support/system.h b/testsuites/sptests/spfatal_support/system.h
index 69f917f..ce736cc 100644
--- a/testsuites/sptests/spfatal_support/system.h
+++ b/testsuites/sptests/spfatal_support/system.h
@@ -14,7 +14,6 @@
 /*
  *  Some of the fatal error cases require the ability to peek inside RTEMS
  */
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <rtems.h>
 #include <tmacros.h>
 
diff --git a/testsuites/sptests/spintrcritical06/init.c b/testsuites/sptests/spintrcritical06/init.c
index d1cbe4d..c073833 100644
--- a/testsuites/sptests/spintrcritical06/init.c
+++ b/testsuites/sptests/spintrcritical06/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
 #include <tmacros.h>
 #include <intrcritical.h>
 
diff --git a/testsuites/sptests/spintrcritical08/init.c b/testsuites/sptests/spintrcritical08/init.c
index acb10de..db770ed 100644
--- a/testsuites/sptests/spintrcritical08/init.c
+++ b/testsuites/sptests/spintrcritical08/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
 #include <tmacros.h>
 #include <intrcritical.h>
 #include <rtems/rtems/ratemonimpl.h>
diff --git a/testsuites/sptests/spintrcritical09/init.c b/testsuites/sptests/spintrcritical09/init.c
index 81f0076..02b7f2b 100644
--- a/testsuites/sptests/spintrcritical09/init.c
+++ b/testsuites/sptests/spintrcritical09/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
 #include <tmacros.h>
 #include <intrcritical.h>
 
diff --git a/testsuites/sptests/spintrcritical10/init.c b/testsuites/sptests/spintrcritical10/init.c
index 28fb755..d03f8a4 100644
--- a/testsuites/sptests/spintrcritical10/init.c
+++ b/testsuites/sptests/spintrcritical10/init.c
@@ -13,7 +13,6 @@
   #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
 #include <tmacros.h>
 #include <intrcritical.h>
 
diff --git a/testsuites/sptests/spintrcritical16/init.c b/testsuites/sptests/spintrcritical16/init.c
index cdd862f..dda7cf8 100644
--- a/testsuites/sptests/spintrcritical16/init.c
+++ b/testsuites/sptests/spintrcritical16/init.c
@@ -11,7 +11,6 @@
 #include "config.h"
 #endif
 
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <tmacros.h>
 #include <intrcritical.h>
 
diff --git a/testsuites/sptests/spobjgetnext/init.c b/testsuites/sptests/spobjgetnext/init.c
index c6da26d..52f3371 100644
--- a/testsuites/sptests/spobjgetnext/init.c
+++ b/testsuites/sptests/spobjgetnext/init.c
@@ -14,7 +14,6 @@
 #endif
 
 #define CONFIGURE_INIT
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
 #include "system.h"
 
 #include <rtems/rtems/tasksimpl.h>
-- 
1.7.7




More information about the devel mailing list