Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3521533rwb; Sun, 30 Jul 2023 09:20:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGpEEr18cMbjwcDuuequnf3nb4k3FWf7tSqCepGErbjNqGt+uBpJFbLxWiu3Wn6kInRrLb1 X-Received: by 2002:a05:6a00:2491:b0:687:2be1:e2f6 with SMTP id c17-20020a056a00249100b006872be1e2f6mr3852221pfv.16.1690734022258; Sun, 30 Jul 2023 09:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690734022; cv=none; d=google.com; s=arc-20160816; b=xfGLtLZb4NgjuJ59ZShipX030mSmbYumX1Zq/1YcmbM8SB5uIcgUuJsiFeECLzLCZi aU8IovMIYZ5hzjApyx3jpMMJnnOLlZR4lDjTjwa2KG3XYqQ4f8BQKRVdxkX6QhGupZej uRlmx+fMvUGNWKNFmEI5BQTn90T1mWdgLpS0W0ONVssOE2aI6zixjmgU9DEyaz8rIWge waamwhgKs1iPV3dis9v1dl16LhKcNjUOtvpncJTzT0uc+1o10m2jH1r9eqv0UOTss7TX 4DJhUlhaQq2IMw9OKxZToz+iniB/Mp2aw4JoaEeeC/8CMCq40y86oHnRX8WMLg8Z4Wkx P7CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=35zBQo/MmpCj8eVzbRX7CDfzrixfLuDQhvtO1AAfT1Q=; fh=hhiEH+GBmrFxeTo/IgeUQjfZHH4ZRJXIh0bcC+jhEpc=; b=uswWmov3y1NyTf7uOJO1x2vu6wrYYPRYm7NrmE0x6ELYInmNkWEn+uh04M+HLJ6e9I Tu9S3WLuM7DDo0NCq7xDGfbLlxXq5L9pbnzcRIqR6vyES90oSOUvIRkf/Ca2IFtNdb2B ruIn917pRMCZW/Vm2p6jQDVzXUNvlzRANdMWfpYWlLMjORC6PREHSgx5X52If0R1BOPw 6zMAYUFFosG3h52Ozu3bZLDq7ZpuQ8hbvpeBD4XliXXD8hOZB+9MZY3ZHBQujH9G/7G+ KUR8G4xR39+T3e6WpQsKC2nFmgMHPClTFaNxsyt5l/6o2+SbmEMco4A6WKFg2H2WOIga wMJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp20-20020a056a00349400b00666ad95e625si1433235pfb.337.2023.07.30.09.20.10; Sun, 30 Jul 2023 09:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229684AbjG3Oz6 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 30 Jul 2023 10:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjG3Oz5 (ORCPT ); Sun, 30 Jul 2023 10:55:57 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C45A1708 for ; Sun, 30 Jul 2023 07:55:55 -0700 (PDT) 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-227-afRMa97OOsCFXP9pp-J2oA-1; Sun, 30 Jul 2023 15:55:52 +0100 X-MC-Unique: afRMa97OOsCFXP9pp-J2oA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 30 Jul 2023 15:55:50 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sun, 30 Jul 2023 15:55:50 +0100 From: David Laight To: 'kernel test robot' , "'linux-kernel@vger.kernel.org'" , 'Andy Shevchenko' , 'Andrew Morton' , "'Matthew Wilcox (Oracle)'" , 'Christoph Hellwig' , "'Jason A. Donenfeld'" CC: "llvm@lists.linux.dev" , "oe-kbuild-all@lists.linux.dev" Subject: RE: [PATCH next v2 2/5] minmax: Allow min()/max()/clamp() if the arguments have the same signedness. Thread-Topic: [PATCH next v2 2/5] minmax: Allow min()/max()/clamp() if the arguments have the same signedness. Thread-Index: AdnBYvtzc0TxoNEXQSCZpxDmi1SwuQAVSEEAAE9F14A= Date: Sun, 30 Jul 2023 14:55:50 +0000 Message-ID: References: <202307290943.ODVeyeK6-lkp@intel.com> In-Reply-To: <202307290943.ODVeyeK6-lkp@intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] 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: 8BIT X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot > Sent: 29 July 2023 03:01 > > kernel test robot noticed the following build errors: > ...) > compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git > 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) > reproduce: (https://download.01.org/0day-ci/archive/20230729/202307290943.ODVeyeK6- > lkp@intel.com/reproduce) > ... > >> mm/percpu.c:3102:10: error: static assertion expression is not an integral constant expression > base = min(ptr, base); > ^~~~~~~~~~~~~~ ... ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/minmax.h:23:2: note: expanded from macro '__types_ok' > (is_signed_type(typeof(x)) == is_signed_type(typeof(y))) > ^ ... > mm/percpu.c:3102:10: note: cast that performs the conversions of a reinterpret_cast is not allowed > in a constant expression That is a C++ error that seems to have crept into C. The relevant definition is: #define is_signed_type(type) (((type)(-1)) < (type)1) This seems to have been fixed in clang 16.0.0. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)