linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2021-10-28  4:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-28  4:59 UTC (permalink / raw)
  To: Marc Bonnici; +Cc: llvm, kbuild-all, linux-kernel, Sudeep Holla

[-- Attachment #1: Type: text/plain, Size: 4083 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41777 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-28  5:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28  4:59 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).