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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAF8BE82CB7 for ; Wed, 27 Sep 2023 17:30:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbjI0RaS (ORCPT ); Wed, 27 Sep 2023 13:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjI0RaQ (ORCPT ); Wed, 27 Sep 2023 13:30:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDEC4A1 for ; Wed, 27 Sep 2023 10:30:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D3FAC433C8; Wed, 27 Sep 2023 17:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1695835815; bh=Zg50glGvDdtglLFeZM0bVA5Rp7XkwmC5KIuofPJt15E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lUZuSpIbYG7fm1DmDBwneBunRiwwnO9n1D97Mot1zBcW074CD3Q87G6K4PT4+IM5/ fFAso1btjJGuIqO5h0/Igolm70aJ45buEC5xNZW9JNUvGOstyFW+h5gZLnXhYJkae0 1QpdlQithxVcio0X7UpkSGZZ+okn1dzuXX2RGIfA= Date: Wed, 27 Sep 2023 10:30:14 -0700 From: Andrew Morton To: David Laight Cc: "linux-kernel@vger.kernel.org" , Linus Torvalds , 'Andy Shevchenko' , "'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: <20230927103014.683e41b855cb2cd4ea163fa5@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Sep 2023 08:14:40 +0000 David Laight wrote: > A quick grep shows 5734 min() and 4597 min_t(). > Having the casts on almost half of the calls shows that something > is clearly wrong. My preferred approach to fixing min() warnings is "the types are wrong". But often getting the types better is hard. Is there a plan afoot to go around existing code doing some min_t()->min() conversions?