login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
25
Re: [PATCH] ubifs: endian handling fixes and annotations
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Harvey Harrison
Subject:
Re: [PATCH] ubifs: endian handling fixes and annotations
Date: Saturday, October 25, 2008 - 11:52 am
On Sat, 2008-10-25 at 13:57 +0300, Artem Bityutskiy wrote:
quoted text
> Harvey, > > On Fri, 2008-10-24 at 10:52 -0700, Harvey Harrison wrote: > > Noticed by sparse: > > fs/ubifs/file.c:75:2: warning: restricted __le64 degrades to integer > > fs/ubifs/file.c:629:4: warning: restricted __le64 degrades to integer > > fs/ubifs/dir.c:431:3: warning: restricted __le64 degrades to integer > > > > This should be checked to ensure the ubifs_assert is working as > > intended, I've done the suggested annotation in this patch. > > > > fs/ubifs/sb.c:298:6: warning: incorrect type in assignment (different base types) > > fs/ubifs/sb.c:298:6: expected int [signed] [assigned] tmp > > fs/ubifs/sb.c:298:6: got restricted __le64 [usertype] <noident> > > fs/ubifs/sb.c:299:19: warning: incorrect type in assignment (different base types) > > fs/ubifs/sb.c:299:19: expected restricted __le64 [usertype] atime_sec > > fs/ubifs/sb.c:299:19: got int [signed] [assigned] tmp > > fs/ubifs/sb.c:300:19: warning: incorrect type in assignment (different base types) > > fs/ubifs/sb.c:300:19: expected restricted __le64 [usertype] ctime_sec > > fs/ubifs/sb.c:300:19: got int [signed] [assigned] tmp > > fs/ubifs/sb.c:301:19: warning: incorrect type in assignment (different base types) > > fs/ubifs/sb.c:301:19: expected restricted __le64 [usertype] mtime_sec > > fs/ubifs/sb.c:301:19: got int [signed] [assigned] tmp > > ... snip ... > > thanks for the patch. It's shame we did not fix this ourselves. We did > run sparse before submitting UBIFS and did not see these warnings. > Probably sparse has been improved recently. Anyway, thank you, I'll look > closer at your patch and apply it to ubifs-2.6.git. >
Run sparse with -D__CHECK_ENDIAN__ to see these warnings. Harvey --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] ubifs: endian handling fixes and annotations
, Harvey Harrison
, (Fri Oct 24, 10:52 am)
Re: [PATCH] ubifs: endian handling fixes and annotations
, Artem Bityutskiy
, (Sat Oct 25, 3:57 am)
Re: [PATCH] ubifs: endian handling fixes and annotations
, Harvey Harrison
, (Sat Oct 25, 11:52 am)
Re: [PATCH] ubifs: endian handling fixes and annotations
, Artem Bityutskiy
, (Sun Oct 26, 3:12 am)
Re: [PATCH] ubifs: endian handling fixes and annotations
, Artem Bityutskiy
, (Sun Oct 26, 6:22 am)
Re: [PATCH] ubifs: endian handling fixes and annotations
, Harvey Harrison
, (Sun Oct 26, 11:44 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Brian Swetland
Re: Attempted summary of suspend-blockers LKML thread
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Greg KH
Re: [PATCH 1/1] staging: hv: Fix race condition on IC channel initialization (modi...
Borislav Petkov
drm_vm.c:drm_mmap: possible circular locking dependency detected (was: Re: Linux 2...
Mel Gorman
Re: [PATCH 09/14] Add /proc trigger for memory compaction
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Mike Miller
git message
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Badalian Vyacheslav
Re: tc filter flow hash question
Jarek Poplawski
Re: tc filter flow hash question
David Miller
Re: [RFC 0/5] generic rx recycling
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
NFS: Store pages from an NFS inode into a local cache
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Nick Holland
Re: Install OpenBSD from USB ?
Rob Shepherd
x86 hardware for router system
Colocation donated by:
Syndicate