From nobody@FreeBSD.org  Fri Oct  8 13:19:59 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E669E106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Oct 2010 13:19:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D53218FC23
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Oct 2010 13:19:59 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o98DJxP6062141
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 8 Oct 2010 13:19:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o98DJxfP062140;
	Fri, 8 Oct 2010 13:19:59 GMT
	(envelope-from nobody)
Message-Id: <201010081319.o98DJxfP062140@www.freebsd.org>
Date: Fri, 8 Oct 2010 13:19:59 GMT
From: Svatopluk Kraus <onwahe@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] - CTASSERT(sizeof(struct jmvrec) == JREC_SIZE)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151305
>Category:       kern
>Synopsis:       [headers] [patch] CTASSERT(sizeof(struct jmvrec) == JREC_SIZE)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 08 13:20:03 UTC 2010
>Closed-Date:    
>Last-Modified:  Sun May 04 04:11:52 UTC 2014
>Originator:     Svatopluk Kraus
>Release:        current
>Organization:
>Environment:
coldfire port
>Description:
A macro CTASSERT() hits in colfire port I work on. It is possibly due
to use of GNU GCC compiler -Os option (size optimalization). It hits on
struct jmvrec in sys/ufs/ffs/fs.h.
>How-To-Repeat:

>Fix:
I arranged the struct definition (a size of unused field).

Patch attached with submission follows:

Index: sys/ufs/ffs/fs.h
===================================================================
--- sys/ufs/ffs/fs.h    (revision 213567)
+++ sys/ufs/ffs/fs.h    (working copy)
@@ -696,7 +696,7 @@
        uint32_t        jm_op;
        ino_t           jm_ino;
        ino_t           jm_parent;
-       uint16_t        jm_unused;
+       uint32_t        jm_unused;
        off_t           jm_oldoff;
        off_t           jm_newoff;
 };


>Release-Note:
>Audit-Trail:
>Unformatted:
