From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 AE942251789 for ; Wed, 5 Mar 2025 15:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741190381; cv=none; b=AzHnMA5LrxBPgJrbdDp7b0VJOFkbRL485SDhgvW86FrJ+fr/KctacEtp8YHe+jozyHYLU4H6tvN4sPxU65btZjAmG2stFhqL6Nxtw4NloXzHJeFujCqwHtZ77L5LlK5bDR1LpttXTfqHjodfM7hW3GsIF2Cq260wniH5Xj0dOjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741190381; c=relaxed/simple; bh=+DDI/RZUnxrcWdczPY+9G2dY/T08VSNyBuK6BnVQ0UY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=oUyfFCvSUApFpA0v/SVWt91uvi2opLrmShVmS3SrnasY/RvXqMxwc9rWvJPbO+GCn7AFCqDoo2mkw6kkskGcGNoBjkGJdfk3qOxYZ9am7buHuuCReLYnS7gThryzmqTXLFAoGphn2kw4ool2mCaczlo+VpaCTvu60qP7h+/JfTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mf/B6+jC; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mf/B6+jC" 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: GmpBK5euRe61TJED4VB0Cg== X-CSE-MsgGUID: weBYzCkRShiRoQFaJCGcAg== X-IronPort-AV: E=McAfee;i="6700,10204,11363"; a="45816907" X-IronPort-AV: E=Sophos;i="6.14,223,1736841600"; d="scan'208";a="45816907" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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