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-...@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-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408211157.n8ubzpfl-...@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

Reply via email to