From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DE4EC282DE for ; Wed, 5 Mar 2025 15:59:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F09F10E7E4; Wed, 5 Mar 2025 15:59:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="mf/B6+jC"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F73710E7E3; Wed, 5 Mar 2025 15:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741190380; x=1772726380; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=+DDI/RZUnxrcWdczPY+9G2dY/T08VSNyBuK6BnVQ0UY=; b=mf/B6+jCd1iDaeg+dHgxJsl9EtbdbXEeiaPPe+9uDBIGIbqHmfb66zgO hDWG3KpISfGrkBKoQRsvdqjdgFqgxkRSFW5aDjgWFoaBOVBhKhhupDKLJ Lyn7TuuZpdpdzSlgYOFjpeJ7Rtf/p9HXxfZC2As+Wi4Bv2jPtrSH79uwF SfJ46M8T/N7lBm4MXtfQ5lW8UGn9cbW9mqYQiSr50ERTsFuhdeX+rfDfq ekB0C3yGpU9vA5AawYXsyJZlF+5ucPJPVRAPny13Bn+dYCCew1qTQfHzq 3xAgqZMW9D5KBeDi5TxL5l0mfMQ9LNFOn8vJF388Rgee+hNENNP6pWuEi g==; X-CSE-ConnectionGUID: ZUwIcqBwTDaeUMRdF74dTw== X-CSE-MsgGUID: BoKG2BqAQcuQnFtAIivDhg== X-IronPort-AV: E=McAfee;i="6700,10204,11363"; a="45816913" X-IronPort-AV: E=Sophos;i="6.14,223,1736841600"; d="scan'208";a="45816913" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2025 07:59:40 -0800 X-CSE-ConnectionGUID: cRRjMW9XTea7ITvIWpF/mQ== X-CSE-MsgGUID: u2vnr6OSQru66jZ7CcjiDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,223,1736841600"; d="scan'208";a="141970238" Received: from mjarzebo-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.49]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2025 07:59:34 -0800 From: Jani Nikula To: Vincent Mailhol , Yury Norov , Lucas De Marchi , Rasmus Villemoes , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Simona Vetter , Andrew Morton Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Andi Shyti , David Laight , Dmitry Baryshkov , Andy Shevchenko Subject: Re: [PATCH v4 0/8] bits: Fixed-type GENMASK()/BIT() In-Reply-To: <20250305-fixed-type-genmasks-v4-0-1873dcdf6723@wanadoo.fr> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20250305-fixed-type-genmasks-v4-0-1873dcdf6723@wanadoo.fr> Date: Wed, 05 Mar 2025 17:59:31 +0200 Message-ID: <877c53xycc.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, 05 Mar 2025, Vincent Mailhol via B4 Relay wrote: > Introduce some fixed width variant of the GENMASK() and the BIT() > macros in bits.h. Note that the main goal is not to get the correct > type, but rather to enforce more checks at compile time. For example: > > GENMASK_U16(16, 0) > > will raise a build bug. > > This series is a continuation of: > > https://lore.kernel.org/intel-xe/20240208074521.577076-1-lucas.demarchi@intel.com > > from Lucas De Marchi. Above series is one year old. I really think > that this was a good idea and I do not want this series to die. So I > am volunteering to revive it. Thanks for picking this up. My acks in the patches still stand. BR, Jani. -- Jani Nikula, Intel