[rtems-libbsd commit] ZONE(9): Disable unused field

Sebastian Huber sebh at rtems.org
Fri Sep 11 09:56:19 UTC 2015


Module:    rtems-libbsd
Branch:    4.11
Commit:    b59b1b786676caeb468354669bd62e8decf7a20a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b59b1b786676caeb468354669bd62e8decf7a20a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Sep 10 15:37:54 2015 +0200

ZONE(9): Disable unused field

---

 freebsd/sys/vm/uma_int.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/freebsd/sys/vm/uma_int.h b/freebsd/sys/vm/uma_int.h
index d2523c6..d372a8d 100644
--- a/freebsd/sys/vm/uma_int.h
+++ b/freebsd/sys/vm/uma_int.h
@@ -239,7 +239,9 @@ struct uma_slab_head {
 	uma_keg_t	us_keg;			/* Keg we live in */
 	union {
 		LIST_ENTRY(uma_slab)	_us_link;	/* slabs in zone */
+#ifndef __rtems__
 		unsigned long	_us_size;	/* Size of allocation */
+#endif /* __rtems__ */
 	} us_type;
 	SLIST_ENTRY(uma_slab)	us_hlink;	/* Link for hash table */
 	u_int8_t	*us_data;		/* First item */
@@ -270,7 +272,9 @@ struct uma_slab_refcnt {
 
 #define	us_keg		us_head.us_keg
 #define	us_link		us_head.us_type._us_link
+#ifndef __rtems__
 #define	us_size		us_head.us_type._us_size
+#endif /* __rtems__ */
 #define	us_hlink	us_head.us_hlink
 #define	us_data		us_head.us_data
 #define	us_flags	us_head.us_flags



More information about the vc mailing list