From patchwork Wed Dec 13 20:30:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 13491855 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 9A30CC4332F for ; Wed, 13 Dec 2023 20:33:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1ABF06B0213; Wed, 13 Dec 2023 15:33:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 15C606B024A; Wed, 13 Dec 2023 15:33:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F40DC6B024E; Wed, 13 Dec 2023 15:33:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E221B6B0213 for ; Wed, 13 Dec 2023 15:33:24 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C4BC51C152C for ; Wed, 13 Dec 2023 20:33:24 +0000 (UTC) X-FDA: 81562945128.07.5BFD46E Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by imf10.hostedemail.com (Postfix) with ESMTP id C218FC0012 for ; Wed, 13 Dec 2023 20:33:22 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=xrokyilZ; dmarc=none; spf=pass (imf10.hostedemail.com: domain of alexghiti@rivosinc.com designates 209.85.221.44 as permitted sender) smtp.mailfrom=alexghiti@rivosinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702499602; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qNQI5S3fkIj7NrMfmbJzF3XH+7YYWzemWytVmilYcq0=; b=jlhcOwRM28l/lQqHZczLoCloAxxOuuGIsgWqs4pV5YNinWKJUaBSbXefYVYaSOHfkRrOWq J5UX82AfyBCKszK6VDNg5jBDcRaVoObaatfuICpGlZFRKMaSMDph+r2Snnyx/gF1XvcalU YPcrt1pBRguYC/GIxFfYUejb+2e7iiU= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=xrokyilZ; dmarc=none; spf=pass (imf10.hostedemail.com: domain of alexghiti@rivosinc.com designates 209.85.221.44 as permitted sender) smtp.mailfrom=alexghiti@rivosinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702499602; a=rsa-sha256; cv=none; b=f1wLed5FZ1G0WtsqXKebgeNV+vcpdvZeXNKCFuo6I7OFWzoLZfeiQl6P5oXFFIEPAH/6M6 EOIM3nsJO8DTtPXmMZIWeCQlfDY6XLufWGTyjNZ/+ZiJGzJyGgMP06/faGvABOsfuNkXh3 tzLOqFBTWZwjUytqeNHW+jqamPkgFr8= Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-336445a2749so280287f8f.0 for ; Wed, 13 Dec 2023 12:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1702499601; x=1703104401; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qNQI5S3fkIj7NrMfmbJzF3XH+7YYWzemWytVmilYcq0=; b=xrokyilZ1noP5xuNoFG7ziBdLNQ6cKOUAjdSsTSURr+sDfHBfT0+L9WtLNVN/BmMct oYELqZMdnYzXOywEKz88d4zaxCbPZvn747FdMiOJaCzUcIklNRho3Z0f5V6TaeAF+2F8 pslhf3kuQMGRdAbuHJTN33Ru4MPhvyKhHG4C3cFkswC+B4YZ3bOessd2Zo5p2NURWmv3 0lB8U9pKoK43JftSUlK7RxIWaeylQpknlNfhCyLHgWdmra7REzaigG7CWohMevrnUNet H3mVgmJF6w/47DLRffWyrFkOYcRFT/B/Xe00fyI91k4b4ZmSjhELath/eZ+OREpmgLR4 WigA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702499601; x=1703104401; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qNQI5S3fkIj7NrMfmbJzF3XH+7YYWzemWytVmilYcq0=; b=wAySRYQ44m9K46MnaKKzqyF1NKKSWqPYXS8rrTuw0ynZaiBcRSDI7nggWJswQiEHw6 fPiRMksB+RF0j7T1cp3d1XPzb5fSKlzfxAB+ge1FUWVhodWJrw5bFPcJdYhEpAWeIfPI QFlt+9MDZUhBUD7hHqVNXDCV9ZbjLd9PtJ8oF7aEtn3fvJl3m3HM548jNMu4E87oPCpH HMNUeZHtvdI20rJcfKnGtA0Zlkh+FnBcgEzptDceDKcrtvLP8ykCga2yQ3EfD76Zkdj+ yOoK/gIdbIIWhSWuV+Rmfqzm1ArjX6mRBIH/t8DcOsBkyT3V1v6wKE642lBPOFp5K34p NyDQ== X-Gm-Message-State: AOJu0Yw+gUXVwtxWtYnwwZz4zbIZMVBorbLYDYECCaRQHKasm/5e+PDN ptX4NQ40pXvAlqgOwOw/IlSUPg== X-Google-Smtp-Source: AGHT+IG3reTNU+mJ6s5WyJ1mAvW4tTpIucH1hcfMu/iPtp1tRfvP2HWAF0mMX3m2L1tivm7yEvDWGA== X-Received: by 2002:a05:6000:174d:b0:336:36fb:84c8 with SMTP id m13-20020a056000174d00b0033636fb84c8mr990697wrf.107.1702499601505; Wed, 13 Dec 2023 12:33:21 -0800 (PST) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id p10-20020a5d458a000000b00336463625c0sm136243wrq.51.2023.12.13.12.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 12:33:21 -0800 (PST) From: Alexandre Ghiti To: Russell King , Ryan Roberts , Alexander Potapenko , Marco Elver , Dmitry Vyukov , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Ard Biesheuvel , Andrey Ryabinin , Andrey Konovalov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-efi@vger.kernel.org, linux-mm@kvack.org Cc: Alexandre Ghiti Subject: [PATCH v2 3/4] riscv: mm: Only compile pgtable.c if MMU Date: Wed, 13 Dec 2023 21:30:00 +0100 Message-Id: <20231213203001.179237-4-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231213203001.179237-1-alexghiti@rivosinc.com> References: <20231213203001.179237-1-alexghiti@rivosinc.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: C218FC0012 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: ywg8mcjwfgmwk3hdizm1axj96dp61yga X-HE-Tag: 1702499602-656714 X-HE-Meta: U2FsdGVkX1/IkBS9BzDQVoxMg9EzWZ0hhaKkJ3HFB56O+GM2HATOqGyC9qFC7/J+TPGiUQk2tBJrp1GWmpdgu+QdH525CrjEfM2HKUtfbfn//n6kBiebSZOrDYSKr4TWf7MH6xplUvYuNccQ3LWL8/UgwTDDn/0HxVrBxr4iPzLsNgozFeKCauPBmEttmRexOZmPQT9lGiFpE4bMpcvyT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xO2o7WI/TyXC4CBSx3eM1TC/wChh4aMgBYCEcWnRv8CSy5P/gIfLNMBK+m1qcK3Zu8fe2SkFeVJnzWifVs3Yj59LYNwha0N0RNscfUP3nYyjDqaUgHUkDVktaooddeHvPtHVu26rMxHvvKpShXXLtXjOCi8RCXgvpTdns1Mv/vTZOoVZvp1+u6mhwHB2Anhx42QhSpiyh259Wb1s30GTbT3RzNREep13fhFGooXmfkug7r/nMwdz9Rhz6wOAVRZFL2zK2OOunsy99JBZfB+9u/UDofkDg== 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: List-Subscribe: List-Unsubscribe: All functions defined in there depend on MMU, so no need to compile it for !MMU configs. Signed-off-by: Alexandre Ghiti --- arch/riscv/mm/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index 3a4dfc8babcf..2c869f8026a8 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -13,10 +13,9 @@ endif KCOV_INSTRUMENT_init.o := n obj-y += init.o -obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o +obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o pgtable.o obj-y += cacheflush.o obj-y += context.o -obj-y += pgtable.o obj-y += pmem.o ifeq ($(CONFIG_MMU),y)