Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1716603lql; Wed, 13 Mar 2024 06:29:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7O2L3Q5FtX0Wl++Tdux23xYPa5u1bH0G8aRJfNXuBCxvpnVaop4gZNu3Hl+djrkjuyW2nCDcfWAfBeMAfvRAZwyHTkocrunH3jorYgA== X-Google-Smtp-Source: AGHT+IHZVn1W6mO1gcNIscz5XC9OczwG2wRYO3XbijP3aqUHbiEFhEuZ5hhB7ham4XstTAhKBETE X-Received: by 2002:a17:907:d310:b0:a46:3d7d:358 with SMTP id vg16-20020a170907d31000b00a463d7d0358mr2321028ejc.10.1710336550727; Wed, 13 Mar 2024 06:29:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710336550; cv=pass; d=google.com; s=arc-20160816; b=XOq088hxfTXvT8yOGB+n1Qzp+Yd4ojX3Em4KqLdru1nhQR0D/nLSoiueo7TxJR/zcZ dQEBoRZFDC9FEB8Es5gRpiSdnKpo8Kb/OA8L0vpZc0iwSsp338oZaLTVyKZ2rCmYi+Wt IfeRXLjI07PA3bq27TCZk3ZYSoOwx5mTg2gm1fm38GANmV7f2OddrCmX6Vp5Wsasr/QR Bpto7fvPAMWGV7IGNA5KMr9DIJg6MTDSTTZ6wU7cNTNXOHjxqEpkFFYnX4PRrbA4EE/I I1KKUOKBtE6AkzqOrbh2Crtpelocnxq5JpxcL5hI8099AP06Ua8rCOwAX8xrSQ1Lw3Be O2jg== 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:date:message-id:subject :references:in-reply-to:cc:to:from; bh=15l2FA+UFUwPew5YrekttO1FI/Uh51YwuuIsx0go+yI=; fh=IR91BQ3BTLGB+0AI4Bc2xTyey5jdWHvJZTUP1W3El1o=; b=WsUekBVm2mDciObBRcqT3ZXmCHTYHAA4dO8d9BkSxIywG2A1u0zufeqKbz1nvsAaDE clZNKBEtSDv1rwXZ4AQcRHv3fOfAw8P9MI4gnqCqs0BBnLd5HyFTtEDirY6YOallWpwy 7+Vmc3uQOqgX4zvQ0JrndB5OfnQc3Chgyo2XUoQ9iG/FFHxP/3gZNTtOlzdxNWRisBKg ilGVocXHNnYYahfSrQ7jPo0t7LxfTZFxPsK9rPAfBU7APnrL0B8gP2RtPtEQbBDH/5Nj Izf/bKznXIup71woMDYcKw6NGaKuHjrR+aiQSvKB/EfvNgPx561kf6vzmUAUZgiqs9c/ iC3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101532-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101532-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f24-20020a1709062c5800b00a4662d1a89csi277660ejh.59.2024.03.13.06.29.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101532-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101532-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101532-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 5FD7C1F22712 for ; Wed, 13 Mar 2024 13:29:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61938487BE; Wed, 13 Mar 2024 13:27:57 +0000 (UTC) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 6D27446BA0 for ; Wed, 13 Mar 2024 13:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336476; cv=none; b=osIvCs/N8jMp2Q/FJG0V7ui/XeIwHJ55Y9fEXt43DOQVCLmggCyDNHylf4/V/MIECyeQHjtKdpgOwLCuxv/QLO+IgVBU77awWs7i1v5cLamxDSlGij5JCqDULnCrIoPmlma7U2eE6WEN1vqgFN28Wq3PDG0lT6JlaB1SCHBH9lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336476; c=relaxed/simple; bh=KsqtE0RnoxxjoooDSevmuSJIEOTRdMJjG9AOWbmqlm0=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=oKS0hb8n7wWwNQWtUr2RDMPKjv+oqTXppgYsK1t7lwB3c+hKZ8ie95ntm7nOaybMIGx2Xl0qGiU2wh82npeXPRnjGwXLct8AO69hVdSqfz3X3eJ3uFMb24YjJlo2q5yLHg4bObQdn8iFd2MUzbF/46j4nEM6DD0Kh9MM4GVAX4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tvrt00P8Zz4x1d; Thu, 14 Mar 2024 00:27:52 +1100 (AEDT) From: Michael Ellerman To: Nicholas Piggin , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: References: Subject: Re: [PATCH] powerpc: Use user_mode() macro when possible Message-Id: <171033598336.517247.12211842941297180348.b4-ty@ellerman.id.au> Date: Thu, 14 Mar 2024 00:19:43 +1100 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="utf-8" Content-Transfer-Encoding: 7bit On Fri, 16 Feb 2024 11:10:36 +0100, Christophe Leroy wrote: > There is a nice macro to check user mode. > > Use it instead of open coding anding with MSR_PR to increase > readability and avoid having to comment what that anding is for. > > Applied to powerpc/next. [1/1] powerpc: Use user_mode() macro when possible https://git.kernel.org/powerpc/c/d5835fb60bad641dbae64fe30c02f10857bf4647 cheers