From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933585Ab3BLRfy (ORCPT ); Tue, 12 Feb 2013 12:35:54 -0500 Received: from terminus.zytor.com ([198.137.202.10]:51970 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932404Ab3BLRfx (ORCPT ); Tue, 12 Feb 2013 12:35:53 -0500 Message-ID: <511A7D50.9090804@zytor.com> Date: Tue, 12 Feb 2013 09:35:12 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Linus Torvalds CC: "H.J. Lu" , Ingo Molnar , Linux Kernel Mailing List , Jamie Lokier , ville.syrjala@linux.intel.com, Borislav Petkov , Russell King - ARM Linux , Thomas Gleixner , linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/mm] x86, mm: Use a bitfield to mask nuisance get_user() warnings References: <20130209110031.GA17833@n2100.arm.linux.org.uk> <5119C34B.70207@zytor.com> <511A7892.4020407@zytor.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/12/2013 09:32 AM, Linus Torvalds wrote: > On Tue, Feb 12, 2013 at 9:14 AM, H. Peter Anvin wrote: >> >> No, I think what he is talking about it this bit: > > Ok, I agree that the bitfield code actually looks cleaner. > > That said, maybe gcc has an easier time using a few odd builtins and > magic typeof's. But at least the bitfield trick looks half-way > portable.. > On the other hand, it still uses two gcc extensions: long long bitfields and typeof. I'll see what kind of code we get with the macro. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.