From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B030C52D6F for ; Wed, 21 Aug 2024 04:01:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C8D6410E361; Wed, 21 Aug 2024 04:01:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="jBKJF/V1"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id E577410E12B; Wed, 21 Aug 2024 04:01:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724212867; x=1755748867; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AthkwurUrh7MXaMGqfRpIHLmubGQ6eqXlluCjr+zuMY=; b=jBKJF/V1FiWgfkKZaTAt0242O0BbowtMk+ztPv4BSqHnuDUVPJesw7iK /K03UysNWlA4bj+1AuE0k5KdAX+aDCrbXSBHoQDwWa5Gp0fsM2k84NJoL 06SMqy/rvNWNTJsSBQeDBukP6TnOYBFDUJbuGEkcHGSEnIxb8eInH2SkR KnRks5x8ASJI20lQ/ZCbSh6VTpoInjRcxODBBGautwHwpUS+jLZjO0aIX MlO0Iv75x75DDhtPB741iJEaXzkBLOqPZHDKcHSjUSKTtH9UGKjYFniIx MpcN8u07Ubnqw6rx1QcqGi26aHwQhrr8PBr9VeKTEZD+t2UKMpyC0IdZj w==; X-CSE-ConnectionGUID: nkeAN0LYROuLBSTMFxLkPA== X-CSE-MsgGUID: CCGBBW7RTb+VNdt/ENbokA== X-IronPort-AV: E=McAfee;i="6700,10204,11170"; a="22359401" X-IronPort-AV: E=Sophos;i="6.10,163,1719903600"; d="scan'208";a="22359401" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2024 21:01:07 -0700 X-CSE-ConnectionGUID: J6Jlxwx3R6+NfYSXw9xtBg== X-CSE-MsgGUID: bIDTgDRoRgWsHcc/vZKyDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,163,1719903600"; d="scan'208";a="91700465" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 20 Aug 2024 21:01:06 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1sgcWt-000As6-2x; Wed, 21 Aug 2024 04:01:03 +0000 Date: Wed, 21 Aug 2024 12:00:44 +0800 From: kernel test robot To: Harry Wentland , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: oe-kbuild-all@lists.linux.dev, wayland-devel@lists.freedesktop.org, Harry Wentland Subject: Re: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h Message-ID: <202408211157.n8ubZpFl-lkp@intel.com> References: <20240819205714.316380-21-harry.wentland@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240819205714.316380-21-harry.wentland@amd.com> X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Hi Harry, kernel test robot noticed the following build errors: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.11-rc4 next-20240820] [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/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20240820-050138 base: git://anongit.freedesktop.org/drm/drm drm-next patch link: https://lore.kernel.org/r/20240819205714.316380-21-harry.wentland%40amd.com patch subject: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h config: parisc-randconfig-001-20240821 (https://download.01.org/0day-ci/archive/20240821/202408211157.n8ubZpFl-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240821/202408211157.n8ubZpFl-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/202408211157.n8ubZpFl-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/tests/drm_fixp_test.c:6: drivers/gpu/drm/tests/drm_fixp_test.c: In function 'drm_test_sm2fixp': >> drivers/gpu/drm/tests/drm_fixp_test.c:11:66: error: integer overflow in expression of type 'long long int' results in '9223372036854775807' [-Werror=overflow] 11 | KUNIT_EXPECT_EQ(test, 0x7fffffffffffffffll, ((1LL << 63) - 1)); | ^ include/kunit/test.h:725:40: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION' 725 | const typeof(right) __right = (right); \ | ^~~~~ include/kunit/test.h:920:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION' 920 | KUNIT_BINARY_INT_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:917:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG' 917 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL) | ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tests/drm_fixp_test.c:11:9: note: in expansion of macro 'KUNIT_EXPECT_EQ' 11 | KUNIT_EXPECT_EQ(test, 0x7fffffffffffffffll, ((1LL << 63) - 1)); | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +11 drivers/gpu/drm/tests/drm_fixp_test.c 8 9 static void drm_test_sm2fixp(struct kunit *test) 10 { > 11 KUNIT_EXPECT_EQ(test, 0x7fffffffffffffffll, ((1LL << 63) - 1)); 12 13 /* 1 */ 14 KUNIT_EXPECT_EQ(test, drm_int2fixp(1), drm_sm2fixp(1ull << DRM_FIXED_POINT)); 15 16 /* -1 */ 17 KUNIT_EXPECT_EQ(test, drm_int2fixp(-1), drm_sm2fixp((1ull << 63) | (1ull << DRM_FIXED_POINT))); 18 19 /* 0.5 */ 20 KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(1, 2), drm_sm2fixp(1ull << (DRM_FIXED_POINT - 1))); 21 22 /* -0.5 */ 23 KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(-1, 2), drm_sm2fixp((1ull << 63) | (1ull << (DRM_FIXED_POINT - 1)))); 24 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki