Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp939163lqb; Fri, 15 Mar 2024 10:22:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKEdoakG611I99EMMov1w/rSoq08NP6Lk/6byMiMFZcRI1CiOdOH2Jz0F62pZRWq3gED6fYimqK3GyaMrZ5tjKsP1NVb4o4RecPqVOVg== X-Google-Smtp-Source: AGHT+IEnhboCK251x4ZL8/kJ8VSyhyO0cwLP9aXvSVcJQfyEaGJhSAUcwaYYWuRpL8vy2+zPBsdO X-Received: by 2002:a05:6402:3416:b0:566:cef8:5440 with SMTP id k22-20020a056402341600b00566cef85440mr3411532edc.32.1710523358664; Fri, 15 Mar 2024 10:22:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710523358; cv=pass; d=google.com; s=arc-20160816; b=QKItEeUUlU5xS6PHdTIlg4w3Tc+LFGU5rUTQpfs65kgLxb7PT2+whjaNznOMNgl+tf XnU6aP/jvCSaUoS9my0864Sq6fw1xuVQRL1aVIUmGjw2NHI8s8/gSfpQPh7Ues/r5wVo iwencm+LxciklXn8GgoRFzO133MGCfJysTUpO5H77gE/ctYIV8w4zdFJsnIMxgPGZW/N mP0yWVUxswLLO7VMMBnmU2zL2ysfLJsSNwzhZnILteFwKbQ3/6wfERpXgC/Bp0qR91o8 fVAuRfO1cX+GcLAn8DrETFcTn60pLcyUxPMcw37HP5Z/lG5eWHUWmL/QcjhhDLR6Wnll SDTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=Zc35f3DVjPDaoxA34gP7gqIyNIz6eucHoZmbR7gwzIU=; fh=PXaF6WkBhilFhhNK+mYY/rWNn5sBomKxbNAtGDHsnVY=; b=h/Hx2YFsDsYwM4M6VY7osfv4cTMs6XVWH0OnXfliXu96p0h567rOJh6SFe/OYghtbO c42SqnCgeMhoHbB7ev/VN/jAZfrsEH1OL1Kccfz1ygkC9zh5JRVXWjsVy6D+78K1gUb9 wHhCOiRKUYg8XXff98+CblxfCyuF9KnZClniNzFo2KCXRykJkO+nEIEfsR9Qe172ooyc 8OQ9LXmY4eylsscFe6gpzs4nQXyiNgnrBqYoTENUDa+uFje4cQXPtckL+81HLOS1u/VH 4S8PxkLvi41B8y5IcUKmvGjCrqlgexWUlJ6c+6Uqv03n4DY9x/3jeM9eVd11/vXDIc02 XEWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=mCex2oa9; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-104701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104701-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n9-20020a056402434900b00566df902329si1920947edc.628.2024.03.15.10.22.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 10:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=mCex2oa9; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-104701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104701-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3E7421F2580B for ; Fri, 15 Mar 2024 17:13:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9244B4D9FF; Fri, 15 Mar 2024 17:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="mCex2oa9" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1BE74CE09 for ; Fri, 15 Mar 2024 17:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710522825; cv=none; b=DN5xyqvV4nDFGqS22QfWO18v5VFKi7Mrnz85zEkru4Rd7r+KMCF5cbxWlBtOOYMawnQ+eNLesocay7cm9USNPMoq3HmQxn8WBGJGw6n/TvMyeO4JftfK8vr6hcwUDMLPCmi4F0S/dozLxDd2F3mAQuVKKf66LPO+yZ+uK2p76pw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710522825; c=relaxed/simple; bh=aZ8rwMULBoPPaxzJOHFAyuKbYEBSOxO6PUvmQlIALBc=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=ptq88Hyk3e1RpEBE3R2lK47K2Jd8TCmGJvF4rHZR6YKqBmalYrGuFYa+MfQuIex38ijAN1cP9nE9MbyvU4b8pHiOa8xLma/vxXutreBloKIpKuDAwFX+QL+OLl6JCAKalI2EPUJHd1Fk1XtoM39kjIj0Fvs01mWc8PJEWJ0hl3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=mCex2oa9; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6e6c8823519so2298028b3a.0 for ; Fri, 15 Mar 2024 10:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1710522823; x=1711127623; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=Zc35f3DVjPDaoxA34gP7gqIyNIz6eucHoZmbR7gwzIU=; b=mCex2oa9W3SLLDrKtp/KppOsHVnMH7COXB4GYl488LPTo5ysSTmAryhCU2UxG1phPe 9LFZa2MaJvgg8lAO7pIFp3GM3VU77WyBXCHGfRzafmIUHE+DyQubNkWxdwQq+TTydakn AezJPE6SWXfyTy93tv4z+pqcFGuLLGlwMfQ/YIR8/Rd2qL6gfiCtyUMwtNYRNCfeczYv rzGD0TrlCqRolU7Vl/K0EeRvUM69H1Id8YAQOp6yM0LOwcRfi3egO6o3lu4F86oWShP9 7GDsvGy/QM+Ya6Vj5KZOYmZglcqBoonI1kTpjH1+oeHMZWh1fAQElFhR02j3B3Bs+qxw +SQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710522823; x=1711127623; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Zc35f3DVjPDaoxA34gP7gqIyNIz6eucHoZmbR7gwzIU=; b=dxlVma9EK7B2wf/uX9RIfW+LGF//jx2uMahcLHGud5VMqSMiJGy/XwKAiG6xgb61IA 85WO8yPDgLvkIwoLKGPF03OZ1/fle7J9WkfwPh2g7Dw8rEeSRlgQ6T515y4UZAMOkxFx RkaWE8Ui5MeSkI4FhRyPHNH72kFz+oRYmCgmzRD+Kq1TKjghts/esf7j2XTzntplLK1M G+ZSse78mpmJjzV5Z/oV/Wk14MxInL9bXVPSzLhn2v/ZmPInYXZV5SApRLnU9qregI6v LFSy2MjzzChsU7vRKyKVmDtyWv/zTbhxu5BEKgA4N+Q4HctMQW5isu0p/pQJkop1IV5F nwGg== X-Forwarded-Encrypted: i=1; AJvYcCUcPy9XjIqJhj/tpbMCo6ehO/nQrf8gY6G/gjSk0ZDZqZZJVuvlKyf64tG6Z63bUo0bbS8P9hEmAzVg6jq3qR2dbpBxKOHgWGJyJF0u X-Gm-Message-State: AOJu0YxOjK0YFBfJpQgOKFbwW+urDUXxSEzh2atSA6p0ttEaT9PYbS0S zOg4VpHsPYhwgyA5Y2EpkQHbyZQ5Sq/PIVhMJO0l+WOc85D1efi1d8kIArxSYoY= X-Received: by 2002:a05:6a20:12c2:b0:1a3:50fb:4f7c with SMTP id v2-20020a056a2012c200b001a350fb4f7cmr1930770pzg.29.1710522822795; Fri, 15 Mar 2024 10:13:42 -0700 (PDT) Received: from localhost ([50.213.54.97]) by smtp.gmail.com with ESMTPSA id r12-20020a62e40c000000b006e6fc52ecd0sm1361552pfh.123.2024.03.15.10.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 10:13:42 -0700 (PDT) Date: Fri, 15 Mar 2024 10:13:42 -0700 (PDT) X-Google-Original-Date: Fri, 15 Mar 2024 10:13:31 PDT (-0700) Subject: Re: [PATCH] riscv: Fix compilation error with FAST_GUP and rv32 In-Reply-To: CC: alexghiti@rivosinc.com, Paul Walmsley , aou@eecs.berkeley.edu, Stephen Rothwell , linux-next@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: rdunlap@infradead.org Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Mon, 04 Mar 2024 08:47:43 PST (-0800), rdunlap@infradead.org wrote: > > > On 3/4/24 00:02, Alexandre Ghiti wrote: >> By surrounding the definition of pte_leaf_size() with a ifdef napot as >> it should have been. >> >> Fixes: e0fe5ab4192c ("riscv: Fix pte_leaf_size() for NAPOT") >> Signed-off-by: Alexandre Ghiti > > > Reviewed-by: Randy Dunlap > Tested-by: Randy Dunlap # build-tested Sorry for being slow here, I just realized this was a result of a fixes/for-next semantic conflict. So I've merged this (on top of the broken series) into for-next, but I'm going to hold off on sending Linus a PR in order to let it get through the testers. > Thanks. > >> --- >> arch/riscv/include/asm/pgtable.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h >> index 25ca14f6942c..54d26a07fa63 100644 >> --- a/arch/riscv/include/asm/pgtable.h >> +++ b/arch/riscv/include/asm/pgtable.h >> @@ -439,9 +439,11 @@ static inline pte_t pte_mkhuge(pte_t pte) >> return pte; >> } >> >> +#ifdef CONFIG_RISCV_ISA_SVNAPOT >> #define pte_leaf_size(pte) (pte_napot(pte) ? \ >> napot_cont_size(napot_cont_order(pte)) :\ >> PAGE_SIZE) >> +#endif >> >> #ifdef CONFIG_NUMA_BALANCING >> /*