kern/151305: [patch] - CTASSERT(sizeof(struct jmvrec) == JREC_SIZE)
Svatopluk Kraus
onwahe at gmail.com
Fri Oct 8 13:20:04 UTC 2010
>Number: 151305
>Category: kern
>Synopsis: [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:
>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:
More information about the freebsd-bugs
mailing list