From: David Farning <dfarning@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] fixing compile warnings
Date: Mon, 11 Sep 2006 02:30:31 +0000 [thread overview]
Message-ID: <1157941831.19479.9.camel@dfarning-desktop> (raw)
I am working my way through the compile warnings in /fs
I have come across this set of warning
fs/jfs/jfs_txnmgr.c: In function ‘txCommit’:
fs/jfs/jfs_txnmgr.c:1922: warning: ‘pxd.addr2’ may be used uninitialized
in this function
fs/jfs/jfs_txnmgr.c:1922: warning: ‘pxd.addr1’ may be used uninitialized
in this function
fs/jfs/jfs_txnmgr.c:1922: warning: ‘pxd.len’ may be used uninitialized
in this function
The relevant code is as follows
if (tlck->type & tlckTRUNCATE) {
pxd_t pxd; /* truncated extent of xad */
int twm;
pxd_t is defined as follows
96 typedef struct {
97 unsigned len:24;
98 unsigned addr1:8;
99 __le32 addr2;
100 } pxd_t;
What is the proper (kernel) way to initialize pxd_t in jfs_txnmgr.c to
silence the warnings?
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next reply other threads:[~2006-09-11 2:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-11 2:30 David Farning [this message]
2006-09-11 4:12 ` [KJ] fixing compile warnings Tony Breeds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1157941831.19479.9.camel@dfarning-desktop \
--to=dfarning@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.