From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33431C433EF for ; Thu, 17 Mar 2022 13:43:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 479876B0071; Thu, 17 Mar 2022 09:43:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 428836B0072; Thu, 17 Mar 2022 09:43:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2F00E8D0001; Thu, 17 Mar 2022 09:43:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0076.hostedemail.com [216.40.44.76]) by kanga.kvack.org (Postfix) with ESMTP id 1CEE46B0071 for ; Thu, 17 Mar 2022 09:43:27 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id CA008182888AC for ; Thu, 17 Mar 2022 13:43:26 +0000 (UTC) X-FDA: 79253995212.21.DED1529 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id 4E6B014002E for ; Thu, 17 Mar 2022 13:43:26 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6C40260F21; Thu, 17 Mar 2022 13:43:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF95BC340E9; Thu, 17 Mar 2022 13:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647524604; bh=ZGwhFr4HMMiHVx6F/dnRpUBbs08BVQzkS3x8lW+YnKw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=NzwiKeaJ+eZMgsLnO3UZb4GnQOeUQzt6QXy9qaN94dGXjNCEZ/QTeoNu+OKWCd+jy fLRW8X7E61VI8jSfzuj8K/68zk1XJYUkyEKuONcd0bBXM6hsyzxYnTKKi5GPnYIh03 6vvEGiY+fLioIBr7P7LBIlcJUx71thHGUAMr24CNAwNX6TOk8aMCl76G57rwHB1Ksf IDigUZKfFtWKRRT4LGeSXhny//SJQu2Jhk1BVDY1vr3iotmdd/dgdC0CFPZe1RWyt9 NGOxBSegOf8pKGcm7rrDw/sQMZdGoypJepNf8brGjD28HvLtom+amC1+5R+bIaRmuS MYJnWNh5FdcFg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 715905C0341; Thu, 17 Mar 2022 06:43:24 -0700 (PDT) Date: Thu, 17 Mar 2022 06:43:24 -0700 From: "Paul E. McKenney" To: Randy Dunlap Cc: Andrew Morton , broonie@kernel.org, mhocko@suse.cz, sfr@canb.auug.org.au, linux-next@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org, linux-um , Richard Weinberger , Johannes Berg Subject: Re: mmotm 2022-03-16-17-42 uploaded (uml sub-x86_64, sched/fair, RCU) Message-ID: <20220317134324.GN4285@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220317004304.95F89C340E9@smtp.kernel.org> <0f622499-36e1-ea43-ddc3-a8b3bb08d34b@infradead.org> <20220316213011.8cac447e692283a4b5d97f3d@linux-foundation.org> <917e9ce0-c8cf-61b2-d1ba-ebf25bbd979d@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <917e9ce0-c8cf-61b2-d1ba-ebf25bbd979d@infradead.org> X-Rspamd-Queue-Id: 4E6B014002E X-Stat-Signature: bwhy38htxoojyubn6gf4ie7qjb6xj9b4 X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=NzwiKeaJ; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf26.hostedemail.com: domain of "SRS0=ZYer=T4=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=ZYer=T4=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org" X-Rspamd-Server: rspam02 X-HE-Tag: 1647524606-751767 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Mar 16, 2022 at 09:52:44PM -0700, Randy Dunlap wrote: >=20 >=20 > On 3/16/22 21:30, Andrew Morton wrote: > > On Wed, 16 Mar 2022 21:21:16 -0700 Randy Dunlap wrote: > >=20 > >> > >> > >> On 3/16/22 17:43, Andrew Morton wrote: > >>> The mm-of-the-moment snapshot 2022-03-16-17-42 has been uploaded to > >>> > >>> https://www.ozlabs.org/~akpm/mmotm/ > >>> > >>> mmotm-readme.txt says > >>> > >>> README for mm-of-the-moment: > >>> > >>> https://www.ozlabs.org/~akpm/mmotm/ > >>> > >>> This is a snapshot of my -mm patch queue. Uploaded at random hopef= ully > >>> more than once a week. > >>> > >>> You will need quilt to apply these patches to the latest Linus rele= ase (5.x > >>> or 5.x-rcY). The series file is in broken-out.tar.gz and is duplic= ated in > >>> https://ozlabs.org/~akpm/mmotm/series > >> > >> > >> UML for x86_64, defconfig: > >> > >> In file included from ./arch/x86/include/generated/asm/rwonce.h:1:0, > >> from ../include/linux/compiler.h:248, > >> from ../include/linux/kernel.h:20, > >> 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 =E2=80=98cgroup_move_task=E2=80=99= : > >> ../include/linux/rcupdate.h:414:36: error: dereferencing pointer to = incomplete type =E2=80=98struct css_set=E2=80=99 > >> #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) > >> ^~~~ > >=20 > > Works For Me. I tried `make x86_64_defconfig' and `make i386_defconf= ig' too. > >=20 > > Can you please share that .config, or debug a bit? >=20 > $ make ARCH=3Dum SUBARCH=3Dx86_64 defconfig >=20 >=20 >=20 > This fixes the build error for me when CONFIG_PSI=3Dn. Looks better than my approach of converting cgroup_move_task() to be a macro. ;-) Thanx, Paul > --- > include/linux/psi.h | 3 +++ > 1 file changed, 3 insertions(+) >=20 > --- mmotm-2022-0316-1742.orig/include/linux/psi.h > +++ mmotm-2022-0316-1742/include/linux/psi.h > @@ -53,6 +53,9 @@ static inline int psi_cgroup_alloc(struc > static inline void psi_cgroup_free(struct cgroup *cgrp) > { > } > + > +#include > + > static inline void cgroup_move_task(struct task_struct *p, struct css_= set *to) > { > rcu_assign_pointer(p->cgroups, to); >=20 > --=20 > ~Randy