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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 28 Oct 2021 12:59:56 +0800
From:   kernel test robot <lkp@...el.com>
To:     Marc Bonnici <marc.bonnici@....com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Sudeep Holla <sudeep.holla@....com>
Subject: [sudeep-holla:ffa_notifications_proto 16/16]
 drivers/firmware/arm_ffa/test_driver_ffa.c:21:13: warning: redefinition of
 typedef 'ffa_partition_id_t' is a C11 feature

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git ffa_notifications_proto
head:   3a36983861ad7edf937683026889cde233317ff8
commit: 3a36983861ad7edf937683026889cde233317ff8 [16/16] test_ffa_driver: Add Test Driver
config: arm64-randconfig-r005-20211027 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/commit/?id=3a36983861ad7edf937683026889cde233317ff8
        git remote add sudeep-holla https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
        git fetch --no-tags sudeep-holla ffa_notifications_proto
        git checkout 3a36983861ad7edf937683026889cde233317ff8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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

All warnings (new ones prefixed by >>):

>> drivers/firmware/arm_ffa/test_driver_ffa.c:21:13: warning: redefinition of typedef 'ffa_partition_id_t' is a C11 feature [-Wtypedef-redefinition]
   typedef u16 ffa_partition_id_t;
               ^
   include/linux/arm_ffa.h:37:13: note: previous definition is here
   typedef u16 ffa_partition_id_t;
               ^
>> drivers/firmware/arm_ffa/test_driver_ffa.c:336:10: warning: variable 'notification_id' is uninitialized when used here [-Wuninitialized]
                          notification_id, rc);
                          ^~~~~~~~~~~~~~~
   include/linux/printk.h:489:33: note: expanded from macro 'pr_err'
           printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
                                          ^~~~~~~~~~~
   include/linux/printk.h:446:60: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                                                              ^~~~~~~~~~~
   include/linux/printk.h:418:19: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                                   ^~~~~~~~~~~
   drivers/firmware/arm_ffa/test_driver_ffa.c:318:25: note: initialize the variable 'notification_id' to silence this warning
           int rc, notification_id;
                                  ^
                                   = 0
   drivers/firmware/arm_ffa/test_driver_ffa.c:379:10: warning: variable 'notification_id' is uninitialized when used here [-Wuninitialized]
                          notification_id, rc);
                          ^~~~~~~~~~~~~~~
   include/linux/printk.h:489:33: note: expanded from macro 'pr_err'
           printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
                                          ^~~~~~~~~~~
   include/linux/printk.h:446:60: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                                                              ^~~~~~~~~~~
   include/linux/printk.h:418:19: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                                   ^~~~~~~~~~~
   drivers/firmware/arm_ffa/test_driver_ffa.c:354:25: note: initialize the variable 'notification_id' to silence this warning
           int rc, notification_id;
                                  ^
                                   = 0
   3 warnings generated.


vim +/ffa_partition_id_t +21 drivers/firmware/arm_ffa/test_driver_ffa.c

    20	
  > 21	typedef u16 ffa_partition_id_t;
    22	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (41777 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ