Re: Subject: [PATCH 01/16] Squashfs: inode operations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Geert Uytterhoeven
Date: Wednesday, October 22, 2008 - 10:13 am

On Fri, 17 Oct 2008, Phillip Lougher wrote:

                                      ^^^^^^^^^^^
                                      ^^^^^^^^^^^

Sparse with endian checking (make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__") complains
about these:

| fs/squashfs/inode.c:306:25: warning: cast to restricted __le16
| fs/squashfs/inode.c:324:25: warning: cast to restricted __le16

and it seems to be right, as inode.i_mode is not __le16. I think the le16_to_cpu()
should be removed.

BTW, there are also a few sparse warnings about different signednesses, so you
probably want to run sparse yourself, too.

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Subject: [PATCH 01/16] Squashfs: inode operations, Phillip Lougher, (Fri Oct 17, 8:42 am)
Re: Subject: [PATCH 01/16] Squashfs: inode operations, Phillip Lougher, (Mon Oct 20, 5:32 pm)
Re: Subject: [PATCH 01/16] Squashfs: inode operations, David P. Quigley, (Tue Oct 21, 9:14 am)
Re: Subject: [PATCH 01/16] Squashfs: inode operations, Christoph Hellwig, (Wed Oct 22, 1:48 am)
Re: Subject: [PATCH 01/16] Squashfs: inode operations, Geert Uytterhoeven, (Wed Oct 22, 9:32 am)
Re: Subject: [PATCH 01/16] Squashfs: inode operations, Geert Uytterhoeven, (Wed Oct 22, 10:13 am)
Re: Subject: [PATCH 01/16] Squashfs: inode operations, Phillip Lougher, (Thu Oct 23, 1:42 am)