Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2171346rdd; Fri, 12 Jan 2024 01:13:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxs1884Smad30PrxCA/YT7q57V2j8CLD82Usy+/Hzla8tr9/y0GpvIXzWd9fK4tHi5nHmj X-Received: by 2002:a05:6830:104b:b0:6de:5105:f297 with SMTP id b11-20020a056830104b00b006de5105f297mr1261684otp.71.1705050838419; Fri, 12 Jan 2024 01:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705050838; cv=none; d=google.com; s=arc-20160816; b=RNP6dXCFV5pJ1jR5/Qryb++/pCh5OhKWCLq5DwEEYJ1XKeptC6FBULRUnW6d9xIYlj 8cw2us8SpSQzOFa8Dzi2bC8UqPFoDvpyeMUOsd8AxF0N5msow0nOvjBVp8/2s4kA0tvu IRtO9+BHEUtHp+Bpd9rIhTPvoekzPV0lm4YupWiSemZB/PWaqwM0u//BlXs4IIuw76j8 V+d8ZQ5suQ38ef0g5pqxr9q0I0Rjdb/gxRt8YIx1OmWcATYIN7BC06Ac6Ub72QIJbUJy Wz5gUzHqUVE9H4FeFZQZDb+BlcCchi90bfWfHFdfHNMNpABqRby5iBO1SAT4PsaBpYuG Dg+g== ARC-Message-Signature: i=1; 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=2GNCOaNf72ac1p4DJQFQCIdNNRWbinhqfQ3wnSBTC9o=; fh=qGAKtm2PD+NxJ1Hk/Ovt7q824zeHFTw93aNWsehQ8wc=; b=gNcNb+Snaoht7lTbf24qqIw9CRuAhk4Qn/1gvKXbUa9B0M5BCNED1hpqKZyNnEXfYf fuWE/ZzTIz3KuWva4AsnXkjODk+rNh+0wHMcuclWmgPqZbhnOeyAiohePYcc5JSSHLh0 HagD5Rab2ZQxjReKFpepbKFXMcw74bNshdYviOK9U6WpIsIGo/W8BBaA/Li2KA3xyFNY aNWrC3iDUeDP+jXmcakr23oonTZyDr9kZRTp5NxJzhF+iEGj2QCMMiiKznW8ulbgUkIr koepKed0FLUhWcZomWQvF1Pel7cMlYz9cctWyNv7qAKCGck7peB9TYwJFt6UdTxWo5Gq jnUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q0mn+R2+; spf=pass (google.com: domain of linux-kernel+bounces-24451-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24451-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i63-20020a639d42000000b005bdfda8e044si2860536pgd.775.2024.01.12.01.13.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:13:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24451-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q0mn+R2+; spf=pass (google.com: domain of linux-kernel+bounces-24451-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24451-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 47FA9B23EFE for ; Fri, 12 Jan 2024 09:13:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EA2B5730A; Fri, 12 Jan 2024 09:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q0mn+R2+" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 686CB57303 for ; Fri, 12 Jan 2024 09:13:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40e66315d93so3591075e9.2 for ; Fri, 12 Jan 2024 01:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705050796; x=1705655596; 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=2GNCOaNf72ac1p4DJQFQCIdNNRWbinhqfQ3wnSBTC9o=; b=Q0mn+R2+YZDM8WVoc0EbIBprPnYbONqSEAClBPM0Qz63pc6CmGwqxQ4MvPyMmzJO0N l7jCA9jM/0Q2YK5ywXKOJe+1d9A9dzSzgC/+u6msnmUGpu9823BtfaYiv773Y3B4bqxq 4x/4VepQLK6sYOE/rcdnaYEgaut/XHalUdXwv/OhI2LYsQxA4oiVTxfc7zm8LWEnPtc4 xNG19VltjISlwyUqEZ2kfxLa+MvGFnL67IFpkBsFwii0KPv2GZo1I2BBfvAvzGK7XhYL Z6WWojzGI9SpjG4UsTVuOGciTCA0HCamz0Ff9Ehde1GVDYRv+i+0rvEzmnjzh7/02fLU +mXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705050796; x=1705655596; 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=2GNCOaNf72ac1p4DJQFQCIdNNRWbinhqfQ3wnSBTC9o=; b=Ru5Ei9CL6ugvZvYGOADd8hYTDdm2OtUxG2bxGH1YgyapvyuRqp/G6mpzV6hNVomKwi oB1FFs8c4HxRcG4wjQNM+daVgxncCRdEDeOK7Qni55OHMvbauRN7IKw6mDAl4jD71SkE wxG9TMRXSGdMnLbPrHRWUAN+yVxVYOE9ny4inDyNb9pqRL+2r9ZK23rLu6fXuhy//bF6 aKOrbAX8/y/YhvVY/y/Rhky9aoCO/7X1pVXNeBk1FF21rZSZDyhkOB0GmInp2zLkIIZc uy1QrrfcVEGSiglfidGutgkvdils2GpS5GovvoojXTgbAUFoyi8XeZb+8hHH37a5WDAQ Gp3w== X-Gm-Message-State: AOJu0Yz2YDxkLzXL+POj9QY7vT0liOBdp6kYcU31eUdWv/1sWg8/MXSh jnVDkE8IRVkc+AWpUCxtgWjzHIftPJUMcaH+3DGvJchnIHg= X-Received: by 2002:a05:600c:8608:b0:40e:6238:e92d with SMTP id ha8-20020a05600c860800b0040e6238e92dmr494214wmb.128.1705050796719; Fri, 12 Jan 2024 01:13:16 -0800 (PST) Received: from localhost ([102.140.209.237]) by smtp.gmail.com with ESMTPSA id az8-20020a05600c600800b0040e49045e0asm4991809wmb.48.2024.01.12.01.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:13:16 -0800 (PST) Date: Fri, 12 Jan 2024 12:13:13 +0300 From: Dan Carpenter To: David Laight Cc: "linux-kernel@vger.kernel.org" , Linus Torvalds , 'Andy Shevchenko' , 'Andrew Morton' , "'Matthew Wilcox (Oracle)'" , 'Christoph Hellwig' , "'Jason A. Donenfeld'" Subject: Re: [PATCH next v4 0/5] minmax: Relax type checks in min() and max(). Message-ID: <918545c4-0870-4ea5-ab11-53eaed91aec7@moroto.mountain> 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: I've often wondered why so many people use min_t(int, size, limit) when they really do not want negative sizes... Is there a performance reason? git grep 'min_t(int,' says there are 872 instances of this. Probably some do want negatives but it's a quite small percent. regards, dan carpenter