login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
27
Re: [PATCH] char: fix sparse shadowed variable warnings in cyclades.c
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Harvey Harrison
Subject:
Re: [PATCH] char: fix sparse shadowed variable warnings in cyclades.c
Date: Wednesday, February 27, 2008 - 4:40 pm
On Wed, 2008-02-27 at 15:34 -0800, Andrew Morton wrote:
quoted text
> On Fri, 22 Feb 2008 10:14:15 -0800 > Harvey Harrison <harvey.harrison@gmail.com> wrote: > > Unrelated to your change, but... > > We prefer min_t over casts like this (not sure why, but let's be consistent) > > The reason for this cast is that all this code is using `int' for the > transfer count (arguably wrong - should use size_t, but that propagates all > the way to tty_operations.write) but cyclades has > > #define SERIAL_XMIT_SIZE (min(PAGE_SIZE, 4096)) > > which is unsigned on most architectures. > > A possibly-sane fix for all of this is to use min_t in the above then nuke > the casts. >
I'll trace this through and get you a patch. 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] char: fix sparse shadowed variable warnings in cyc ...
, Harvey Harrison
, (Fri Feb 22, 11:14 am)
Re: [PATCH] char: fix sparse shadowed variable warnings in ...
, Andrew Morton
, (Wed Feb 27, 4:34 pm)
Re: [PATCH] char: fix sparse shadowed variable warnings in ...
, Harvey Harrison
, (Wed Feb 27, 4:40 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Stefan Richter
Re: sata & scsi suggestion for make menuconfig
Rafael J. Wysocki
[Bug #11409] build issue #564 for v2.6.27-rc4 : undefined reference to `NS8390p_in...
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Marcin Slusarz
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
Andrew Morton
2.6.23-rc6-mm1
git
:
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-kvm
:
Anthony Liguori
Re: [Qemu-devel] Re: virtio-serial: An interface for host-guest communication
Alexander Graf
Re: KVM guest interrupts, traps, and, exceptions
Kevin Wolf
Re: [Qemu-devel] Planning for the 0.11.0 release
brizly vaan van Ulciputz
ssh into kvm-guests
Avi Kivity
[PATCH v2] test: Add IDT framework
openbsd-misc
:
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
jared r r spiegel
cwm(1) maximize vs. xrandr dualhead
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
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...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
Colocation donated by:
Syndicate