mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org, Will Deacon <will@kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>
Subject: warning: some functions compiled with BTI and some compiled without BTI
Date: Fri, 17 Jul 2020 11:18:30 +0800	[thread overview]
Message-ID: <202007171127.tGgvn09G%lkp@intel.com> (raw)

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

Hi Mark,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   07a56bb875afbe39dabbf6ba7b83783d166863db
commit: 97fed779f2a68937d9590fbbe8ed31d6ebbce5a5 arm64: bti: Provide Kconfig for kernel mode BTI
date:   2 months ago
config: arm64-randconfig-r021-20200717 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
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
        git checkout 97fed779f2a68937d9590fbbe8ed31d6ebbce5a5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):

>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
--
   drivers/power/supply/ltc2941-battery-gauge.c:476:13: warning: cast to smaller integer type 'enum ltc294x_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
           info->id = (enum ltc294x_id)of_device_get_match_data(&client->dev);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
   1 warning generated.
--
   drivers/power/supply/rt9455_charger.c:201:18: warning: unused variable 'rt9455_boost_voltage_values' [-Wunused-const-variable]
   static const int rt9455_boost_voltage_values[] = {
                    ^
   drivers/power/supply/rt9455_charger.c:1734:36: warning: unused variable 'rt9455_i2c_acpi_match' [-Wunused-const-variable]
   static const struct acpi_device_id rt9455_i2c_acpi_match[] = {
                                      ^
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
   2 warnings generated.
--
   drivers/power/supply/bq24257_charger.c:1155:36: warning: unused variable 'bq24257_acpi_match' [-Wunused-const-variable]
   static const struct acpi_device_id bq24257_acpi_match[] = {
                                      ^
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
   1 warning generated.
--
   drivers/power/supply/bq25890_charger.c:1060:36: warning: unused variable 'bq25890_acpi_match' [-Wunused-const-variable]
   static const struct acpi_device_id bq25890_acpi_match[] = {
                                      ^
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
   1 warning generated.
--
   drivers/power/reset/vexpress-poweroff.c:124:10: warning: cast to smaller integer type 'enum vexpress_reset_func' from 'const void *' [-Wvoid-pointer-to-enum-cast]
           switch ((enum vexpress_reset_func)match->data) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
   1 warning generated.
--
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
   arch/arm64/kernel/vdso/vgettimeofday.c:9:5: warning: no previous prototype for function '__kernel_clock_gettime' [-Wmissing-prototypes]
   int __kernel_clock_gettime(clockid_t clock,
       ^
   arch/arm64/kernel/vdso/vgettimeofday.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __kernel_clock_gettime(clockid_t clock,
   ^
   static 
   arch/arm64/kernel/vdso/vgettimeofday.c:15:5: warning: no previous prototype for function '__kernel_gettimeofday' [-Wmissing-prototypes]
   int __kernel_gettimeofday(struct __kernel_old_timeval *tv,
       ^
   arch/arm64/kernel/vdso/vgettimeofday.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __kernel_gettimeofday(struct __kernel_old_timeval *tv,
   ^
   static 
   arch/arm64/kernel/vdso/vgettimeofday.c:21:5: warning: no previous prototype for function '__kernel_clock_getres' [-Wmissing-prototypes]
   int __kernel_clock_getres(clockid_t clock_id,
       ^
   arch/arm64/kernel/vdso/vgettimeofday.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __kernel_clock_getres(clockid_t clock_id,
   ^
   static 
   3 warnings generated.

---
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: 31740 bytes --]

             reply	other threads:[~2020-07-17  3:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-17  3:18 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-06-19 10:11 kernel test robot

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=202007171127.tGgvn09G%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=will@kernel.org \
    /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®