login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
13
Re: [PATCH 18/18] flag parameters: check magic constants
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Ulrich Drepper <drepper@...>
Cc: <linux-kernel@...>, <netdev@...>, <davidel@...>, <mtk.manpages@...>, <torvalds@...>
Subject:
Re: [PATCH 18/18] flag parameters: check magic constants
Date: Tuesday, May 13, 2008 - 12:01 am
On Mon, 12 May 2008 20:54:34 -0700 Ulrich Drepper <drepper@redhat.com> wrote:
quoted text
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Andrew Morton wrote: > >> + BUILD_BUG_ON(SOCK_NONBLOCK & SOCK_TYPE_MASK); > > > > The fifth assertion triggers with alpha allmodconfig. > > This means the simple approach won't work for alpha. > > The question is how to solve it? I suggest the following: > > - - define SOCK_NONBLOCK to some value > 16 in include/asm-alpha/socket.h > > - - add #ifndef SOCK_NONBLOCK around the definition in include/linux/net.h
With a comment, please.
quoted text
> - - in sys_socket, sys_socketpair, sys_paccept > > int fflags = flags; > if (SOCK_NONBLOCK != O_NONBLOCK && (flags & SOCK_NONBLOCK)) { > fflags &= ~SOCK_NONBLOCK; > fflags |= O_NONBLOCK; > } > > and use fflags instead of flags in the places where we pass it on. > > This has no costs on platforms other than alpha. > > Shall I sent a patch?
Sounds reasonable. --
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 18/18] flag parameters: check magic constants
, Ulrich Drepper
, (Tue May 6, 5:18 pm)
Re: [PATCH 18/18] flag parameters: check magic constants
, Andrew Morton
, (Fri May 23, 1:22 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Ulrich Drepper
, (Fri May 23, 10:31 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Andrew Morton
, (Mon May 12, 11:13 pm)
Re: [PATCH 18/18] flag parameters: check magic constants
, Ulrich Drepper
, (Mon May 12, 11:54 pm)
Re: [PATCH 18/18] flag parameters: check magic constants
, David Miller
, (Tue May 13, 12:02 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Andrew Morton
, (Tue May 13, 1:04 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Ulrich Drepper
, (Tue May 13, 1:10 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Andrew Morton
, (Tue May 13, 1:19 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Ulrich Drepper
, (Tue May 13, 1:42 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Andrew Morton
, (Wed May 14, 12:43 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Ulrich Drepper
, (Tue May 13, 12:21 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, David Miller
, (Tue May 13, 12:39 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, Andrew Morton
, (Tue May 13, 12:01 am)
Re: [PATCH 18/18] flag parameters: check magic constants
, David Miller
, (Mon May 12, 11:45 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Adrian Bunk
Re: LSM conversion to static interface
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Andrew Morton
Re: [BUG] New Kernel Bugs
Winkler, Tomas
RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall"
Colocation donated by:
Who's online
There are currently
5 users
and
896 guests
online.
Online users
strcmp
raffaellotdec
mikereynolds
terrysmith514
ComanVasile
Syndicate