Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2017 08:57:40 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314647 - head/sys/compat/linux
Message-ID:  <201703040857.v248veDr069140@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sat Mar  4 08:57:39 2017
New Revision: 314647
URL: https://svnweb.freebsd.org/changeset/base/314647

Log:
  Remove attribute __packed from some IPC struct definition since
  Linuxulator is x86 only.
  The only notable differences in algnment for an LP64 64-bit system
  when compared to a 32-bit system is an eight or large byte types
  alignment.
  
  MFC after:	1 month

Modified:
  head/sys/compat/linux/linux_ipc.c

Modified: head/sys/compat/linux/linux_ipc.c
==============================================================================
--- head/sys/compat/linux/linux_ipc.c	Sat Mar  4 08:47:31 2017	(r314646)
+++ head/sys/compat/linux/linux_ipc.c	Sat Mar  4 08:57:39 2017	(r314647)
@@ -130,7 +130,6 @@ linux_to_bsd_ipc_perm(struct l_ipc_perm 
 	bpp->seq = lpp->seq;
 }
 
-
 static void
 bsd_to_linux_ipc_perm(struct ipc_perm *bpp, struct l_ipc_perm *lpp)
 {
@@ -158,11 +157,7 @@ struct l_msqid_ds {
 	l_ushort		msg_qbytes;	/* max number of bytes on queue */
 	l_pid_t			msg_lspid;	/* pid of last msgsnd */
 	l_pid_t			msg_lrpid;	/* last receive pid */
-}
-#if defined(__amd64__) && defined(COMPAT_LINUX32)
-__packed
-#endif
-;
+};
 
 struct l_semid_ds {
 	struct l_ipc_perm	sem_perm;
@@ -173,11 +168,7 @@ struct l_semid_ds {
 	l_uintptr_t		sem_pending_last;
 	l_uintptr_t		undo;
 	l_ushort		sem_nsems;
-}
-#if defined(__amd64__) && defined(COMPAT_LINUX32)
-__packed
-#endif
-;
+};
 
 struct l_shmid_ds {
 	struct l_ipc_perm	shm_perm;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703040857.v248veDr069140>