Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2987590lqz; Wed, 3 Apr 2024 14:43:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaHemLCV1axmuVYyBL15IyDytPcyIk2gpxWmxu3OcTfkL+7evCYx70Xch/F3vN0bVZU5kXlPwS6qwkofTzkbkRejRlPfOdWPA1kxDBEw== X-Google-Smtp-Source: AGHT+IFKrn3PUCYzFQ5yH0iOHYOcVUKds4b/CecP+WJXgUsGp+sUrOLiA+Y9vptnVXsWEOotlUAH X-Received: by 2002:a05:6214:62e:b0:696:4771:9b57 with SMTP id a14-20020a056214062e00b0069647719b57mr1636659qvx.23.1712180623545; Wed, 03 Apr 2024 14:43:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712180623; cv=pass; d=google.com; s=arc-20160816; b=KTC3p2WQfN17LcxObTWbP83TyMqQq59O5vO35CbTdTANEzAeXW9Vnqdq8l6xq7NhoF 627ex69E737X2cpgfrYJ9CLBunu3IGiY8WAqGqz5J7XNa0WbCNaaytNzhYx8yCc9OaZl D5CDOV83ZdZ4Ej4CUTlxTIMWHDB2eQ+bqD4WAsaN91CfyGiW6QLRpSM7qqb8qu56tJQm sxUtOLiHf4C7et09gnZhQYrmedsiRhr3cAeiiZL6YvN4Y6+A4UAuHgbEKzrUdhL+8wZi LJtOMPtfvy7ne4P13plXeCrNz7X8A+LZnMyMdDzOGgZQyX32M7gauO1uYYP1f4MS9c6P wt0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=I8oAok5It38shVDkwL940Pa8qX3ifwx6XR6MQgkhnY4=; fh=aD1s6htktLVNlJaqCQ//t7I8aiAokVLePVrnW43wBvE=; b=yOa+E9cZURKU1NLf8K11/diLiL91t4zQ2vXA6WTnhUsy5i2DSMPLm1v+ctwP73yXW3 FmIka+fXsLdp6x5t/zQ65v7wFzvgJwpYNQ/m1NJb3MfAnGr0nIzSFIuP5DEW7ynKZaqT fFolQTVEA8HxnvlHZs89Epq9xxsrbPrSfCDkBdRAF8dyFhiDvDYGKz66R8yroh3FSrbu GYCDkQaNeK0axwlFwN3tR4kSAbuAWLdzIbwkGCJWWTGVGBGcSCebCwomGhnXi6FKZ7i9 8p8wkXdR4FEV8K/kiuUdupB5jdRgF34GmAs5pXgV9LghZ7Z3owUNR33OF37kGLsS55zS UGGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lGMlDuct; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-130649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w11-20020a0cff0b000000b0068f5a8dd904si14961004qvt.326.2024.04.03.14.43.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 14:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lGMlDuct; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-130649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A71CA1C2220D for ; Wed, 3 Apr 2024 21:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B5691514DF; Wed, 3 Apr 2024 21:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="lGMlDuct" Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E3A2156868 for ; Wed, 3 Apr 2024 21:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712180532; cv=none; b=s7xTjTB4RdunHAcg+1KBfgctHWL7PDXrr3bvgEOOScr8m6Ro40oRzcFsAFg1CeMTBoc0/zxdPrPcJngoYEoUurkA7MCOjEV1yg6O818e5NLKuNf2fMb+HbxoogwNszu8i00iXetTGYZ+exF001izugI88KoJArufU3TXcSuc708= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712180532; c=relaxed/simple; bh=x+FV5GoB+NEz6+1MxtrN8DBzkMq3eDfL9fgL9YEpHyw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JIrBvvs/b9Oy3zxuhuVQooPyOmWgADusGWIYRsGs7zcgDAlNuMvfMtGzHQBQ56oFn5jjxyUViefu7xGX6Z+qCdUJdGVibp1dtvDQBdmePSZkHo5Jzbj6EqoGZUdqn4ApbZvXDe0b1PDwjpfJkPZLKYvAgDmcPS5ycyxBrbKKxnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=lGMlDuct; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Wed, 3 Apr 2024 17:41:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1712180527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I8oAok5It38shVDkwL940Pa8qX3ifwx6XR6MQgkhnY4=; b=lGMlDuctByVDszORVgYlbk2emZzNfH18lVbOM3PP8QqASVaLVaaVhE4vLYrvnQGixqKQn+ JoBwih61WSwFWMdg5hVCAoj/8hdJcJ9cfeJ6GbrYKLCxCnMqAOBy1GlT1ZzritCAT4+N6a jWAURONL2YqX3Zp+MfY4wq5MmwF4PmI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Nathan Chancellor Cc: Suren Baghdasaryan , akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH v6 01/37] fix missing vmalloc.h includes Message-ID: <4qk7f3ra5lrqhtvmipmacgzo5qwnugrfxn5dd3j4wubzwqvmv4@vzdhpalbmob3> References: <20240321163705.3067592-1-surenb@google.com> <20240321163705.3067592-2-surenb@google.com> <20240403211240.GA307137@dev-arch.thelio-3990X> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403211240.GA307137@dev-arch.thelio-3990X> X-Migadu-Flow: FLOW_OUT On Wed, Apr 03, 2024 at 02:12:40PM -0700, Nathan Chancellor wrote: > On Thu, Mar 21, 2024 at 09:36:23AM -0700, Suren Baghdasaryan wrote: > > From: Kent Overstreet > > > > The next patch drops vmalloc.h from a system header in order to fix > > a circular dependency; this adds it to all the files that were pulling > > it in implicitly. > > > > Signed-off-by: Kent Overstreet > > Signed-off-by: Suren Baghdasaryan > > Reviewed-by: Pasha Tatashin > > I bisected an error that I see when building ARCH=loongarch allmodconfig > to commit 302519d9e80a ("asm-generic/io.h: kill vmalloc.h dependency") > in -next, which tells me that this patch likely needs to contain > something along the following lines, as LoongArch was getting > include/linux/sizes.h transitively through the vmalloc.h include in > include/asm-generic/io.h. gcc doesn't appear to be packaged for loongarch for debian (most other cross compilers are), so that's going to make it hard for me to test anything... > > Cheers, > Nathan > > In file included from arch/loongarch/include/asm/io.h:11, > from include/linux/io.h:13, > from arch/loongarch/mm/mmap.c:6: > include/asm-generic/io.h: In function 'ioport_map': > arch/loongarch/include/asm/addrspace.h:124:25: error: 'SZ_32M' undeclared (first use in this function); did you mean 'PS_32M'? > 124 | #define PCI_IOSIZE SZ_32M > | ^~~~~~ > arch/loongarch/include/asm/addrspace.h:126:26: note: in expansion of macro 'PCI_IOSIZE' > 126 | #define IO_SPACE_LIMIT (PCI_IOSIZE - 1) > | ^~~~~~~~~~ > include/asm-generic/io.h:1113:17: note: in expansion of macro 'IO_SPACE_LIMIT' > 1113 | port &= IO_SPACE_LIMIT; > | ^~~~~~~~~~~~~~ > arch/loongarch/include/asm/addrspace.h:124:25: note: each undeclared identifier is reported only once for each function it appears in > 124 | #define PCI_IOSIZE SZ_32M > | ^~~~~~ > arch/loongarch/include/asm/addrspace.h:126:26: note: in expansion of macro 'PCI_IOSIZE' > 126 | #define IO_SPACE_LIMIT (PCI_IOSIZE - 1) > | ^~~~~~~~~~ > include/asm-generic/io.h:1113:17: note: in expansion of macro 'IO_SPACE_LIMIT' > 1113 | port &= IO_SPACE_LIMIT; > | ^~~~~~~~~~~~~~ > > diff --git a/arch/loongarch/include/asm/addrspace.h b/arch/loongarch/include/asm/addrspace.h > index b24437e28c6e..7bd47d65bf7a 100644 > --- a/arch/loongarch/include/asm/addrspace.h > +++ b/arch/loongarch/include/asm/addrspace.h > @@ -11,6 +11,7 @@ > #define _ASM_ADDRSPACE_H > > #include > +#include > > #include >