From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 798F81EFFA1 for ; Wed, 14 Oct 2026 04:09:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791950960; cv=none; b=IFoBgbEbnnfdlqnCdyy0oXQ5SMLuOYVEt5bZaWbx4VxDh4XJq8+btJscENzAlCBytmSsTQKKxo+AalX6JNNyK8Y5gcfs/ngq/ydNON5q8kkWDfkUWhWP3n5xPqaMeFPucEg+IgFWnhIZf6GaVBAZybPTRlPfwRlTHJomfc1rX+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791950960; c=relaxed/simple; bh=kSyo3wbMMmmv1ZJliFC9BPiH/Vxam9C33a/DtUMQFIs=; h=Date:From:To:Cc:Subject:Message-ID; b=ZbjZwOJ0FMM8sR33FH7CWjmeB9BBBJ/34yw2DyfPRdBhd16oZAOQAHHsS9DNiT5yL9KrQfIjxpmZ6IQlVwLd0F9FAcA7IVJmT54DD7uOjFtstr6X08AQzNktZzzfXHWKSYlVhCR4RNvwmXbiurJvJG//m7eYQ7XvgTedqotN2zM= 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=nNBARQPc; arc=none smtp.client-ip=198.175.65.18 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nNBARQPc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791950959; x=1823486959; h=date:from:to:cc:subject:message-id; bh=kSyo3wbMMmmv1ZJliFC9BPiH/Vxam9C33a/DtUMQFIs=; b=nNBARQPcZtjJkuy6Tq2w41L2Giw5IbAeF7OVbROm61QwPLbmgJ8jBZUf 7a+prSz2pIqfGadmyVcL4122SFFg2/56WgHoSEmGT1hPIj8bKD+RkEgvk dJhj5v7XLaRU9iT/4YE5Ur1/RREVApYam21032aaf3yO45GBBHWY+MW+I FPdex5NLPyJNF3NBbis9OoHKXXDcVoK64ZP/mMJoZPtiqOdSMcbsUQ4mX HitPpPcb6gdRZEn7nK8DuWHI29c/DGk/nt/VP6cDQNWHInyMN6bo9/IDC tjQ5hzncUHEjlMOuEQDca3Y1JywZ/Ewy/zJ3vxqk6C3Yv12NvazJ42GEA Q==; X-CSE-ConnectionGUID: 164elI9rQJGAU1kgOiuaNQ== X-CSE-MsgGUID: tkhTZtJfSz2EVykinSJ9mQ== X-IronPort-AV: E=McAfee;i="6800,10657,11934"; a="695755" X-IronPort-AV: E=Sophos;i="6.27,157,1787036400"; d="scan'208";a="695755" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2026 21:09:18 -0700 X-CSE-ConnectionGUID: xFtFyGUpQNGGRelN5+ZEGQ== X-CSE-MsgGUID: Z4QnfNj9RdCKdiPolOez9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,157,1787036400"; d="scan'208";a="1782042" Received: from igk-lkp-server01.igk.intel.com (HELO d0de6c2a75a7) ([10.211.93.152]) by fmviesa010.fm.intel.com with ESMTP; 13 Oct 2026 21:09:17 -0700 Received: from kbuild by d0de6c2a75a7 with local (Exim 4.98.2) (envelope-from ) id 1xGqIk-00000000Aqd-0wfM; Wed, 14 Oct 2026 04:09:14 +0000 Date: Wed, 14 Oct 2026 06:08:28 +0200 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android16-6.12-2025-12 2/2] drivers/gpu/drm/i915/gem/i915_gem_shmem.c:562:34: warning: result of comparison of constant 17592186040320 with expression of type 'resource_size_t' (aka 'unsigned int') is always false Message-ID: <202610140618.PQZSQmdv-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: tree: https://android.googlesource.com/kernel/common android16-6.12-2025-12 head: 838e65c6c0a82859fe27789f09351ad8be0461c9 commit: e24cc2d5218669b7412788d57528059ec6ecee4e [2/2] ANDROID: ABI: refresh, CRC fixups and allowed breaks config: i386-randconfig-r2306-20261014 (https://download.01.org/0day-ci/archive/20261014/202610140618.PQZSQmdv-lkp@intel.com/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261014/202610140618.PQZSQmdv-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/202610140618.PQZSQmdv-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:14: In file included from drivers/gpu/drm/i915/i915_drv.h:46: In file included from drivers/gpu/drm/i915/gt/intel_engine.h:18: In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:19: In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9: In file included from drivers/gpu/drm/i915/gt/uc/intel_gsc_uc.h:9: In file included from drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h:12: In file included from drivers/gpu/drm/i915/intel_device_info.h:36: In file included from drivers/gpu/drm/i915/gem/i915_gem_object_types.h:12: In file included from include/drm/drm_gem.h:38: include/linux/dma-buf.h:547:2: error: static assertion failed due to requirement '__alignof(struct dma_buf::(unnamed union)::(unnamed union)::(unnamed at include/linux/dma-buf.h:547:2)) <= __alignof(struct dma_buf::(unnamed union)::(unnamed union)::(unnamed at include/linux/dma-buf.h:547:2))': include/linux/dma-buf.h:547: u64 __kabi_reserved_backport1 is not aligned the same as atomic64_t nr_task_refs 547 | ANDROID_BACKPORT_USE(1, atomic64_t nr_task_refs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/android_kabi.h:189:2: note: expanded from macro 'ANDROID_BACKPORT_USE' 189 | _ANDROID_KABI_REPLACE(ANDROID_BACKPORT_RESERVE(number), _new) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/android_kabi.h:79:3: note: expanded from macro '_ANDROID_KABI_REPLACE' 79 | _ANDROID_KABI_NORMAL_SIZE_ALIGN(_orig, _new); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/android_kabi.h:66:4: note: expanded from macro '_ANDROID_KABI_NORMAL_SIZE_ALIGN' 66 | __alignof__(struct { _new; }) <= \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 67 | __alignof__(struct { _orig; }), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dma-buf.h:547:2: note: expression evaluates to '8 <= 4' 547 | ANDROID_BACKPORT_USE(1, atomic64_t nr_task_refs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/android_kabi.h:189:2: note: expanded from macro 'ANDROID_BACKPORT_USE' 189 | _ANDROID_KABI_REPLACE(ANDROID_BACKPORT_RESERVE(number), _new) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/android_kabi.h:79:3: note: expanded from macro '_ANDROID_KABI_REPLACE' 79 | _ANDROID_KABI_NORMAL_SIZE_ALIGN(_orig, _new); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/android_kabi.h:66:34: note: expanded from macro '_ANDROID_KABI_NORMAL_SIZE_ALIGN' 66 | __alignof__(struct { _new; }) <= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 67 | __alignof__(struct { _orig; }), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/i915/gem/i915_gem_shmem.c:562:34: warning: result of comparison of constant 17592186040320 with expression of type 'resource_size_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] 562 | if (BITS_PER_LONG == 64 && size > MAX_LFS_FILESIZE) | ~~~~ ^ ~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for ASYNC_TX_ENABLE_CHANNEL_SWITCH Depends on [n]: DMADEVICES [=n] Selected by [y]: - GKI_HIDDEN_DMA_CONFIGS [=y] WARNING: unmet direct dependencies detected for DMA_ENGINE_RAID Depends on [n]: DMADEVICES [=n] Selected by [y]: - GKI_HIDDEN_DMA_CONFIGS [=y] vim +562 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 8475355f7a2645 Chris Wilson 2019-05-28 541 da1184cd41d4c6 Matthew Auld 2019-10-18 542 static int __create_shmem(struct drm_i915_private *i915, 8475355f7a2645 Chris Wilson 2019-05-28 543 struct drm_gem_object *obj, da1184cd41d4c6 Matthew Auld 2019-10-18 544 resource_size_t size) 8475355f7a2645 Chris Wilson 2019-05-28 545 { 8475355f7a2645 Chris Wilson 2019-05-28 546 unsigned long flags = VM_NORESERVE; 8475355f7a2645 Chris Wilson 2019-05-28 547 struct file *filp; 8475355f7a2645 Chris Wilson 2019-05-28 548 8475355f7a2645 Chris Wilson 2019-05-28 549 drm_gem_private_object_init(&i915->drm, obj, size); 8475355f7a2645 Chris Wilson 2019-05-28 550 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 551 /* XXX: The __shmem_file_setup() function returns -EINVAL if size is 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 552 * greater than MAX_LFS_FILESIZE. 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 553 * To handle the same error as other code that returns -E2BIG when 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 554 * the size is too large, we add a code that returns -E2BIG when the 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 555 * size is larger than the size that can be handled. 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 556 * If BITS_PER_LONG is 32, size > MAX_LFS_FILESIZE is always false, 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 557 * so we only needs to check when BITS_PER_LONG is 64. 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 558 * If BITS_PER_LONG is 32, E2BIG checks are processed when 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 559 * i915_gem_object_size_2big() is called before init_object() callback 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 560 * is called. 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 561 */ 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 @562 if (BITS_PER_LONG == 64 && size > MAX_LFS_FILESIZE) 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 563 return -E2BIG; 662c04e2b8c6fe Gwan-gyeong Mun 2022-12-28 564 8475355f7a2645 Chris Wilson 2019-05-28 565 if (i915->mm.gemfs) 8475355f7a2645 Chris Wilson 2019-05-28 566 filp = shmem_file_setup_with_mnt(i915->mm.gemfs, "i915", size, 8475355f7a2645 Chris Wilson 2019-05-28 567 flags); 8475355f7a2645 Chris Wilson 2019-05-28 568 else 8475355f7a2645 Chris Wilson 2019-05-28 569 filp = shmem_file_setup("i915", size, flags); 8475355f7a2645 Chris Wilson 2019-05-28 570 if (IS_ERR(filp)) 8475355f7a2645 Chris Wilson 2019-05-28 571 return PTR_ERR(filp); 8475355f7a2645 Chris Wilson 2019-05-28 572 8475355f7a2645 Chris Wilson 2019-05-28 573 obj->filp = filp; 8475355f7a2645 Chris Wilson 2019-05-28 574 return 0; 8475355f7a2645 Chris Wilson 2019-05-28 575 } 8475355f7a2645 Chris Wilson 2019-05-28 576 :::::: The code at line 562 was first introduced by commit :::::: 662c04e2b8c6fe8eb2f2b88c62e25c8241d0f793 drm/i915: Check if the size is too big while creating shmem file :::::: TO: Gwan-gyeong Mun :::::: CC: Rodrigo Vivi -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki