change log for rtems (2011-12-02)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri Dec 2 07:32:44 UTC 2011


 *joel*:
2011-11-29	Joel Sherrill <joel.sherrilL at OARcorp.com>

	PR 1967/cpukit
	* score/include/rtems/score/object.h,
	score/src/objectinitializeinformation.c: Remove
	OBJECTS_NAME_ALIGNMENT and uses.

M 1.2997  cpukit/ChangeLog
M   1.84  cpukit/score/include/rtems/score/object.h
M   1.24  cpukit/score/src/objectinitializeinformation.c

diff -u rtems/cpukit/ChangeLog:1.2996 rtems/cpukit/ChangeLog:1.2997
--- rtems/cpukit/ChangeLog:1.2996	Mon Nov 28 11:51:46 2011
+++ rtems/cpukit/ChangeLog	Tue Nov 29 15:55:18 2011
@@ -1,3 +1,10 @@
+2011-11-29	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	PR 1967/cpukit
+	* score/include/rtems/score/object.h,
+	score/src/objectinitializeinformation.c: Remove
+	OBJECTS_NAME_ALIGNMENT and uses.
+
 2011-11-28	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	PR 1941/cpukit

diff -u rtems/cpukit/score/include/rtems/score/object.h:1.83 rtems/cpukit/score/include/rtems/score/object.h:1.84
--- rtems/cpukit/score/include/rtems/score/object.h:1.83	Fri Jun 24 12:52:57 2011
+++ rtems/cpukit/score/include/rtems/score/object.h	Tue Nov 29 15:55:18 2011
@@ -65,13 +65,6 @@
 } Objects_Name;
 
 /**
- *  Space for object names is allocated in multiples of this.
- *
- *  NOTE:  Must be a power of 2.  Matches the name manipulation routines.
- */
-#define OBJECTS_NAME_ALIGNMENT     sizeof( uint32_t )
-
-/**
  *  Functions which compare names are prototyped like this.
  */
 typedef bool    (*Objects_Name_comparators)(

diff -u rtems/cpukit/score/src/objectinitializeinformation.c:1.23 rtems/cpukit/score/src/objectinitializeinformation.c:1.24
--- rtems/cpukit/score/src/objectinitializeinformation.c:1.23	Sun Jul 24 18:55:14 2011
+++ rtems/cpukit/score/src/objectinitializeinformation.c	Tue Nov 29 15:55:18 2011
@@ -128,18 +128,12 @@
   /*
    *  Calculate the maximum name length
    *
-   *  NOTE: Always 4 bytes long in Class so aligned.  It is POSIX name
-   *        lengths that may be an odd number of bytes.
+   *  NOTE: Either 4 bytes for Classic API names or an arbitrary
+   *        number for POSIX names which are strings that may be
+   *        an odd number of bytes.
    */
-  name_length = maximum_name_length;
 
-  #if defined(RTEMS_POSIX_API)
-    if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
-      name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
-                    ~(OBJECTS_NAME_ALIGNMENT-1);
-  #endif
-
-  information->name_length = name_length;
+  information->name_length = maximum_name_length;
 
   _Chain_Initialize_empty( &information->Inactive );
 
@@ -164,12 +158,12 @@
     if ( (supports_global == true) && _System_state_Is_multiprocessing ) {
 
       information->global_table =
-	(Chain_Control *) _Workspace_Allocate_or_fatal_error(
-	  (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control)
-	);
+        (Chain_Control *) _Workspace_Allocate_or_fatal_error(
+          (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control)
+        );
 
       for ( index=1; index <= _Objects_Maximum_nodes ; index++ )
-	_Chain_Initialize_empty( &information->global_table[ index ] );
+        _Chain_Initialize_empty( &information->global_table[ index ] );
      }
      else
        information->global_table = NULL;


 *joel*:
2011-11-29	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* Makefile.am: Add shared/startup/bsp-start-memcpy.S

M   1.40  c/src/lib/libbsp/arm/lpc32xx/ChangeLog
M   1.16  c/src/lib/libbsp/arm/lpc32xx/Makefile.am

diff -u rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog:1.39 rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog:1.40
--- rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog:1.39	Tue Oct 18 13:25:15 2011
+++ rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog	Tue Nov 29 22:48:11 2011
@@ -1,3 +1,7 @@
+2011-11-29	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* Makefile.am: Add shared/startup/bsp-start-memcpy.S
+
 2011-10-18	Jennifer Averett <Jennifer.Averett at OARcorp.com>
 
 	PR 1917/bsps

diff -u rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am:1.15 rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am:1.16
--- rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am:1.15	Tue Oct 18 13:25:15 2011
+++ rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am	Tue Nov 29 22:48:11 2011
@@ -94,6 +94,7 @@
 	../../shared/src/stackalloc.c \
 	../../shared/src/uart-output-char.c \
 	../shared/abort/simple_abort.c
+libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
 
 # Startup
 libbsp_a_SOURCES += startup/bspstart.c \


 *ralf*:
2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>

	* score/src/objectinitializeinformation.c
	(_Objects_Initialize_information): Remove unused var "name_length".

M 1.2998  cpukit/ChangeLog
M   1.25  cpukit/score/src/objectinitializeinformation.c

diff -u rtems/cpukit/ChangeLog:1.2997 rtems/cpukit/ChangeLog:1.2998
--- rtems/cpukit/ChangeLog:1.2997	Tue Nov 29 15:55:18 2011
+++ rtems/cpukit/ChangeLog	Tue Nov 29 23:24:19 2011
@@ -1,3 +1,8 @@
+2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* score/src/objectinitializeinformation.c
+	(_Objects_Initialize_information): Remove unused var "name_length".
+
 2011-11-29	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
 	PR 1967/cpukit

diff -u rtems/cpukit/score/src/objectinitializeinformation.c:1.24 rtems/cpukit/score/src/objectinitializeinformation.c:1.25
--- rtems/cpukit/score/src/objectinitializeinformation.c:1.24	Tue Nov 29 15:55:18 2011
+++ rtems/cpukit/score/src/objectinitializeinformation.c	Tue Nov 29 23:24:19 2011
@@ -62,7 +62,6 @@
 {
   static Objects_Control *null_local_table = NULL;
   uint32_t                minimum_index;
-  uint32_t                name_length;
   uint32_t                maximum_per_allocation;
   #if defined(RTEMS_MULTIPROCESSING)
     uint32_t              index;


 *ralf*:
2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libnetworking/rtems/rtems_dhcp.c (dhcp_init):
	Remove unused var "len".

M 1.2999  cpukit/ChangeLog
M    1.9  cpukit/libnetworking/rtems/rtems_dhcp.c

diff -u rtems/cpukit/ChangeLog:1.2998 rtems/cpukit/ChangeLog:1.2999
--- rtems/cpukit/ChangeLog:1.2998	Tue Nov 29 23:24:19 2011
+++ rtems/cpukit/ChangeLog	Tue Nov 29 23:30:49 2011
@@ -1,5 +1,7 @@
 2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* libnetworking/rtems/rtems_dhcp.c (dhcp_init):
+	Remove unused var "len".
 	* score/src/objectinitializeinformation.c
 	(_Objects_Initialize_information): Remove unused var "name_length".
 

diff -u rtems/cpukit/libnetworking/rtems/rtems_dhcp.c:1.8 rtems/cpukit/libnetworking/rtems/rtems_dhcp.c:1.9
--- rtems/cpukit/libnetworking/rtems/rtems_dhcp.c:1.8	Tue Oct 18 04:01:23 2011
+++ rtems/cpukit/libnetworking/rtems/rtems_dhcp.c	Tue Nov 29 23:30:49 2011
@@ -851,7 +851,6 @@
   struct ifreq         ireq;
   struct ifnet         *ifp;
   struct socket        *so;
-  int                  len;
   int                  error;
   struct sockaddr_in   myaddr;
   struct ifaddr        *ifa;
@@ -914,7 +913,7 @@
   /*
    * Build the DHCP Discover
    */
-  len = dhcp_discover_req (&call, sdl, &xid);
+  dhcp_discover_req (&call, sdl, &xid);
 
   /*
    * Send the Discover.


 *ralf* (on branch rtems-4-10-branch):
2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>

	* librpc/src/rpc/clnt_udp.c (struct cu_data):
	Introduce unions _cu_inbuf, _cu_outbuf to avoid aliasing.

M 1.3000  cpukit/ChangeLog
M 1.2346.2.109  cpukit/ChangeLog
M   1.13  cpukit/librpc/src/rpc/clnt_udp.c
M 1.12.2.1  cpukit/librpc/src/rpc/clnt_udp.c

diff -u rtems/cpukit/ChangeLog:1.2999 rtems/cpukit/ChangeLog:1.3000
--- rtems/cpukit/ChangeLog:1.2999	Tue Nov 29 23:30:49 2011
+++ rtems/cpukit/ChangeLog	Wed Nov 30 00:58:35 2011
@@ -1,5 +1,10 @@
 2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* librpc/src/rpc/clnt_udp.c (struct cu_data):
+	Introduce unions _cu_inbuf, _cu_outbuf to avoid aliasing.
+
+2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* libnetworking/rtems/rtems_dhcp.c (dhcp_init):
 	Remove unused var "len".
 	* score/src/objectinitializeinformation.c

diff -u rtems/cpukit/ChangeLog:1.2346.2.108 rtems/cpukit/ChangeLog:1.2346.2.109
--- rtems/cpukit/ChangeLog:1.2346.2.108	Mon Nov 28 10:36:29 2011
+++ rtems/cpukit/ChangeLog	Wed Nov 30 01:00:43 2011
@@ -1,3 +1,8 @@
+2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* librpc/src/rpc/clnt_udp.c (struct cu_data):
+	Introduce unions _cu_inbuf, _cu_outbuf to avoid aliasing.
+
 2011-11-28	Werner Almesberger <werner at almesberger.net>
 
 	PR 1961/cpukit

diff -u rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.12 rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.13
--- rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.12	Thu May 27 07:39:33 2010
+++ rtems/cpukit/librpc/src/rpc/clnt_udp.c	Wed Nov 30 00:58:36 2011
@@ -88,9 +88,17 @@
 	XDR		   cu_outxdrs;
 	u_int		   cu_xdrpos;
 	u_int			cu_sendsz;	/* send size */
-	char		   *cu_outbuf;
+	union {
+	  u_int32_t	   *i32;
+	  char		   *c;
+	} _cu_outbuf;
+#define cu_outbuf _cu_outbuf.c
 	u_int			cu_recvsz;	/* recv size */
-	char		   cu_inbuf[1];
+	union {
+	  u_int32_t	*i32;
+	  char		c[1];
+	} _cu_inbuf;
+#define cu_inbuf _cu_inbuf.c
 };
 
 /*
@@ -352,7 +360,7 @@
 		if (inlen < sizeof(u_int32_t))
 			continue;
 		/* see if reply transaction id matches sent id */
-		if (*((u_int32_t *)(cu->cu_inbuf)) != *((u_int32_t *)(cu->cu_outbuf)))
+		if (*(cu->_cu_inbuf.i32) != *(cu->_cu_outbuf.i32))
 			continue;
 		/* we now assume we have the proper reply */
 		break;

diff -u rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.12 rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.12.2.1
--- rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.12	Thu May 27 07:39:33 2010
+++ rtems/cpukit/librpc/src/rpc/clnt_udp.c	Wed Nov 30 01:00:47 2011
@@ -88,9 +88,17 @@
 	XDR		   cu_outxdrs;
 	u_int		   cu_xdrpos;
 	u_int			cu_sendsz;	/* send size */
-	char		   *cu_outbuf;
+	union {
+	  u_int32_t	   *i32;
+	  char		   *c;
+	} _cu_outbuf;
+#define cu_outbuf _cu_outbuf.c
 	u_int			cu_recvsz;	/* recv size */
-	char		   cu_inbuf[1];
+	union {
+	  u_int32_t	*i32;
+	  char		c[1];
+	} _cu_inbuf;
+#define cu_inbuf _cu_inbuf.c
 };
 
 /*
@@ -352,7 +360,7 @@
 		if (inlen < sizeof(u_int32_t))
 			continue;
 		/* see if reply transaction id matches sent id */
-		if (*((u_int32_t *)(cu->cu_inbuf)) != *((u_int32_t *)(cu->cu_outbuf)))
+		if (*(cu->_cu_inbuf.i32) != *(cu->_cu_outbuf.i32))
 			continue;
 		/* we now assume we have the proper reply */
 		break;


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.

M 1.3001  cpukit/ChangeLog
M   1.17  cpukit/posix/src/semopen.c

diff -u rtems/cpukit/ChangeLog:1.3000 rtems/cpukit/ChangeLog:1.3001
--- rtems/cpukit/ChangeLog:1.3000	Wed Nov 30 00:58:35 2011
+++ rtems/cpukit/ChangeLog	Wed Nov 30 21:05:17 2011
@@ -1,3 +1,7 @@
+2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.
+
 2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* librpc/src/rpc/clnt_udp.c (struct cu_data):

diff -u rtems/cpukit/posix/src/semopen.c:1.16 rtems/cpukit/posix/src/semopen.c:1.17
--- rtems/cpukit/posix/src/semopen.c:1.16	Sun Jul 24 18:55:09 2011
+++ rtems/cpukit/posix/src/semopen.c	Wed Nov 30 21:05:17 2011
@@ -60,7 +60,7 @@
 
   if ( oflag & O_CREAT ) {
     va_start(arg, oflag);
-    mode = (mode_t) va_arg( arg, unsigned int );
+    mode = va_arg( arg, mode_t );
     value = va_arg( arg, unsigned int );
     va_end(arg);
   }


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.

M 1.3002  cpukit/ChangeLog
M   1.17  cpukit/posix/src/mqueueopen.c

diff -u rtems/cpukit/ChangeLog:1.3001 rtems/cpukit/ChangeLog:1.3002
--- rtems/cpukit/ChangeLog:1.3001	Wed Nov 30 21:05:17 2011
+++ rtems/cpukit/ChangeLog	Wed Nov 30 21:46:35 2011
@@ -1,5 +1,6 @@
 2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
 	* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.
 
 2011-11-30	Ralf Corsépius <ralf.corsepius at rtems.org>

diff -u rtems/cpukit/posix/src/mqueueopen.c:1.16 rtems/cpukit/posix/src/mqueueopen.c:1.17
--- rtems/cpukit/posix/src/mqueueopen.c:1.16	Thu Aug  6 14:26:56 2009
+++ rtems/cpukit/posix/src/mqueueopen.c	Wed Nov 30 21:46:36 2011
@@ -63,8 +63,8 @@
 
   if ( oflag & O_CREAT ) {
     va_start(arg, oflag);
-    mode = (mode_t) va_arg( arg, unsigned int );
-    attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
+    mode = va_arg( arg, mode_t );
+    attr = va_arg( arg, struct mq_attr * );
     va_end(arg);
   }
 


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.

M 1.3003  cpukit/ChangeLog
M   1.29  cpukit/libcsupport/src/open.c

diff -u rtems/cpukit/ChangeLog:1.3002 rtems/cpukit/ChangeLog:1.3003
--- rtems/cpukit/ChangeLog:1.3002	Wed Nov 30 21:46:35 2011
+++ rtems/cpukit/ChangeLog	Thu Dec  1 02:01:39 2011
@@ -1,5 +1,6 @@
 2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.
 	* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
 	* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.
 

diff -u rtems/cpukit/libcsupport/src/open.c:1.28 rtems/cpukit/libcsupport/src/open.c:1.29
--- rtems/cpukit/libcsupport/src/open.c:1.28	Mon Aug 23 18:19:07 2010
+++ rtems/cpukit/libcsupport/src/open.c	Thu Dec  1 02:01:40 2011
@@ -64,7 +64,7 @@
 )
 {
   va_list                             ap;
-  int                                 mode;
+  mode_t                              mode;
   int                                 rc;
   rtems_libio_t                      *iop = 0;
   int                                 status;
@@ -84,7 +84,7 @@
 
   va_start(ap, flags);
 
-  mode = va_arg( ap, int );
+  mode = va_arg( ap, mode_t );
 
   /*
    * NOTE: This comment is OBSOLETE.  The proper way to do this now


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* shared/include/cpuIdent.c, shared/include/cpuIdent.h
	(get_ppc_cpu_type_name): Return const char*.

M  1.407  c/src/lib/libcpu/powerpc/ChangeLog
M   1.31  c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h
M   1.34  c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c

diff -u rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.406 rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.407
--- rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.406	Thu Nov 10 02:44:37 2011
+++ rtems/c/src/lib/libcpu/powerpc/ChangeLog	Thu Dec  1 02:06:06 2011
@@ -1,3 +1,8 @@
+2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* shared/include/cpuIdent.c, shared/include/cpuIdent.h
+	(get_ppc_cpu_type_name): Return const char*.
+
 2011-11-10	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	PR 1927/bsps:

diff -u rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h:1.30 rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h:1.31
--- rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h:1.30	Wed Aug 31 10:27:58 2011
+++ rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h	Thu Dec  1 02:06:06 2011
@@ -91,7 +91,7 @@
 typedef unsigned short ppc_cpu_revision_t;
 
 extern ppc_cpu_id_t get_ppc_cpu_type (void);
-extern char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
+extern const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
 extern ppc_cpu_revision_t get_ppc_cpu_revision (void);
 extern ppc_cpu_revision_t current_ppc_revision;
 

diff -u rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c:1.33 rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c:1.34
--- rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c:1.33	Wed Aug 31 10:27:58 2011
+++ rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c	Thu Dec  1 02:06:06 2011
@@ -27,7 +27,7 @@
 ppc_cpu_revision_t current_ppc_revision = 0xff;
 ppc_feature_t      current_ppc_features;
 
-char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
+const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
 {
   switch (cpu) {
     case PPC_405:		return "PPC405";


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* console/console.c: Eliminate unused var "nb_overflow".

M  1.159  c/src/lib/libbsp/powerpc/gen5200/ChangeLog
M   1.23  c/src/lib/libbsp/powerpc/gen5200/console/console.c

diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.158 rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.159
--- rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.158	Wed Aug 24 04:53:14 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog	Thu Dec  1 02:16:05 2011
@@ -1,3 +1,7 @@
+2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* console/console.c: Eliminate unused var "nb_overflow".
+
 2011-08-24	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* start/start.S: Update due to API changes.

diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/console/console.c:1.22 rtems/c/src/lib/libbsp/powerpc/gen5200/console/console.c:1.23
--- rtems/c/src/lib/libbsp/powerpc/gen5200/console/console.c:1.22	Mon Nov 15 04:55:02 2010
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/console/console.c	Thu Dec  1 02:16:05 2011
@@ -284,7 +284,6 @@
 {
   unsigned char c;
   uint16_t isr;
-  int nb_overflow;
   int minor = (int)handle;
   struct mpc5200_psc *psc =
     (struct mpc5200_psc *)(&mpc5200.psc[psc_minor_to_regset[minor]]);
@@ -311,7 +310,7 @@
        c = (psc->rb_tb >> 24);
 
       if (ttyp[minor] != NULL) {
-        nb_overflow = rtems_termios_enqueue_raw_characters(
+        rtems_termios_enqueue_raw_characters(
            (void *)ttyp[minor], (char *)&c, (int)1);
         channel_info[minor].rx_characters++;
       }


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* mpc8260/console-generic/console-generic.c,
	mpc8xx/console-generic/console-generic.c:
	Eliminate unused var "nb_overflow".

M  1.408  c/src/lib/libcpu/powerpc/ChangeLog
M   1.12  c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c
M   1.26  c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c

diff -u rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.407 rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.408
--- rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.407	Thu Dec  1 02:06:06 2011
+++ rtems/c/src/lib/libcpu/powerpc/ChangeLog	Thu Dec  1 02:20:03 2011
@@ -1,5 +1,8 @@
 2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* mpc8260/console-generic/console-generic.c,
+	mpc8xx/console-generic/console-generic.c:
+	Eliminate unused var "nb_overflow".
 	* shared/include/cpuIdent.c, shared/include/cpuIdent.h
 	(get_ppc_cpu_type_name): Return const char*.
 

diff -u rtems/c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c:1.11 rtems/c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c:1.12
--- rtems/c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c:1.11	Thu Dec 17 02:42:16 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c	Thu Dec  1 02:20:03 2011
@@ -353,8 +353,6 @@
 static void
 m8xx_scc1_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -367,7 +365,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC1_MINOR]->buffer,
         RxBd[SCC1_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC1_MINOR],
         (char *)RxBd[SCC1_MINOR]->buffer,
         (int)RxBd[SCC1_MINOR]->length );
@@ -397,8 +395,6 @@
 static void
 m8xx_scc2_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -411,7 +407,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC2_MINOR]->buffer,
         RxBd[SCC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC2_MINOR],
         (char *)RxBd[SCC2_MINOR]->buffer,
         (int)RxBd[SCC2_MINOR]->length );
@@ -442,8 +438,6 @@
 static void
 m8xx_scc3_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -456,7 +450,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC3_MINOR]->buffer,
         RxBd[SCC3_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC3_MINOR],
         (char *)RxBd[SCC3_MINOR]->buffer,
         (int)RxBd[SCC3_MINOR]->length );
@@ -488,8 +482,6 @@
 static void
 m8xx_scc4_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -502,7 +494,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC4_MINOR]->buffer,
         RxBd[SCC4_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC4_MINOR],
         (char *)RxBd[SCC4_MINOR]->buffer,
         (int)RxBd[SCC4_MINOR]->length );
@@ -532,8 +524,6 @@
 static void
 m8xx_smc1_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -546,7 +536,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SMC1_MINOR]->buffer,
         RxBd[SMC1_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC1_MINOR],
         (char *)RxBd[SMC1_MINOR]->buffer,
         (int)RxBd[SMC1_MINOR]->length );
@@ -577,8 +567,6 @@
 static void
 m8xx_smc2_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -591,7 +579,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SMC2_MINOR]->buffer,
         RxBd[SMC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC2_MINOR],
         (char *)RxBd[SMC2_MINOR]->buffer,
         (int)RxBd[SMC2_MINOR]->length );

diff -u rtems/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c:1.25 rtems/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c:1.26
--- rtems/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c:1.25	Thu Dec 17 02:42:16 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c	Thu Dec  1 02:20:03 2011
@@ -385,8 +385,6 @@
  */
 static void m8xx_scc2_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -399,7 +397,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC2_MINOR]->buffer,
         RxBd[SCC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC2_MINOR],
         (char *)RxBd[SCC2_MINOR]->buffer,
         (int)RxBd[SCC2_MINOR]->length );
@@ -427,8 +425,6 @@
 static void
 m8xx_scc3_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -441,7 +437,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC3_MINOR]->buffer,
         RxBd[SCC3_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC3_MINOR],
         (char *)RxBd[SCC3_MINOR]->buffer,
         (int)RxBd[SCC3_MINOR]->length );
@@ -468,8 +464,6 @@
 static void
 m8xx_scc4_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -482,7 +476,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SCC4_MINOR]->buffer,
         RxBd[SCC4_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC4_MINOR],
         (char *)RxBd[SCC4_MINOR]->buffer,
         (int)RxBd[SCC4_MINOR]->length );
@@ -509,8 +503,6 @@
 static void
 m8xx_smc1_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -523,7 +515,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SMC1_MINOR]->buffer,
         RxBd[SMC1_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC1_MINOR],
         (char *)RxBd[SMC1_MINOR]->buffer,
         (int)RxBd[SMC1_MINOR]->length );
@@ -550,8 +542,6 @@
 static void
 m8xx_smc2_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
    */
@@ -564,7 +554,7 @@
       rtems_cache_invalidate_multiple_data_lines(
         (const void *) RxBd[SMC2_MINOR]->buffer,
         RxBd[SMC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC2_MINOR],
         (char *)RxBd[SMC2_MINOR]->buffer,
         (int)RxBd[SMC2_MINOR]->length );


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libnetworking/rtems/mkrootfs.c: Use mode_t for modes,
	Use size_t for sizes.

M 1.3004  cpukit/ChangeLog
M   1.15  cpukit/libnetworking/rtems/mkrootfs.c

diff -u rtems/cpukit/ChangeLog:1.3003 rtems/cpukit/ChangeLog:1.3004
--- rtems/cpukit/ChangeLog:1.3003	Thu Dec  1 02:01:39 2011
+++ rtems/cpukit/ChangeLog	Thu Dec  1 02:26:48 2011
@@ -1,5 +1,7 @@
 2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* libnetworking/rtems/mkrootfs.c: Use mode_t for modes, 
+	Use size_t for sizes.
 	* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.
 	* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
 	* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.

diff -u rtems/cpukit/libnetworking/rtems/mkrootfs.c:1.14 rtems/cpukit/libnetworking/rtems/mkrootfs.c:1.15
--- rtems/cpukit/libnetworking/rtems/mkrootfs.c:1.14	Wed Jun 16 08:50:22 2010
+++ rtems/cpukit/libnetworking/rtems/mkrootfs.c	Thu Dec  1 02:26:49 2011
@@ -50,7 +50,7 @@
 typedef struct rtems_rootfs_dir_table
 {
   const char *name;
-  int        mode;
+  mode_t      mode;
 } rtems_rootfs_dir_table;
 
 /*
@@ -99,7 +99,7 @@
        * path. If it exists nothing happens.
        */
 
-      int i = strlen (file);
+      size_t i = strlen (file);
 
       while (i)
       {
@@ -144,7 +144,7 @@
 
   for (i = 0; i < line_cnt; i++)
   {
-    int len = strlen (lines[i]);
+    size_t len = strlen (lines[i]);
 
     if (len)
     {
@@ -212,7 +212,7 @@
 rtems_create_root_fs (void)
 {
   const char *lines[1];
-  int        i;
+  size_t      i;
 
   /*
    * Create the directories.


 *ralf*:
2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>

	* aclocal/check-smp.m4: Fix bogus log message.

M 1.3005  cpukit/ChangeLog
M    1.2  cpukit/aclocal/check-smp.m4

diff -u rtems/cpukit/ChangeLog:1.3004 rtems/cpukit/ChangeLog:1.3005
--- rtems/cpukit/ChangeLog:1.3004	Thu Dec  1 02:26:48 2011
+++ rtems/cpukit/ChangeLog	Thu Dec  1 10:43:28 2011
@@ -1,5 +1,9 @@
 2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* aclocal/check-smp.m4: Fix bogus log message.
+
+2011-12-01	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* libnetworking/rtems/mkrootfs.c: Use mode_t for modes, 
 	Use size_t for sizes.
 	* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.

diff -u rtems/cpukit/aclocal/check-smp.m4:1.1 rtems/cpukit/aclocal/check-smp.m4:1.2
--- rtems/cpukit/aclocal/check-smp.m4:1.1	Wed Mar 16 15:05:04 2011
+++ rtems/cpukit/aclocal/check-smp.m4	Thu Dec  1 10:43:28 2011
@@ -4,7 +4,7 @@
 [dnl
 AC_REQUIRE([RTEMS_ENABLE_SMP])dnl
 
-AC_CACHE_CHECK([whether CPU supports libposix],
+AC_CACHE_CHECK([whether CPU supports SMP],
   rtems_cv_HAS_SMP,
   [dnl
     case "$RTEMS_CPU" in



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111202/7db354b1/attachment.html>


More information about the vc mailing list