mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marc Bonnici <marc.bonnici@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Sudeep Holla <sudeep.holla@arm.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
Date: Thu, 28 Oct 2021 12:59:56 +0800	[thread overview]
Message-ID: <202110281248.ZOrBZbgY-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-10-28  5:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110281248.ZOrBZbgY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=marc.bonnici@arm.com \
    --cc=sudeep.holla@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®