From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191AbcCGSEw (ORCPT ); Mon, 7 Mar 2016 13:04:52 -0500 Received: from mail-oi0-f46.google.com ([209.85.218.46]:36086 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbcCGSEl (ORCPT ); Mon, 7 Mar 2016 13:04:41 -0500 MIME-Version: 1.0 In-Reply-To: <20160307123020.7ca7a3ea@gandalf.local.home> References: <20160307123020.7ca7a3ea@gandalf.local.home> From: Andy Lutomirski Date: Mon, 7 Mar 2016 10:04:21 -0800 Message-ID: Subject: Re: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning To: Steven Rostedt Cc: Jiri Kosina , Sedat Dilek , Alan Stern , Tejun Heo , Lai Jiangshan , Benjamin Tissoires , Paul McKenney , Andy Lutomirski , LKML , USB list , Greg Kroah-Hartman , Peter Zijlstra , Ingo Molnar Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 7, 2016 at 9:30 AM, Steven Rostedt wrote: > On Mon, 7 Mar 2016 18:24:12 +0100 (CET) > Jiri Kosina wrote: > >> > So, if Clang is producing wrong X86 code here, is it possible to turn >> > interrupts on/off manually? But, hmm that affects other places as well >> > in the Linux sources, so. >> >> This issue needs to be handled in the compiler. >> > > Exactly. The compiler may get away with this in userspace (maybe), but > for the kernel, it is definitely a show stopper. Especially if it knows > that an asm() may be called. It's broken for user code that fiddles with AC, too. --Andy