From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754204AbbIIMyo (ORCPT ); Wed, 9 Sep 2015 08:54:44 -0400 Received: from casper.infradead.org ([85.118.1.10]:60689 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbbIIMyg (ORCPT ); Wed, 9 Sep 2015 08:54:36 -0400 Date: Wed, 9 Sep 2015 14:54:24 +0200 From: Peter Zijlstra To: Sedat Dilek Cc: Baoquan He , Denys Vlasenko , Tejun Heo , Christoph Lameter , LKML , Andrew Morton , David Rientjes , Linus Torvalds , Thomas Gleixner , Thomas Graf , Ingo Molnar , the arch/x86 maintainers Subject: Re: [llvmlinux] percpu | bitmap issue? (Cannot boot on bare metal due to a kernel NULL pointer dereference) Message-ID: <20150909125424.GP3644@twins.programming.kicks-ass.net> References: <20150909022945.GB1998@dhcp-17-102.nay.redhat.com> <20150909032541.GC1998@dhcp-17-102.nay.redhat.com> <20150909071410.GD1998@dhcp-17-102.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 09, 2015 at 12:05:50PM +0200, Sedat Dilek wrote: > I can boot into a CLANG v3.7 compiled Linux-kernel when lib/bitmap is > compiled with GCC (here: v4.9). > > CONFIG_OPTIMIZE_INLINING has no effect on this. > > Attached are the single llvmlinux patch for AMD64 (x86_64), my > kernel-config and 2 objdumps with bitmap.o file alltogether. I suggest you go tell the LLVM people their compiler is broken.