Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795983932; b=OoTt25WVAuww37HYMDyuP/ToxNnAN95BPBBjtqYfP2wbFxoiCnK7cvzvLjtIysC2vsld TEozcj664nK7zJjqfHNwYGfIfyjUA7x1e/fofK3nMRhYFsZoVBW7O0+h4xwzzYa6UUPor 2lesuNWqN7fJ13foIr3y8NuiW/7dk1tpKECHny2rdLpZyafLuCUrdnZ5FJPbms0x1sonX //6IsfdwFUGEOZ1lSyK2y9oTmd4kgbmI4qsFhoVI3f78pCIjmsYJaAtyX0PUX7jUiVUry gFC+/7O4yrcYXBfKM/j5WXWQ1+XYL9pSH1FVW7AAuLmNUCFPFpXIafk9diEGIGOQZgQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795983932; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=piO+62q7LZ00C6lPJ1knVS3t7emucLxYS+UAl8HJG9o=; b=fkhjmEEMuPCup/ioJnBsuIy2esaY9QnM9jiNsym/VYMde8zxP48LGaHVkFQ4jngEWQWF PlNb8JPyaR6KK6gTsrcDAwmqflHDh5zn5FL+0LtSxzONsJxZPYVWAgFmP8BzqZOXBggau rP5pX9GGpSH49qPfWajvV0ciSRmjAEQdLQqCo1wK+7T2HCX9CLpSz1Sor2l5Ei+lsi9Ch tFwQQtTqBkHcjR+FBtuT6X7cp/Eo0grw6UJ2oQBtXfEmR9WppJF9uWVm5e6Itb+Tlf7Cq LmBX4SaLd0+J0CJvurrt7wyhJ4S/QG/CDHMxoWLQfSwPa7jbU3K46grAXIiE47b6WGQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="ZS/36TDo"; arc=none smtp.remote-ip=192.198.163.8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 662FA606A31C for ; Sun, 29 Nov 2026 20:25:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 662FA606A31C 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.a=rsa-sha256 header.s=Intel header.b=ZS/36TDo DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795983933; x=1827519933; h=date:from:to:cc:subject:message-id; bh=iVJ4d4siDEuYxsB7rOAyueRMspz5Yvg3Oy7zzVCgKCI=; b=ZS/36TDol097C4HdyBPuHGBDrD8rdSxOfrJYDJikrEwX10cxpB2nmsQk fv9mGcpqpwQjQsJaBKbcCKIo0JZmb65m5ratnlUhd7HJgVyBhSc52u2b/ CXXcFBVhMMyNCPjl26Mf9gAszJZJITlv0orKnMnsn7gqIi+Hbo1IGBqqT 2nKeCCI4EHzem5+qcQPo7S7ynwxdoTF1q0tdVRR11E3NOiiKLC9wzKwyK sCDZUFmpLZBeCFsnr7PxtXrLFuDXDfW6wwQahUYddn8oXLyp2imHCXXnT W/VeHWc7yo7IDISEGO4p/WmHtBfdn3VOIxIbSFQOaIdL+ysCrfenJC6Ut w==; X-CSE-ConnectionGUID: e4bNS/kjSBCv6Zd7nNFEag== X-CSE-MsgGUID: Sf6nsbo6QpW96Vy/+t9gAg== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4692972" X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="4692972" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 12:25:32 -0800 X-CSE-ConnectionGUID: CdLPd4ByQGG8/DGaBIcCXg== X-CSE-MsgGUID: Az34kweZQi63fGi4PjTgng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="12944497" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 29 Nov 2026 12:25:30 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xXlSi-00000001ZUr-0Zov; Sun, 29 Nov 2026 20:25:28 +0000 Date: Mon, 30 Nov 2026 04:24:51 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android12-5.10 1/1] lib/test_ubsan.c:84:23: warning: variable 'above' set but not used Message-ID: <20261130042035.AAjNvxcu-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://android.googlesource.com/kernel/common android12-5.10 head: 4c7c54d5282535632ad82a459d9a58e130a0452c commit: 7611578ecbeb8dde637d8d65d270e242a1aae87a [1/1] UPSTREAM: ubsan: expand tests and reporting config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20261130/20261130042035.AAjNvxcu-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130042035.AAjNvxcu-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/20261130042035.AAjNvxcu-lkp@intel.com/ All warnings (new ones prefixed by >>): lib/test_ubsan.c: In function 'test_ubsan_add_overflow': lib/test_ubsan.c:17:31: warning: variable 'uval' set but not used [-Wunused-but-set-variable=] 17 | volatile unsigned int uval = UINT_MAX; | ^~~~ lib/test_ubsan.c:16:22: warning: variable 'val' set but not used [-Wunused-but-set-variable=] 16 | volatile int val = INT_MAX; | ^~~ lib/test_ubsan.c: In function 'test_ubsan_sub_overflow': lib/test_ubsan.c:29:31: warning: variable 'uval' set but not used [-Wunused-but-set-variable=] 29 | volatile unsigned int uval = 0; | ^~~~ lib/test_ubsan.c:28:22: warning: variable 'val' set but not used [-Wunused-but-set-variable=] 28 | volatile int val = INT_MIN; | ^~~ lib/test_ubsan.c: In function 'test_ubsan_mul_overflow': lib/test_ubsan.c:42:31: warning: variable 'uval' set but not used [-Wunused-but-set-variable=] 42 | volatile unsigned int uval = UINT_MAX / 2; | ^~~~ lib/test_ubsan.c:41:22: warning: variable 'val' set but not used [-Wunused-but-set-variable=] 41 | volatile int val = INT_MAX / 2; | ^~~ lib/test_ubsan.c: In function 'test_ubsan_divrem_overflow': lib/test_ubsan.c:61:22: warning: variable 'val' set but not used [-Wunused-but-set-variable=] 61 | volatile int val = 16; | ^~~ lib/test_ubsan.c: In function 'test_ubsan_shift_out_of_bounds': lib/test_ubsan.c:72:13: warning: variable 'val2' set but not used [-Wunused-but-set-variable=] 72 | int val2 = INT_MAX; | ^~~~ lib/test_ubsan.c:71:13: warning: variable 'val1' set but not used [-Wunused-but-set-variable=] 71 | int val1 = 10; | ^~~~ lib/test_ubsan.c: In function 'test_ubsan_out_of_bounds': lib/test_ubsan.c:85:22: warning: variable 'arr' set but not used [-Wunused-but-set-variable=] 85 | volatile int arr[4]; | ^~~ >> lib/test_ubsan.c:84:23: warning: variable 'above' set but not used [-Wunused-but-set-variable=] 84 | volatile char above[4] = { }; /* Protect surrounding memory. */ | ^~~~~ lib/test_ubsan.c: In function 'test_ubsan_load_invalid_value': lib/test_ubsan.c:107:44: warning: variable 'eptr' set but not used [-Wunused-but-set-variable=] 107 | enum ubsan_test_enum eval, eval2, *eptr; | ^~~~ lib/test_ubsan.c:106:26: warning: variable 'ptr' set but not used [-Wunused-but-set-variable=] 106 | bool val, val2, *ptr; | ^~~ lib/test_ubsan.c: In function 'test_ubsan_null_ptr_deref': lib/test_ubsan.c:130:13: warning: variable 'val' set but not used [-Wunused-but-set-variable=] 130 | int val; | ^~~ lib/test_ubsan.c: In function 'test_ubsan_object_size_mismatch': lib/test_ubsan.c:150:34: warning: variable 'val2' set but not used [-Wunused-but-set-variable=] 150 | volatile long long *ptr, val2; | ^~~~ lib/test_ubsan.c: At top level: lib/test_ubsan.c:170:28: warning: 'skip_ubsan_array' defined but not used [-Wunused-const-variable=] 170 | static const test_ubsan_fp skip_ubsan_array[] = { | ^~~~~~~~~~~~~~~~ vim +/above +84 lib/test_ubsan.c 80 81 static void test_ubsan_out_of_bounds(void) 82 { 83 volatile int i = 4, j = 5, k = -1; > 84 volatile char above[4] = { }; /* Protect surrounding memory. */ 85 volatile int arr[4]; 86 volatile char below[4] = { }; /* Protect surrounding memory. */ 87 88 above[0] = below[0]; 89 90 UBSAN_TEST(CONFIG_UBSAN_BOUNDS, "above"); 91 arr[j] = i; 92 93 UBSAN_TEST(CONFIG_UBSAN_BOUNDS, "below"); 94 arr[k] = i; 95 } 96 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki