Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1227398rbb; Mon, 26 Feb 2024 02:58:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOjNcGAjkQjfu+2x5EJHSydaUytr+9Phn8CQq4UJ/b8pbkYLjR+WWORJt+jZdSvn0jm4tfvlsc1P0TPITTdaMSjfcuBUDQJCGpqH9Img== X-Google-Smtp-Source: AGHT+IEY3TKVT+R8HSOcV6GJBc/6Z5FdpG8yzwJam6BTodwq6SVOCzFRo1cmFwrvT+B59TGgc8Vb X-Received: by 2002:a05:620a:228f:b0:787:bb01:9938 with SMTP id o15-20020a05620a228f00b00787bb019938mr7618517qkh.37.1708945114435; Mon, 26 Feb 2024 02:58:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708945114; cv=pass; d=google.com; s=arc-20160816; b=ZzXOrXjBOJnTNkO8lo/UExUmitS1b44nu+rEBSPicGTP7yFlzsRv2JCtUadb3HnP18 f83r0+3gJvgw3IpYm7Ofimh19eGHKM46sWe+bAPo6Jjwyy6qLVW1PGpWyUOv1L7ebeGz AyGJ7lGNDbqziw86hKedGFiV8huCGbg2vtJbMYHXQOF19kLwr76j1UefhN0qkef4HAMW tm46+S7M0pM/O1Mntf4Uf+1OlfDYdc8xTJAQB4d2myKvGfXvNlA/6j9hJuKI8B3AzR2j 9DyxLNrA2ufwvhHpacsSnr1VjaFUgbb/WnvvyCaQgNBwxSH07AtVkJ/z3LqVwuFTZBvB eDoQ== 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=eOsX8/YAl8ez6UvHjJ1wok2hLvx+m1daXt61YAc1GXg=; fh=7GS5xA0uwnQNBqJhozzP5Cr/yfB1gqlXOe8jlbguz7A=; b=ny3ZBben0G4ybL1k9zUT92XljY/f/aXMYuTbtQpk/y1CepDSfpS0jFzAd+4I8HMr83 Vz8bTNblldsm6LHRBz+sIxHW16e0uTwQk8QLm0mcdnL6sG9d9bNC4KrDFAAD9yvANcFk 6D4riKb6p4oSkpLLlD74IajowhsgP0d/zWhvmpm0MuaTgSaemoyZkGyNLKk1Dz6CXdoW nB9SnlcZOPtxEt19BqRevIWuCrNxWIAFgQiF/+02/V0lxLJbK9WqqfXGSuO53xaY1pmH 2x35aopSbcn6lc5rjn38Lomixcseevlx4DOUZGzGh9u/NYw+9Cz3V3XoDAmGUUMlx6WR GuVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H0YWAJyn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-81232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d17-20020a05620a137100b00787a0bed972si4771492qkl.145.2024.02.26.02.58.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:58:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H0YWAJyn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-81232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 25EFE1C27DF1 for ; Mon, 26 Feb 2024 10:58:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3F5B200A6; Mon, 26 Feb 2024 10:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H0YWAJyn" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 2F8341DFD1; Mon, 26 Feb 2024 10:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945030; cv=none; b=BYsQdeRFS942q5ztNmuvCnP3sl3drV5MaFBrgELOiXawtbrIT5Ccb6qy79pMHo2cw46g//1I7HPF8QQZwH7tgADWI9rsrlhIzRt3+sqPXjZUDeC+zu/G5WvIAg8R0fhi32IsGhIhp9ve6Gq4hTkeoUwSScQ7iFnAUjCQFglELzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945030; c=relaxed/simple; bh=4CBBW4ZBYHjYKmvJucsk9myJi964v26M/utBchas9+0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q1wPSm4+GwFVQPJXHCLX6yESR6H1S/HGi5gYAnZW5pX44TSHD1hBFuh8pW9gd+hNf07leZZUOh9TQMlFPF4mr1ZD6T0OWAWImstz6IYjyUfj8hr5aGYVb6wOKIaWGLqgmFmGWC0dYImAhkzIQVV1V2DH4iddimZHnmptfk6NRLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=H0YWAJyn; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708945028; x=1740481028; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4CBBW4ZBYHjYKmvJucsk9myJi964v26M/utBchas9+0=; b=H0YWAJynERB2puwmMKXcrpsECDKaO0h+bRu75wC4fjH9s0S91qWB8rwA ydp3SL8ZWyeOQcNkXS0pmCTFCQJ90SLBUtiDlp3IxlUpOhvQkNV7KE4mH N2dnl3yGD3kVaDJADrg7mfT4L6gyJ9FHMW/DOYj0uL2lfH84Z/2DMd7Nv uX8TztPRreEWGdusvkcdpzyKgLyiISW5FN9YvQLkIjpuJdkxoJGMAC52V qORGOfaMnMRgJgP84wUOmR0EUPxHwF3KJYYIdHOBice8ZsdRib2qtS84l 5KZKfxWO9WkakSm9/8/wpd13VhcTE5jpDr4orw51EWJtJmCOsoPmsig0I g==; X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="13918357" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="13918357" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 02:57:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="6829018" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 26 Feb 2024 02:57:03 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1reYfN-000AGB-18; Mon, 26 Feb 2024 10:57:01 +0000 Date: Mon, 26 Feb 2024 18:56:27 +0800 From: kernel test robot To: David Laight , "'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 11/11] minmax: min() and max() don't need to return constant expressions Message-ID: <202402261802.9ShoXRwY-lkp@intel.com> 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: Hi David, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linux/master mkl-can-next/testing kdave/for-next akpm-mm/mm-nonmm-unstable linus/master v6.8-rc6] [cannot apply to next-20240223 dtor-input/next dtor-input/for-linus axboe-block/for-next horms-ipvs/master next-20240223] [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] url: https://github.com/intel-lab-lkp/linux/commits/David-Laight/minmax-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/a18dcae310f74dcb9c6fc01d5bdc0568%40AcuMS.aculab.com patch subject: [PATCH next v2 11/11] minmax: min() and max() don't need to return constant expressions config: i386-randconfig-011-20240226 (https://download.01.org/0day-ci/archive/20240226/202402261802.9ShoXRwY-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240226/202402261802.9ShoXRwY-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202402261802.9ShoXRwY-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/mm/pgtable.c: In function 'pgd_alloc': >> arch/x86/mm/pgtable.c:437:9: warning: ISO C90 forbids variable length array 'pmds' [-Wvla] 437 | pmd_t *pmds[MAX_PREALLOCATED_PMDS]; | ^~~~~ vim +/pmds +437 arch/x86/mm/pgtable.c 1db491f77b6ed0 Fenghua Yu 2015-01-15 432 d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 433 pgd_t *pgd_alloc(struct mm_struct *mm) 1ec1fe73dfb711 Ingo Molnar 2008-03-19 434 { d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 435 pgd_t *pgd; 184d47f0fd3651 Kees Cook 2018-10-08 436 pmd_t *u_pmds[MAX_PREALLOCATED_USER_PMDS]; 184d47f0fd3651 Kees Cook 2018-10-08 @437 pmd_t *pmds[MAX_PREALLOCATED_PMDS]; 1ec1fe73dfb711 Ingo Molnar 2008-03-19 438 1db491f77b6ed0 Fenghua Yu 2015-01-15 439 pgd = _pgd_alloc(); 1ec1fe73dfb711 Ingo Molnar 2008-03-19 440 d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 441 if (pgd == NULL) d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 442 goto out; 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 443 d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 444 mm->pgd = pgd; 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 445 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 446 if (sizeof(pmds) != 0 && 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 447 preallocate_pmds(mm, pmds, PREALLOCATED_PMDS) != 0) d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 448 goto out_free_pgd; d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 449 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 450 if (sizeof(u_pmds) != 0 && 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 451 preallocate_pmds(mm, u_pmds, PREALLOCATED_USER_PMDS) != 0) d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 452 goto out_free_pmds; d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 453 f59dbe9ca6707e Joerg Roedel 2018-07-18 454 if (paravirt_pgd_alloc(mm) != 0) f59dbe9ca6707e Joerg Roedel 2018-07-18 455 goto out_free_user_pmds; f59dbe9ca6707e Joerg Roedel 2018-07-18 456 d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 457 /* d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 458 * Make sure that pre-populating the pmds is atomic with d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 459 * respect to anything walking the pgd_list, so that they d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 460 * never see a partially populated pgd. d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 461 */ a79e53d85683c6 Andrea Arcangeli 2011-02-16 462 spin_lock(&pgd_lock); 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 463 617d34d9e5d832 Jeremy Fitzhardinge 2010-09-21 464 pgd_ctor(mm, pgd); 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 465 if (sizeof(pmds) != 0) d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 466 pgd_prepopulate_pmd(mm, pgd, pmds); 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 467 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 468 if (sizeof(u_pmds) != 0) f59dbe9ca6707e Joerg Roedel 2018-07-18 469 pgd_prepopulate_user_pmd(mm, pgd, u_pmds); 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 470 a79e53d85683c6 Andrea Arcangeli 2011-02-16 471 spin_unlock(&pgd_lock); 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 472 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 473 return pgd; d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 474 f59dbe9ca6707e Joerg Roedel 2018-07-18 475 out_free_user_pmds: 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 476 if (sizeof(u_pmds) != 0) f59dbe9ca6707e Joerg Roedel 2018-07-18 477 free_pmds(mm, u_pmds, PREALLOCATED_USER_PMDS); d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 478 out_free_pmds: 25226df4b9be7f Gustavo A. R. Silva 2022-09-21 479 if (sizeof(pmds) != 0) f59dbe9ca6707e Joerg Roedel 2018-07-18 480 free_pmds(mm, pmds, PREALLOCATED_PMDS); d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 481 out_free_pgd: 1db491f77b6ed0 Fenghua Yu 2015-01-15 482 _pgd_free(pgd); d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 483 out: d8d5900ef8afc5 Jeremy Fitzhardinge 2008-06-25 484 return NULL; 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 485 } 4f76cd382213b2 Jeremy Fitzhardinge 2008-03-17 486 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki