Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1800165rbb; Tue, 27 Feb 2024 01:13:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWg0T+I+FMN1NrxZ7SEHPAQDpH1Ju0PHe00G65K9MB41OlLgHq33+HiCXD9Xbnwb76sbjbhy13iUvjaYIgC1uGKh3YDGM87+DVVHHzCRg== X-Google-Smtp-Source: AGHT+IHy256w3Qx/Y8uAcmCgssWL4WlrsksmVJnpISS2stFpAiPo1BfRvI9GzXKpigqHExAI4z8q X-Received: by 2002:aa7:dd12:0:b0:565:7c8d:5790 with SMTP id i18-20020aa7dd12000000b005657c8d5790mr6081998edv.4.1709025217564; Tue, 27 Feb 2024 01:13:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709025217; cv=pass; d=google.com; s=arc-20160816; b=BmKzakKikQKO4I4HCdynbWFWbAyQ/67+0Fez72cf6vAVABgZnyZUnfQt3/ZyAKxET+ cvIfFUM6NZd3Pp1RwpAD1RH10VkRvNk0kZOB6OYv5GAwYOuyviuoDfFuieel8lH7rAOc Wb2xpho9hk1jt/sIvbQ5r9FqZdX46EJr0asroJCvXK9TWe43UZLYwQR3oZi8TtHkTHSg LCiU3c+RzeB/EA/RREDEx/XFVQd1VTREBGyW+iQCOrxNZFf+Hf0m1Ho5L7Kmjn7uHnrF MTveFaW/jy5r/1QO3D8xl+vlrXwHfcocY1Tpsx1XvrXJb7LU2TjzXCkuoL06Ewm56ViL 4Cpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=u52Fmg8OQED/NJc/WN2CEt4vjCDgNYVblYn1YhGiuMI=; fh=RjPw9n7vQJOQMyn8XFK6Fst6upvZ31wnP1EIpQqzFUU=; b=n2H8Cs6HyeneolhJGWz4WP/LzVnj58EvbJK5fGIVL5ljBYciy2EWJ7Rw+ZelrhoiTl IerJr8Xsd27TXH8+8EC9juEywFSSeSGedsOnFVLxHh48pVsxR6qFc23ENCU1df8De48X VKXZOMcQdPZ/dAuBymjfBnaKI11jKVNe6TU3J9ugMZeiBqKf3iB0xx8TU5BaoYEH0Gk3 cGekvG/i3+rtTZUhAfrkDo07shD/65lKgnTW22YLdLZDwJ323S+bc7kf2r6T1PT4EatD oNAoVeAAHmwEudzNM3ZmbnJGeLmg3KQ2CpG8x5yRP7M+txsJrcdM7kkdVrwT6lQX+o8U Vd+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-82928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q20-20020a056402033400b00564432aa4f9si527922edw.411.2024.02.27.01.13.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:13:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-82928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 507AB1F2179F for ; Tue, 27 Feb 2024 09:13:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24EDA13A89F; Tue, 27 Feb 2024 09:10:22 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) (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 7931713A883 for ; Tue, 27 Feb 2024 09:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.85.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709025021; cv=none; b=n82SLpW5WZLOmCRdCnWOgc1RCU3dWqD/61PBm7ZGvuHiNZuD7DHniE1ccCdXasjSgZdrkNLBgePgkQCOlMyEa4BV+/Vi4BsaLKhXBN1IZp+UsB0bMhGTCUP/GLysfwVBzar4ROPuswl+m7HHg1SwUleC4h2NujpqAoVrvhsFxcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709025021; c=relaxed/simple; bh=Jly1x0TaVXR1mzGdvscOnLLDnoZKk+aCmpg0T7pCgPo=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=k9DcBMfsA1BtCTyBPXXUMrB2yo6d+Zj7/R2AFvYkFKBTr8BdMYIEXj8tF/qC/CS5l+KqyZP7YkI4JAW0fQHWj/92DbDMUMrqs4dPE1xvbCdIlCmzpdRmmhMcMf+hHREVw/unfgOW/DlNOwgV8KdMJcdozlcVeZaXSvSPB2x/lYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM; spf=pass smtp.mailfrom=aculab.com; arc=none smtp.client-ip=185.58.85.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-128-E934HnI0OCyPXoda2PTIuw-1; Tue, 27 Feb 2024 09:10:11 +0000 X-MC-Unique: E934HnI0OCyPXoda2PTIuw-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 27 Feb 2024 09:10:09 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Tue, 27 Feb 2024 09:10:09 +0000 From: David Laight To: 'kernel test robot' , "'linux-kernel@vger.kernel.org'" , 'Linus Torvalds' , 'Netdev' , "'dri-devel@lists.freedesktop.org'" CC: "oe-kbuild-all@lists.linux.dev" , "'Jens Axboe'" , "'Matthew Wilcox (Oracle)'" , 'Christoph Hellwig' , "'linux-btrfs@vger.kernel.org'" , 'Andrew Morton' , Linux Memory Management List , 'Andy Shevchenko' , "'David S . Miller'" , 'Dan Carpenter' , "'Jani Nikula'" Subject: RE: [PATCH next v2 03/11] minmax: Simplify signedness check Thread-Topic: [PATCH next v2 03/11] minmax: Simplify signedness check Thread-Index: AdpoCqfCgp/0gHjwSqumBl0qZkMqdgBEnDuAAA9N+TA= Date: Tue, 27 Feb 2024 09:10:09 +0000 Message-ID: <291975e1412548daa70abfe747dfd893@AcuMS.aculab.com> References: <8657dd5c2264456f8a005520a3b90e2b@AcuMS.aculab.com> <202402270937.9kmO5PFt-lkp@intel.com> In-Reply-To: <202402270937.9kmO5PFt-lkp@intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: kernel test robot > Sent: 27 February 2024 01:34 >=20 > kernel test robot noticed the following build warnings: >=20 > [auto build test WARNING on drm-misc/drm-misc-next] > [also build test WARNING on linux/master mkl-can-next/testing kdave/for-n= ext akpm-mm/mm-nonmm-unstable > axboe-block/for-next linus/master v6.8-rc6 next-20240226] > [cannot apply to next-20240223 dtor-input/next dtor-input/for-linus horms= -ipvs/master] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] >=20 > url: https://github.com/intel-lab-lkp/linux/commits/David-Laight/minma= x-Put-all-the-clamp- > definitions-together/20240226-005902 > base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next > patch link: https://lore.kernel.org/r/8657dd5c2264456f8a005520a3b90e2b= %40AcuMS.aculab.com > patch subject: [PATCH next v2 03/11] minmax: Simplify signedness check > config: alpha-defconfig (https://download.01.org/0day-ci/archive/20240227= /202402270937.9kmO5PFt- > lkp@intel.com/config) > compiler: alpha-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=3D1 build): (https://download.01.org/0day- > ci/archive/20240227/202402270937.9kmO5PFt-lkp@intel.com/reproduce) >=20 > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202402270937.9kmO5PFt-lkp= @intel.com/ >=20 > All warnings (new ones prefixed by >>): >=20 > In file included from include/linux/kernel.h:28, > from include/linux/cpumask.h:10, > from include/linux/smp.h:13, > from include/linux/lockdep.h:14, > from include/linux/spinlock.h:63, > from include/linux/swait.h:7, > from include/linux/completion.h:12, > from include/linux/crypto.h:15, > from include/crypto/aead.h:13, > from include/crypto/internal/aead.h:11, > from crypto/skcipher.c:12: > crypto/skcipher.c: In function 'skcipher_get_spot': > >> include/linux/minmax.h:31:70: warning: ordered comparison of pointer w= ith integer zero [-Wextra] > 31 | (is_unsigned_type(typeof(x)) || (__is_constexpr(x) ? (= x) + 0 >=3D 0 : 0)) Hmmm -Wextra isn't normally set. But I do wish the compiler would do dead code elimination before these warnings. Apart from stopping code using min()/max() for pointer types (all the type checking is pointless) I think that __is_constextr() can be implemented using _Generic (instead of sizeof(type)) and then the true/false return values can be specified and need not be the same types. That test can then be: =09(__if_constexpr(x, x, -1) >=3D 0) (The '+ 0' is there to convert bool to int and won't be needed for non-constant bool.) I may drop the last few patches until MIN/MAX have been removed from everywhere else to free up the names. =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)