From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751460Ab3FHHcF (ORCPT ); Sat, 8 Jun 2013 03:32:05 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60120 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282Ab3FHHcD (ORCPT ); Sat, 8 Jun 2013 03:32:03 -0400 Message-ID: <51B2DDC7.4070107@zytor.com> Date: Sat, 08 Jun 2013 00:31:19 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Chen Gang CC: Thomas Gleixner , "mingo@redhat.com" , the arch/x86 maintainers , Andrew Morton , Paul McKenney , shli@fusionio.com, "dhowells@redhat.com" , "linux-kernel@vger.kernel.org" , Linux-Arch Subject: Re: [PATCH] arch: x86: include: asm: need 'unsigned' type cast for atomic_clear_mask() References: <51B2CF75.1090207@asianux.com> In-Reply-To: <51B2CF75.1090207@asianux.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/2013 11:30 PM, Chen Gang wrote: > > atomic_set_mask() has already have 'unsigned' type case, and > atomic_clear_mask() is the pair of atomic_set_mask(). > > So it also need 'unsigned' type case. > Pray tell, in what situation does this matter? The only reason I can think of is if "mask" is actually a long... -hpa