Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp984013rdf; Sat, 4 Nov 2023 02:08:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgZ3/fGIIWRO9swkbJiwe1iXRbzkf2QpnlXhrRLz222BplcAL1dqsWErtgvw0o2CPZ9snG X-Received: by 2002:aca:2202:0:b0:3ac:b12b:9acc with SMTP id b2-20020aca2202000000b003acb12b9accmr25313635oic.43.1699088888434; Sat, 04 Nov 2023 02:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699088888; cv=none; d=google.com; s=arc-20160816; b=vDrALn+mRmGgXXepf0toCAGyU5dlgAwPk3ONA/xaCHEqFSUVB5bJDbOG2btgUgWv43 gA0bfgX+30ouDMSR8cIFUuiOMNKW5/5mliJ9bYh5NYiDd2yysfo+cgou4W1OZX+nl/dl N1SvAHtQL0xImr/xVWEnLFiHu/M9eCa0C2th55/rnCDVW0yjpS5rzsWqOaiKZErzQ995 B6NCGWAF7l85LNsayl9t3MBvS1YrhKwcNdoiAJ9ByljhAxUUQk3m3GpUUeib0F/Iyjpd zAqgH+Xv6Ug46MUp3vqFQdv6GTprmCT8WKatqEJTvbR7XMXQ2sHbP259ZOLPh2PMAp3D naNg== 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; bh=1uw0UbC01r2LumzFikFRhmVhT04eOp55KldTigg2GWk=; fh=1GCUjks1mlQ0P4HJuoqxsrRaCI0oSiMvH5DXexyE1hg=; b=y7NjigG1Lk9X8hfA6x+SvDVfpGNutThxS/tLDT2H4JTZtXqdkQT/ODTwBV/Yb8IPKx w+h/uvVcl+V0MZVDhCznx1sROpSjAGekvzKqhbNmSHItawdmcunIuVKdS2stR2B2u7Ul VjMhLTt/tslmMpG8ysfR7HjcntFqJwWcCkVd8F/jw7nyeEHVx+N7WHU60qlCbk2lsItP T9Po2X+rEQw/qyzP98q21M5PMlJJ1P7KQpXDYY+NUfmsdIPovgsLQusAbeZKCQriKg2I kZ0iINu2lNwgmIzfnZ8GfGR51vnFAmlt4SJh7ioRCoyTT5OYAOehS2HYXS2d5m4C2SxC 2Ptg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o127-20020a62cd85000000b0068e45c6ca3fsi3288150pfg.93.2023.11.04.02.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 02:08:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AD0CA80D8FFA; Sat, 4 Nov 2023 02:08:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230055AbjKDJH5 (ORCPT + 99 others); Sat, 4 Nov 2023 05:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjKDJHz (ORCPT ); Sat, 4 Nov 2023 05:07:55 -0400 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E02831BC; Sat, 4 Nov 2023 02:07:51 -0700 (PDT) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40839652b97so21938795e9.3; Sat, 04 Nov 2023 02:07:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699088870; x=1699693670; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1uw0UbC01r2LumzFikFRhmVhT04eOp55KldTigg2GWk=; b=fBDK1KtVV5Cm2aba1isqxF6XnpvtKcMP/XQcXbWPV7BkvD88b2LlLZ5E0ad6JdCvkK xmkSKih5CnbK3dYYsXRRy8qpF1PhfErqXHmzfA3me1Rcqdf3mA9paDot8vyIcURjd8HH r7IASh6GDaCqb74/huUNrgktR/7xIIfC66amYAf+J+7+n076xw2AJBGglm4oEIWLsAb+ MYFXJCagp8XO2kTMO5zyooZV19S+2WJrEcjZy1BB/M3WnGAz2/gdFPdAt7FSAC1i4f4c mPmfQIaikqq+cTNnSLYIYEBAb49g3waxaPF8fIB0Z49yIi0BycZRMbBFDraORWsZJ7tx nO3A== X-Gm-Message-State: AOJu0Yx8JmsEi8bQF0KNJgiu/drKKoaqfSwYlugL/SQ55siNiMl+LPfQ 6nwhnqqECnJHoogepyC28jo= X-Received: by 2002:a05:600c:1d0e:b0:402:8896:bb7b with SMTP id l14-20020a05600c1d0e00b004028896bb7bmr18944996wms.6.1699088869944; Sat, 04 Nov 2023 02:07:49 -0700 (PDT) Received: from [192.168.86.246] (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id h15-20020a05600c314f00b004094d4292aesm5053010wmo.18.2023.11.04.02.07.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Nov 2023 02:07:49 -0700 (PDT) Message-ID: Date: Sat, 4 Nov 2023 09:07:44 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [TREE] "Fast Kernel Headers" Tree -v3 Content-Language: en-US To: Ingo Molnar Cc: Kari Argillander , Linux Kernel Mailing List , linux-arch@vger.kernel.org, Linus Torvalds , Greg Kroah-Hartman , Randy Dunlap , Nathan Chancellor , Andrew Morton , Peter Zijlstra , Ard Biesheuvel , Josh Poimboeuf , Jonathan Corbet , Kari Argillander References: From: Lucas Tanure In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 04 Nov 2023 02:08:05 -0700 (PDT) On 22-03-2022 19:03, Kari Argillander wrote: > 22.03.2022 18.22 Kari Argillander (kari.argillander@gmail.com) wrote: >> >> 22.03.2022 17.37 Randy Dunlap (rdunlap@infradead.org) wrote: >>> >>> 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/ >> >> I have to edit it to as there is no >> with fast headers. I also tried a couple other things but it didn't >> seem to make a >> difference. >> >>> although the build error that it fixes doesn't look exactly the same >>> as yours. >> >> Quite close still. Maybe I should try to bisect this and I will also >> see how bisectable >> this branch is. > > Ok. I have now bisect first bad to this commit. > c4ad6fcb67c4 ("sched/headers: Reorganize, clean up and optimize > kernel/sched/fair.c dependencies") > Note that this has been also bisect by others. > > With this I get little bit different error: > > In file included from ./arch/x86/include/generated/asm/rwonce.h:1, > from ./include/linux/compiler.h:255, > from ./include/linux/export.h:43, > from ./include/linux/linkage.h:7, > from ./include/linux/kernel.h:17, > from ./include/linux/cpumask.h:10, > from ./include/linux/energy_model.h:4, > from kernel/sched/fair.c:23: > ./include/linux/psi.h: In function ‘cgroup_move_task’: > ./include/linux/rcupdate.h:414:36: error: dereferencing pointer to > incomplete type ‘struct css_set’ > 414 | #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) > | ^~~~ > > Which is actually the same error that is in Randy's message. Patch of > Randy works > on top of this commit. But I cannot get this patch to work with HEAD, > but probably > I'm just missing something obvious. Still nice to see that probably a > solution is near. > >>>>> 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 > Hi Ingo, What is the fate of this patch series? Are you going to push this? If not, can I? My approach would be take one by one, understand, test and push. Would take years, but I have the time. Thanks Lucas Tanure