login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
12
Re: I need help with a sparse warning
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Alexey Dobriyan
Subject:
Re: I need help with a sparse warning
Date: Thursday, September 11, 2008 - 7:44 pm
On Thu, Sep 11, 2008 at 09:13:20PM -0500, Larry Finger wrote:
quoted text
> In file drivers/net/wireless/p54/p54common.c, the statement > > priv->rx_mtu = (size_t) le16_to_cpu((__le16)bootrec->data[10]); > > generates the sparse warning > > .../p54common.c:185:29: warning: cast to restricted __le16 > > where bootrec->data is u32, and priv->rx_mtu is u16. > > What should be done to eliminate this warning?
What is the intent? MTU is 2-byte little-endian starting at 40-th byte? Oh, and size_t cast is pointless. --
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:
I need help with a sparse warning
, Larry Finger
, (Thu Sep 11, 7:13 pm)
Re: I need help with a sparse warning
, Steven Noonan
, (Thu Sep 11, 7:32 pm)
Re: I need help with a sparse warning
, Roland Dreier
, (Thu Sep 11, 7:39 pm)
Re: I need help with a sparse warning
, Alexey Dobriyan
, (Thu Sep 11, 7:44 pm)
Re: I need help with a sparse warning
, Larry Finger
, (Thu Sep 11, 7:58 pm)
Re: I need help with a sparse warning
, Roland Dreier
, (Thu Sep 11, 8:04 pm)
Re: I need help with a sparse warning
, Larry Finger
, (Thu Sep 11, 8:05 pm)
Re: I need help with a sparse warning
, Larry Finger
, (Thu Sep 11, 8:07 pm)
Re: I need help with a sparse warning
, Michael Buesch
, (Fri Sep 12, 8:25 am)
Re: I need help with a sparse warning
, Pavel Roskin
, (Fri Sep 12, 10:12 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Josef Bacik
[PATCH] fallocate.2: add FALLOC_FL_PUNCH_HOLE flag definition
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
git
:
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Junio C Hamano
Re: Fwd: git status options feature suggestion
Bert Wesarg
[TopGit PATCH v3 06/12] list_deps: accept -i/-w
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
misc: replace remaining __FUNCTION__ with __func__
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Darrin Chandler
Re: strange output on openbsd C code
Boris Goldberg
Re: HP ProLiant DL320 v. Sun Fire V125
Nick Holland
Re: Install OpenBSD from USB ?
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Colocation donated by:
Syndicate