Received: by 2002:ab2:c01:0:b0:1ef:a04a:229c with SMTP id b1csp35720lqb; Sun, 10 Mar 2024 00:54:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXxk0H7rYg3DE+oNTQUbox80M43un7mFDG4xdouxCby8qwJHJI4wG86G0AcdTPsRrhqcolat5gAhSMsuVOCyC88IXEu6m7ZXVQANVweaA== X-Google-Smtp-Source: AGHT+IFUD+JUhcc+vy4YkO/lXLOy+54zNKjmDpM2yEcMUAoKKvY/PqZ5DqxAJjFgzAtdovfkxoUa X-Received: by 2002:a05:6a20:43a9:b0:1a2:d991:c020 with SMTP id i41-20020a056a2043a900b001a2d991c020mr4206548pzl.17.1710060873403; Sun, 10 Mar 2024 00:54:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710060873; cv=pass; d=google.com; s=arc-20160816; b=N68PdHNZapd3Si5KxY2FkbSi9hOB0FoHXlA24AXFcUXuJtMrrNp4CPY1wMZkmZWTxp o0vXAkU273F0daRO9N2UTNfwBaPlLHm4pgEfWkw0Kz73uyGBUhmj7aF2oJ9ePWnnQEms nT0xHZKvjNVZfVjghGbmOCooN9BSpEcJs8AqApHMvMOe/qImkYu+UTxbl0qBo9in1Mlg qu5Wxk39Oej5ct+227AQj59btijRq8OjUj83S3dUqMMRtHz5F8esZCwwva809Hrei3Ng Yz4NERet2BnJy5dOOXNMfgIjZlAUsj2ALMwz4YogzjYH/qlBoxzdgq4MQ2yC5XsYOS65 Dn9A== 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:date:dkim-signature; bh=yaNv/cH5pcXfLKx3G88KIeQrKhEm2jihXS83oIwf6QE=; fh=FC5cZ4y5cGw5TQs9Kbq1pmBhCD9HlOa3fDZ2nlJPP2U=; b=Wgq/twS3Ay5/XG26jeoEqJz/8H7prZJHXrcmuEGxNdN6JaKDIJ46SBaVKJavmFAETn iGPD0yjaLzgG35r/0TJ/w0rVgPpwOU5SWYrddnXSeaZWT6Wip+jEGRcsDz42OS910krf /P1UauOCvYkhGX84oKEPWGwXUwimgBsB6bnQl+6215Dzl85uobxCgXNhohpsUa/8Z3nQ bDVzGZxaPH6ZtANysaM9BTHafMfdcYcTxVNYxu9eAqW+uySR4OQTcYiuPZ5ucU/G0/6A XLR/v1ZR8CJsOIo7UAc4c+BiuG7gK8KT3J6jsSWQnFNrOCpFxqi4oBhFoMAvyYRmq3Ht meIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KSWi1DhI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98163-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98163-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h22-20020a632116000000b005dc8a259903si2710673pgh.453.2024.03.10.00.54.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 00:54:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98163-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KSWi1DhI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98163-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98163-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 140792828E0 for ; Sun, 10 Mar 2024 08:54:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C0141DDDB; Sun, 10 Mar 2024 08:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KSWi1DhI" Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 AC82633FE; Sun, 10 Mar 2024 08:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710060866; cv=none; b=pkMxsVbkR8tCZaJEl31RgH3WuIDW9+BMQ9fsE6EFJM4KpdAwmBvTtTBwchmFJF64/VjZ1jUUgDBApXgMPwah9+TtrUS1Cok34WHBBCafhNgb12jFWNmkPvTtaS/h59Q3YzBJV1n97PeH3JdnnezfMJT51oV+7xFku4/L95shs7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710060866; c=relaxed/simple; bh=KB4Zv3BC8DftspKQqdE5wd50UdwEPrwTsA3NxL6cUFo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ecf3MrJCNa7XDWgY+rPnUWzi61dbIc/aaXKFPmYFGotzRH9beNO9I1dz7sEj7jkhKeOAfivli5NBnh3B/ixugvvawlsX0UEIKfjy/Aw1NgboESk2HZAKYpKKhzY5MhX8OsX1GuEKGG1tihviQGffm7D8bpsPFQkUUEtwEcMmYVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KSWi1DhI; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-33e7a109a7dso526731f8f.0; Sun, 10 Mar 2024 00:54:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710060863; x=1710665663; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yaNv/cH5pcXfLKx3G88KIeQrKhEm2jihXS83oIwf6QE=; b=KSWi1DhIaWjKTpND0GBytIr84udn5tTlXYlhp20Mot3B2KmRoLP4lvpqiSvciWtbaI uCWmjPmPE6SAvDpiwiQjc8c7LZNI5Y4HQZDAw9iP85zg8S0SrXRq+prYcTPLT7jHZw4l lv+vcEC77aFxaAfNAaNO/E91K9FaHVLWg05WFfTkdG+icMSlU3eIsNF9SE0b10te2SEC tAHSnwLoDpoaXiuxVrBw9ZOmt0L5PLSBfztsQEgz4OCPOhL1W3kbaRMwK1LO3N5fm4Xj ia2Kz9CGTP6AHunpAsdw0MnRflUstkFDSMKKvC60W+i9MJrYUBuJmvKcoYEDX4AlEHGP U2Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710060863; x=1710665663; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yaNv/cH5pcXfLKx3G88KIeQrKhEm2jihXS83oIwf6QE=; b=Aed3i5xX3NRildwLb7oKr/zVt3dkfwNfxvoxTv8DUtN6aLt4bN5XPS9yywcZRQ2fx9 1jZxWr26Cn+6vM07gtaRkVms83zmmyj6B8RjJLG1Cbb1knwu5Ap6KzTg/MLJK3JxpU5g +ivg1F/IBtlRjjXgZJh4c/Gpe1qbBGCOyRgUgxyizjOtIKOobMf9VfBSGpsA/71w9Mr1 27IqLYd6wurZxV6ETG5FGLr0eEs9iRWFAh1H3qeeYMOML71lF7su1Hsk2+rB5kewbhXN hzehprPbbxcbkCpXa/kxmP4vyZDIUOPbPQnQPqXf46CN6inboHoWyFn9S9hfMYCWWGK1 LFXA== X-Forwarded-Encrypted: i=1; AJvYcCWzbthss71OYBbbAZIyPQbf5giOG2eCMN1uYnjvoPuDdeztiexjjb1+YiAeiWiZqagCEKwc3io3QpsgbCw0SjhBRKGdXlL4F/KPW1dR1Nxc3HXbEV3x4XRoQ5tcvMqRWBIpmFLAdNmZdo+S60Q= X-Gm-Message-State: AOJu0YzEXpjA0BnoMjdheQ4btMZVLj0w1gs0TVSr5vgyzHHi04axDHgg YUPQfHyi6uOO4m+G3KL6JbmI5ZClyWm0qVlPIzcGALJt6HAUg2cWeabi0EYMOcLDiw== X-Received: by 2002:a5d:4fcc:0:b0:33d:be93:5021 with SMTP id h12-20020a5d4fcc000000b0033dbe935021mr2555657wrw.58.1710060862720; Sun, 10 Mar 2024 00:54:22 -0800 (PST) Received: from localhost (cpc1-brnt4-2-0-cust862.4-2.cable.virginm.net. [86.9.131.95]) by smtp.gmail.com with ESMTPSA id q25-20020adfab19000000b0033e45930f35sm3653515wrc.6.2024.03.10.00.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 00:54:21 -0800 (PST) Date: Sun, 10 Mar 2024 08:54:20 +0000 From: Stafford Horne To: Dawei Li Cc: jonas@southpole.se, stefan.kristiansson@saunalahti.fi, linux-openrisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] openrisc: Use asm-generic's version of fix_to_virt() & virt_to_fix() Message-ID: References: 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: On Sat, Mar 09, 2024 at 06:24:07PM +0800, Dawei Li wrote: > Openrisc's implementation of fix_to_virt() & virt_to_fix() share same > functionality with ones of asm generic. > > Plus, generic version of fix_to_virt() can trap invalid index at compile > time. > > Thus, Replace the arch-specific implementations with asm generic's ones. > > Signed-off-by: Dawei Li Thanks, I have reviewed and tested this and it looks good. I will queue for the next merge window. -Stafford