Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3071981pxp; Tue, 22 Mar 2022 11:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt5fm2UNSLiq1be8sCD5QnLBKPW4YEO9/pZbbdsDs5555dh4yKyQmvsHOm1MHQMZlNcazR X-Received: by 2002:a17:907:86a8:b0:6db:6c1c:d9c4 with SMTP id qa40-20020a17090786a800b006db6c1cd9c4mr26358220ejc.640.1647973592168; Tue, 22 Mar 2022 11:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647973592; cv=none; d=google.com; s=arc-20160816; b=iUKn9hG6GvatGBNWcRT503U7D1+yfPf2thoZ6MBzFwsgwT98cTgs/Huc/rcBKHlF1+ avS7SgvRwrRZIOVsTa/QctaTle6QnkLHZTVeSf/usQp8pbmBJZP9Ge4Zzp0ujVhtxu/c UX5b191TI4roXmfumLJ26C7dWW9c3pmD6yVv+xo7NiLAGKDnI3xjtdeo8AmdF99t+C9+ mBkGowxI/sKdJN9/N6x+em48Okc4ktiX8mnvzS1WWXWU4Ij1fVoEXk9fidFzMZFbYfws JcB5HPn4Hx3tcLN7Kc+mu0rJzUdTCI2l0tgU+ErFD97y9UP7VZkY88/z1gCxxiplP5N1 e6sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Zq9b6qW9yqhzWMBguVnnbJQ6vTAg5F0MU+Zq1pB747c=; b=msh6Gl1v6MgC5HDl04ZzsPeMC60oWEeuMsWttzoqlucV5Mc0u0AvBCOWHftlAJMHAA iEaROI9erSZXrDg0xHHqDm6KP91iM7v27AID/CPf3uxhChob0YEs40o6CqeysWiGvzSq 2KsECxGLeadH1Wo6ic5I5psyB9Qe22wDxjNdv7pD66kHr3uoB6f6CQJHaznV9Ezwfmio QBvy8KTLe6lVwjQmMH/H7UOBuyOFD880jpvjDA0WU9BJ7882ppVR0UYPYqJSHfxSYm2E COAAGiIWmD8jkrsQrUcv9z5jGNpJDnjOu2a6sMv7bGgitDHdBDl/Gm7RHnWp+/jck0UV ctTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aIJTZtt6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a50d5ce000000b00418c2b5bdacsi14213099edj.142.2022.03.22.11.26.06; Tue, 22 Mar 2022 11:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aIJTZtt6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235867AbiCVPir (ORCPT + 99 others); Tue, 22 Mar 2022 11:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbiCVPiq (ORCPT ); Tue, 22 Mar 2022 11:38:46 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319D942ECC; Tue, 22 Mar 2022 08:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=Zq9b6qW9yqhzWMBguVnnbJQ6vTAg5F0MU+Zq1pB747c=; b=aIJTZtt6pziYzGkma+W+rGdydn GeuoZw+OPZ9XCXNgkQtGrplz61bo2oXckqq06onWdSJWftdWCJwDi5ZBx7ILWmkwxQOaTT0xtAtr4 BGTFHrKXXXXWMyhdvjdd+IBV6NGc9HFOFqD/TI76JXceavlpCsPex4+yCKdBsShH0Z+jIVRSf2aQE hlC34JB5soOZz5mbo+T7puKZoYMBuRuIbNmWMuPHuPMyzmZLnUQACvWPI0U8Jf0z27i1yYgKjxdlG S0GEJ58BO+VYPBMaxlKIwuMa4Hiuemk3ARKBo1udE38xLefQtlTFbbPukQqx6SkYpF/SBH+oR0RPz MBvut3Cw==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWgZN-00Bicc-Mw; Tue, 22 Mar 2022 15:37:14 +0000 Message-ID: Date: Tue, 22 Mar 2022 08:37:07 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [TREE] "Fast Kernel Headers" Tree -v3 Content-Language: en-US To: Kari Argillander , Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Linus Torvalds , Greg Kroah-Hartman , Nathan Chancellor , Andrew Morton , Peter Zijlstra , Ard Biesheuvel , Josh Poimboeuf , Jonathan Corbet , kari.argillander@gmail.com References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kari, On 3/22/22 00:59, Kari Argillander wrote: > 15.3.2022 12.35 Ingo Molnar (mingo@kernel.org) wrote: >> >> This is -v3 of the "Fast Kernel Headers" tree, which is an ongoing rework >> of the Linux kernel's header hierarchy & header dependencies, with the dual >> goals of: >> >> - speeding up the kernel build (both absolute and incremental build times) >> >> - decoupling subsystem type & API definitions from each other >> >> The fast-headers tree consists of over 25 sub-trees internally, spanning >> over 2,300 commits, which can be found at: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master > > I have had problems to build master branch (defconfig) with gcc9 > gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0 > > I did also test v2 and problems where there too. I have no problem with gcc10 or > Clang11. Error I get is: > > In file included from ./include/linux/rcuwait_api.h:7, > from ./include/linux/rcuwait.h:6, > from ./include/linux/irq_work.h:7, > from ./include/linux/perf_event_types.h:44, > from ./include/linux/perf_event_api.h:17, > from arch/x86/kernel/kprobes/opt.c:8: > ./include/linux/rcuwait_api.h: In function ‘rcuwait_active’: > ./include/linux/rcupdate.h:328:9: error: dereferencing pointer to > incomplete type ‘struct task_struct’ > 328 | typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ > | ^ > ./include/linux/rcupdate.h:439:31: note: in expansion of macro > ‘__rcu_access_pointer’ > 439 | #define rcu_access_pointer(p) __rcu_access_pointer((p), > __UNIQUE_ID(rcu), __rcu) > | ^~~~~~~~~~~~~~~~~~~~ > ./include/linux/rcuwait_api.h:15:11: note: in expansion of macro > ‘rcu_access_pointer’ > 15 | return !!rcu_access_pointer(w->task); > > Argillander You could try the patch here: https://lore.kernel.org/all/917e9ce0-c8cf-61b2-d1ba-ebf25bbd979d@infradead.org/ although the build error that it fixes doesn't look exactly the same as yours. >> There's various changes in -v3, and it's now ported to the latest kernel >> (v5.17-rc8). >> >> Diffstat difference: >> >> -v2: 25332 files changed, 178498 insertions(+), 74790 deletions(-) >> -v3: 25513 files changed, 180947 insertions(+), 74572 deletions(-) -- ~Randy