Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp918614rdb; Thu, 15 Feb 2024 22:23:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVN83d3qzlB9Xvhd+TaZR6QWly4L1RgyuA34DBRwyVY5hSGCiehO8t9f1fJJTF0lNpa4UsnnZMCA9ZnIna3ZNcCy29uKaTPobr1NTJM7Q== X-Google-Smtp-Source: AGHT+IE+ToE9V1gUyIJXiTVQfhOriQcS/dgumpQQdpKceIlsIUnrdbaqMdp43bz3iyL+FFxH6A0u X-Received: by 2002:ad4:5c8f:0:b0:686:a185:dc11 with SMTP id o15-20020ad45c8f000000b00686a185dc11mr5028702qvh.55.1708064639524; Thu, 15 Feb 2024 22:23:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708064639; cv=pass; d=google.com; s=arc-20160816; b=zP8ctRqR62/7zizS6F6FOvNtgW/FarAooCP3whvzK5D99CYbeojgGTESHDGtiRBrmU LmSrAh0ZCDySIGR42N0mHuyTIMqQP6YyjKvAcT5MWglQwtWJCQbHVXV7UJGmuvppVuMI 2wEspi26IPkmWGCsHIkFD9CEvHJR5q45BzOE8Mhnd6LSeAVZHEYYwLOfIDlZgfebbbX5 vwfjgmwS6hIWhkTTVBD28bjZ6KXQbpZE2z9VGUC6yf59qTRirjD15E9iWDJJSmHmUubm m8uBKu+TAH6izKky+mLkfFiFpOp4KZ+aZdDZYAniFp1c4MXvUvC1yk0C/9HQnFbqWuOc cuMw== 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=ULnf0Z09ErzJv2F7WbwiQD8y1ATNtggEr2XiUFYMGWQ=; fh=TpO5oorlF4XPUnn1q4+NcO3qSSiFhpUn9sVYXFGIr7I=; b=KlbulvEtRcejKV6jnOOLQJEbkxPr6w0uHeViPoVjLSvY9erTxoJPnrNUF52mCq5JeI 6qyne4lVDH0PvOINayFuZAuUTjj/W/3dgO7b3lWfQaCYgMWL1664wEBZCD2kKe/FeRGz pHanS0JSrtuFIcMbhSDRqInqpH5I638MF+JQtGaAcsDp7x6YODv6DirNkztCdclO1Xfb hVPkzc7KbjL7Z1i2FVzrnq8Az4r0cHS75pCv/hastrLwebJQL6aRNSvtTMR3pFc3zm7e vY7vvVgt3Ntmygh7+m2DERbi9XBhZy0cdR/tHv8iLs0yAn6g0qYV+sMImQh73i/IC0zJ 5uRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kZ/URTLy"; 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-68095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jx11-20020a0562142b0b00b0068cb0e2e9aesi3300377qvb.580.2024.02.15.22.23.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:23:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kZ/URTLy"; 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-68095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68095-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4AFCE1C22286 for ; Fri, 16 Feb 2024 06:23:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDCB213FF8; Fri, 16 Feb 2024 06:23:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kZ/URTLy" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 8B233134BD for ; Fri, 16 Feb 2024 06:23:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708064634; cv=none; b=G6cpBz8D7Rb8hCffgxq81z4WIVyIMpMix3VgbzyrUnDwtgcOiE/iJbG9D0KAYDY4GiVkoj1q+spPPtEvI7Milv6tNx8UuzRVX732pJYGGKSAifdbzHohWXrJQHwJUi6k0wQi6Ee0JLe9r4LtWy8E0i7FRC9vcH1G6sFjVttJTQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708064634; c=relaxed/simple; bh=ap/AL4lHqZzJD3EPHrLC+i1FRpn+6ST6a8n/eXsj+LM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N6DMnUn7bwgKn47JBLUmYd7QvzZaNug83dBTEKLbRR3zATKClPPvwCWkcezi2H5KIuwrvda+9Id3G39bkYE/n7q1iFpdHeEwEVVMmC+8PS8xpDnXOkV8OrquOSUobdmR/B0a3dWU1f1bvqPzbi4OYqWRSYg9H5DHxejJGVcnEFI= 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=kZ/URTLy; arc=none smtp.client-ip=209.85.221.48 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-f48.google.com with SMTP id ffacd0b85a97d-33cddf4b4b5so1209493f8f.0 for ; Thu, 15 Feb 2024 22:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708064631; x=1708669431; 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=ULnf0Z09ErzJv2F7WbwiQD8y1ATNtggEr2XiUFYMGWQ=; b=kZ/URTLyo4lWSCtKt/6r9Yhp2MLVXSNuRFL1Te55dwuylRs5kANWeZHyhjqZUPtD6x p7d8vRQek34amCqGUZqE2BtLu1DeP2Z/uvWVfpeMOwsaTsv+/0uFxUgpp7D2ui8SiBGj tkpkT2gB8keNFpkld3CkFdxNLkry6OfZj37t8RCttKZfF9fh4J6N8ZwSDTdOsflffzjo FD6r8IfZzAHDC2WgSdzlwsu5GLEbPS/rO4cvi8RoiF0vkUxJ6mmmeDoUsfIlyU/woFlU YJ7ymsnQXYzUa94VDAeMqHE+2Ok3nJqxzI2i8o/067+eLt8LwPhTIFjn50xVSz5v2swY XU+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708064631; x=1708669431; 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=ULnf0Z09ErzJv2F7WbwiQD8y1ATNtggEr2XiUFYMGWQ=; b=tLHUYNjgbEUaL1jeLF+79qwVJHoKjIpckItelAcnKgnJZTb4U1QhvJSKRXkvKJ7W4C XzAcNlpD3oF4uWIzrylXvYH3alvieScYJB/p+oaRGhreU51kuP72X6bwM1GvKF6a650V vyjfhKACdGV2t9IGWYdv0Br7FcH62jUQlch5jxxlYa4MjWC9PK5klIQo59JO1TCMaLp0 wuK29/V4Y6OjUqEH8OfEVLpVgMoignNUPclGnc1jv58yxwcii6hxw1q99P7lqnv3byo3 BZEHn3Ez6uX2Xj0jEXooZxHh+VgMBClwRhP/CerNkO7CJDklcDqWO7/uwUR6n0CAN1Rr Hudg== X-Forwarded-Encrypted: i=1; AJvYcCWPHPCNUBxuoIsUoe9Wm2vwlDBuBjK7KzvyTBmi54+o+n7EAgl78b4XMFoVJT0BlPPyvsnDIN5hZoF5rpWnqm6pO7gVSJO+G8ubwaYS X-Gm-Message-State: AOJu0YxiJSoByNpwGiL+R62lGJpLBR1crBJ+3QVqJXunPkdzG50twIMC SpuS8jXN073Fu1R4BTKJTKkA5zqkD4+ZTHRtIs5DgCGogDgilxo= X-Received: by 2002:adf:fdc6:0:b0:33c:f4fc:b91b with SMTP id i6-20020adffdc6000000b0033cf4fcb91bmr3185444wrs.52.1708064630631; Thu, 15 Feb 2024 22:23:50 -0800 (PST) Received: from p183 ([46.53.248.67]) by smtp.gmail.com with ESMTPSA id bt21-20020a056000081500b0033d1f25b798sm567514wrb.82.2024.02.15.22.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:23:50 -0800 (PST) Date: Fri, 16 Feb 2024 09:23:48 +0300 From: Alexey Dobriyan To: Michal Wajdeczko Cc: Andy Shevchenko , linux-kernel@vger.kernel.org, Rodrigo Vivi , Jani Nikula Subject: Re: [RFC] include/linux/make_type.h: Helpers for making u16/u32/u64 values Message-ID: References: <53297b2e-b7ff-4b92-b937-116cadaf8b6d@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; charset=utf-8 Content-Disposition: inline In-Reply-To: <53297b2e-b7ff-4b92-b937-116cadaf8b6d@intel.com> On Wed, Feb 14, 2024 at 06:55:38PM +0100, Michal Wajdeczko wrote: > > > On 14.02.2024 18:39, Alexey Dobriyan wrote: > > On Wed, Feb 14, 2024 at 07:32:10PM +0200, Andy Shevchenko wrote: > >> On Wed, Feb 14, 2024 at 08:20:55PM +0300, Alexey Dobriyan wrote: > > ... > > > > > Thirdly, there were no users posted. > > for make_u64() there is already one at [1] > [1] > https://elixir.bootlin.com/linux/v6.8-rc4/source/drivers/gpu/drm/xe/xe_gt_pagefault.c#L555 OK, this one doesn't truncate too. Honestly wordpath.h _sucks_ as a name. I'd go with stdint.h, at least this name is known from userspace.