From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Date: Wed, 10 Oct 2012 13:58:38 +0000 Subject: Re: [patch] isdn: fix a wrapping bug in isdn_ppp_ioctl() Message-Id: List-Id: References: <20121010093816.GA3669@elgon.mountain> <1349864358.2386.27.camel@joe-AO722> <1349874007.2386.42.camel@joe-AO722> In-Reply-To: <1349874007.2386.42.camel@joe-AO722> (Joe Perches's message of "Wed, 10 Oct 2012 06:00:07 -0700") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Joe Perches Cc: Dan Carpenter , Karsten Keil , "David S. Miller" , Masanari Iida , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Sorry, I was misremembering the history of the bit ops. There has historically been issues with varying bit order, but noadays set_bit is always defined consistently with C shifts. But another issue, set_bit is an atomic operation which may be significantly more expensive than the equivalent C operation. Better use __set_bit when atomicity is not needed. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."