Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp571295lqp; Fri, 5 Apr 2024 02:23:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU44ied7JZ4RaWSyC/cPUR9mNFDRgUAVdUh1JcV+0bTJi+RBJkVbFC/aazAu/rWvExoK/6fy3nzjToyPLb55Hirjw4X0C16ZKjoGse7yQ== X-Google-Smtp-Source: AGHT+IGgfCQPd6dvjBnEsi3vDUWW7UvYTqyfSA26fx6/JxAxAXVsIWJgrBLudXG8qxea/j7IguRg X-Received: by 2002:a05:6e02:1fef:b0:368:88bc:1b57 with SMTP id dt15-20020a056e021fef00b0036888bc1b57mr841364ilb.13.1712309007583; Fri, 05 Apr 2024 02:23:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712309007; cv=pass; d=google.com; s=arc-20160816; b=R8LHj9tVTznUHvPzBl8hEalVNDosxNE4mE/emeAhgLurpTWWq7mxyNHwGaBwELfCZC VNeR51MRwR7w6aeDUR6oDdxVA4bJY9Ecpbg+QvJhhRBoMUfulMkTcHJcJPPhLi/YGds9 IXE11zrViCaDYJMnxm7gVw+w80KhUpq9AOrkUyDkvMM+Su+fidfT8O85F9QIuAwXWJyG 62WE0xclJtW4juS0URNGnVD9zUGmR+FDtrWgaLKKDZ2LyQuowTX76gRPHft9ZTLQUPdU oiEtHgvCSO9TIhQUtOziPIvXryLy2Vhm1p1WdzNnOkYdoOhTDRtE4s4E5KSufC0x66mF aSSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=IVWYWxB8G592AyPrWgkRU23u0POJYltCtQEGMaBP+tw=; fh=3wVWTxVouOxlHLTwOjZFCULY38WjKPuB+4t6lXdnKPw=; b=IYFkVoXRfPwiT8B5bcUpWPNE+Aesj4NTDHovCIhgv74cDHTw2lcTatvVdJoH+i3S9U Hsk+JSO3wi/qim9G2mXoARZqtXgDLO1nx2AudLOOoHvhWasrhhZgMH5mcQTGX9XOn8AD kG/CiTn0dA3HyGRYbslXcy1BfBknEXPKhc7CDOWtO1DIIXFzI03cfr9An/KkvZw7d7L7 WQpHSNOdHqYaOy7KxlR9eguGu7H59nWVcW7Jw+Qmf7MScsJHtO+HFzLFOtAZKW2F7NS7 DskrGBEFTETvyiFwecGulnKXvjAJZo57oanUtYC9evxMh3M3IiKPXDjcH5HgLIVSjDdw u8dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dlRKCpz7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132729-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f8-20020a637548000000b005dc42ad5d65si1071006pgn.622.2024.04.05.02.23.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 02:23:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132729-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dlRKCpz7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132729-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3D839283C4E for ; Fri, 5 Apr 2024 09:23:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13FF515FCFD; Fri, 5 Apr 2024 09:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dlRKCpz7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3F75115FA9B for ; Fri, 5 Apr 2024 09:23:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712309002; cv=none; b=isGC7uZqumAT55RNJGiptR6m2gkcZboe7mzQ1DyUipPu0ylXkpLg+RTtzVOTXBFWZv3TvNX1mBxLk+2sTPCh3BR5Wkzz2DAsPgwX3ZFEN6/m/rqaG+VkY0msZ0MvVY/hOdcEEnLRR1jVwlrK+BXZm+bJ/hJ7M7qrkQpEJ2iEavw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712309002; c=relaxed/simple; bh=1bRDGnQ98Dy9DeMf7Rucbz34Lbcn4+Nx2f9qpES7Gw4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aUg3w++0y1GiHhhudiAQPPcOrMdT9AGlW6xMBMjwcCxPz5s/JNRFwmIS9jw37I2U64V8feEgwHm7ZW38cid6b3pkRZNQAyadCWF62AzbpJdkRX++W4VqIwSCrYMqjPjGpVPOcEPSS9AuqRZDDEeafbPCl2/lm+BUkXVOMG/lMA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dlRKCpz7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD7FFC433C7 for ; Fri, 5 Apr 2024 09:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712309001; bh=1bRDGnQ98Dy9DeMf7Rucbz34Lbcn4+Nx2f9qpES7Gw4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dlRKCpz71aQ5fHw3cVfFgzI6cIqZSS57JE9yyb6PfrvHIElYO8EvWundVdVeG7XSo QmqliMHpqOZevfVZCa3wMLyUm8ObP73O/L2xKiEf9yb10UAb4gFOJYmIJsLGxkNNfN zI1iM7kkjZJUBmY+tfKUvs7lEh4M8Kkw1DPlLM8+IZHqhXBRuWB7Fsie3Etll/OZlw DrtEQP/u0FcU1etlRGEos08pchTNOjc2S2lbV+hde/4KXDMrQTzSaSQ+y0pQIoSZ+v M3xkbLijWT+iVsteojyd5J+HyMaZxc714sUDliD7s6oT2qLSdcFvuT8UAySu2+MZYF UJstXOqD2SAyw== Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a5193f56986so154821466b.0 for ; Fri, 05 Apr 2024 02:23:21 -0700 (PDT) X-Gm-Message-State: AOJu0YxvytLcNoa4ix+2V0FpaZVhQMCLu635Gf13WC/SWuissTjlK0aS CVM1D6FBaDfyVyYmMYOr4cvLOS5FWiT7dgMaDjxUlnnGyjLn51BEF1ZbpxEKgQJEkmUbNChtPlH D4ByNNRFKZQgJlyfQ2wBnN0phVZE= X-Received: by 2002:a17:906:c142:b0:a47:3526:81a3 with SMTP id dp2-20020a170906c14200b00a47352681a3mr732056ejc.48.1712309000369; Fri, 05 Apr 2024 02:23:20 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240404045701.27284-1-rdunlap@infradead.org> In-Reply-To: <20240404045701.27284-1-rdunlap@infradead.org> From: Huacai Chen Date: Fri, 5 Apr 2024 17:23:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: addrspace: add linux/sizes.h to prevent build errors To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, WANG Xuerui , loongarch@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Queued, thanks. Huacai On Thu, Apr 4, 2024 at 12:57=E2=80=AFPM Randy Dunlap wrote: > > LoongArch's include/asm/addrspace.h uses SZ_32M and SZ_16K, so add > to provide those macros to prevent build errors: > > In file included from ../arch/loongarch/include/asm/io.h:11, > from ../include/linux/io.h:13, > from ../include/linux/io-64-nonatomic-lo-hi.h:5, > from ../drivers/cxl/pci.c:4: > ../include/asm-generic/io.h: In function 'ioport_map': > ../arch/loongarch/include/asm/addrspace.h:124:25: error: 'SZ_32M' undecla= red (first use in this function); did you mean 'PS_32M'? > 124 | #define PCI_IOSIZE SZ_32M > > Signed-off-by: Randy Dunlap > Cc: Huacai Chen > Cc: WANG Xuerui > Cc: loongarch@lists.linux.dev > --- > arch/loongarch/include/asm/addrspace.h | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/arch/loongarch/include/asm/addrspace.h b/arch/loongarch/include= /asm/addrspace.h > --- 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 >