lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Thu, 27 Oct 2022 16:29:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Arthur Grillo <arthurgrillo@...eup.net>,
        David Airlie <airlied@...il.com>,
        Daniel Vetter <daniel@...ll.ch>,
        Javier Martinez Canillas <javierm@...hat.com>,
        Maíra Canal <mairacanal@...eup.net>,
        Toke Høiland-Jørgensen <toke@...e.dk>,
        "Jason A. Donenfeld" <Jason@...c4.com>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
        David Gow <davidgow@...gle.com>,
        Daniel Latypov <dlatypov@...gle.com>, andrealmeid@...eup.net,
        melissa.srw@...il.com, Arthur Grillo <arthurgrillo@...eup.net>,
        Michał Winiarski <michal.winiarski@...el.com>
Subject: Re: [PATCH] drm/tests: Add back seed value information

Hi Arthur,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.1-rc2 next-20221027]
[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/Arthur-Grillo/drm-tests-Add-back-seed-value-information/20221027-051625
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/20221026211458.68432-1-arthurgrillo%40riseup.net
patch subject: [PATCH] drm/tests: Add back seed value information
config: arm64-randconfig-r002-20221026
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/intel-lab-lkp/linux/commit/d4760e93f908692ad7af618d17c07aa709e6e3ca
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Arthur-Grillo/drm-tests-Add-back-seed-value-information/20221027-051625
        git checkout d4760e93f908692ad7af618d17c07aa709e6e3ca
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/tests/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/tests/drm_buddy_test.c:735:3: error: expected ')'
                   random_seed);
                   ^
   drivers/gpu/drm/tests/drm_buddy_test.c:734:2: note: to match this '('
           kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:428:3: note: expanded from macro 'printk_index_wrap'
                   __printk_index_emit(_fmt, NULL, NULL);                  \
                   ^
   include/linux/printk.h:381:27: note: expanded from macro '__printk_index_emit'
                   if (__builtin_constant_p(_fmt) && __builtin_constant_p(_level)) { \
                                           ^
>> drivers/gpu/drm/tests/drm_buddy_test.c:735:3: error: expected ')'
                   random_seed);
                   ^
   drivers/gpu/drm/tests/drm_buddy_test.c:734:2: note: to match this '('
           kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:428:3: note: expanded from macro 'printk_index_wrap'
                   __printk_index_emit(_fmt, NULL, NULL);                  \
                   ^
   include/linux/printk.h:390:32: note: expanded from macro '__printk_index_emit'
                                   .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
                                                              ^
>> drivers/gpu/drm/tests/drm_buddy_test.c:735:3: error: expected ')'
                   random_seed);
                   ^
   drivers/gpu/drm/tests/drm_buddy_test.c:734:2: note: to match this '('
           kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:428:3: note: expanded from macro 'printk_index_wrap'
                   __printk_index_emit(_fmt, NULL, NULL);                  \
                   ^
   include/linux/printk.h:390:41: note: expanded from macro '__printk_index_emit'
                                   .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
                                                                       ^
>> drivers/gpu/drm/tests/drm_buddy_test.c:735:3: error: expected ')'
                   random_seed);
                   ^
   drivers/gpu/drm/tests/drm_buddy_test.c:734:2: note: to match this '('
           kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:429:10: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                          ^
>> drivers/gpu/drm/tests/drm_buddy_test.c:734:2: error: member reference base type 'char' is not a structure or union
           kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:420:35: note: expanded from macro 'kunit_log'
                   kunit_log_append((test_or_suite)->log,  fmt "\n",       \
                                    ~~~~~~~~~~~~~~~^ ~~~
>> drivers/gpu/drm/tests/drm_buddy_test.c:735:3: error: expected ')'
                   random_seed);
                   ^
   drivers/gpu/drm/tests/drm_buddy_test.c:734:2: note: to match this '('
           kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:420:19: note: expanded from macro 'kunit_log'
                   kunit_log_append((test_or_suite)->log,  fmt "\n",       \
                                   ^
   6 errors generated.
--
>> drivers/gpu/drm/tests/drm_mm_test.c:2218:2: error: expected ')'
           random_seed, max_iterations, max_prime);
           ^
   drivers/gpu/drm/tests/drm_mm_test.c:2217:2: note: to match this '('
           kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:428:3: note: expanded from macro 'printk_index_wrap'
                   __printk_index_emit(_fmt, NULL, NULL);                  \
                   ^
   include/linux/printk.h:381:27: note: expanded from macro '__printk_index_emit'
                   if (__builtin_constant_p(_fmt) && __builtin_constant_p(_level)) { \
                                           ^
>> drivers/gpu/drm/tests/drm_mm_test.c:2218:2: error: expected ')'
           random_seed, max_iterations, max_prime);
           ^
   drivers/gpu/drm/tests/drm_mm_test.c:2217:2: note: to match this '('
           kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:428:3: note: expanded from macro 'printk_index_wrap'
                   __printk_index_emit(_fmt, NULL, NULL);                  \
                   ^
   include/linux/printk.h:390:32: note: expanded from macro '__printk_index_emit'
                                   .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
                                                              ^
>> drivers/gpu/drm/tests/drm_mm_test.c:2218:2: error: expected ')'
           random_seed, max_iterations, max_prime);
           ^
   drivers/gpu/drm/tests/drm_mm_test.c:2217:2: note: to match this '('
           kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:428:3: note: expanded from macro 'printk_index_wrap'
                   __printk_index_emit(_fmt, NULL, NULL);                  \
                   ^
   include/linux/printk.h:390:41: note: expanded from macro '__printk_index_emit'
                                   .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
                                                                       ^
>> drivers/gpu/drm/tests/drm_mm_test.c:2218:2: error: expected ')'
           random_seed, max_iterations, max_prime);
           ^
   drivers/gpu/drm/tests/drm_mm_test.c:2217:2: note: to match this '('
           kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:419:3: note: expanded from macro 'kunit_log'
                   printk(lvl fmt, ##__VA_ARGS__);                         \
                   ^
   include/linux/printk.h:457:26: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                            ^
   include/linux/printk.h:429:10: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                          ^
>> drivers/gpu/drm/tests/drm_mm_test.c:2217:2: error: member reference base type 'char' is not a structure or union
           kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n",
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:420:35: note: expanded from macro 'kunit_log'
                   kunit_log_append((test_or_suite)->log,  fmt "\n",       \
                                    ~~~~~~~~~~~~~~~^ ~~~
>> drivers/gpu/drm/tests/drm_mm_test.c:2218:2: error: expected ')'
           random_seed, max_iterations, max_prime);
           ^
   drivers/gpu/drm/tests/drm_mm_test.c:2217:2: note: to match this '('
           kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n",
           ^
   include/kunit/test.h:438:2: note: expanded from macro 'kunit_info'
           kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__)
           ^
   include/kunit/test.h:425:2: note: expanded from macro 'kunit_printk'
           kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt,         \
           ^
   include/kunit/test.h:420:19: note: expanded from macro 'kunit_log'
                   kunit_log_append((test_or_suite)->log,  fmt "\n",       \
                                   ^
   6 errors generated.


vim +735 drivers/gpu/drm/tests/drm_buddy_test.c

   728	
   729	static int drm_buddy_init_test(struct kunit *test)
   730	{
   731		while (!random_seed)
   732			random_seed = get_random_u32();
   733	
 > 734		kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n",
 > 735			random_seed);
   736	
   737		return 0;
   738	}
   739	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (154785 bytes)

Powered by blists - more mailing lists