linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* warning: some functions compiled with BTI and some compiled without BTI
@ 2020-07-17  3:18 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-17  3:18 UTC (permalink / raw)
  To: Mark Brown
  Cc: kbuild-all, clang-built-linux, linux-kernel, Will Deacon,
	Catalin Marinas

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* warning: some functions compiled with BTI and some compiled without BTI
@ 2020-06-19 10:11 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-19 10:11 UTC (permalink / raw)
  To: Mark Brown
  Cc: kbuild-all, clang-built-linux, linux-kernel, Will Deacon,
	Catalin Marinas

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5e857ce6eae7ca21b2055cca4885545e29228fe2
commit: 97fed779f2a68937d9590fbbe8ed31d6ebbce5a5 arm64: bti: Provide Kconfig for kernel mode BTI
date:   6 weeks ago
config: arm64-randconfig-r031-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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 >>, old ones prefixed by <<):

lib/lzo/lzo1x_compress.c:291:5: warning: no previous prototype for function 'lzogeneric1x_1_compress' [-Wmissing-prototypes]
int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len,
^
lib/lzo/lzo1x_compress.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len,
^
static
>> 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
--
lib/decompress_inflate.c:42:17: warning: no previous prototype for function '__gunzip' [-Wmissing-prototypes]
STATIC int INIT __gunzip(unsigned char *buf, long len,
^
lib/decompress_inflate.c:42:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
STATIC int INIT __gunzip(unsigned char *buf, long len,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/decompress_unxz.c:251:17: warning: no previous prototype for function 'unxz' [-Wmissing-prototypes]
STATIC int INIT unxz(unsigned char *in, long in_size,
^
lib/decompress_unxz.c:251:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
STATIC int INIT unxz(unsigned char *in, long in_size,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/radix-tree.c:291:6: warning: no previous prototype for function 'radix_tree_node_rcu_free' [-Wmissing-prototypes]
void radix_tree_node_rcu_free(struct rcu_head *head)
^
lib/radix-tree.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void radix_tree_node_rcu_free(struct rcu_head *head)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/compat_audit.c:31:5: warning: no previous prototype for function 'audit_classify_compat_syscall' [-Wmissing-prototypes]
int audit_classify_compat_syscall(int abi, unsigned syscall)
^
lib/compat_audit.c:31:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int audit_classify_compat_syscall(int abi, unsigned syscall)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/errname.c:172:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
E(EDEADLK), /* EDEADLOCK */
^~~~~~~~~~
lib/errname.c:15:67: note: expanded from macro 'E'
#define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err
^~~~~~~~
lib/errname.c:41:2: note: previous initialization is here
E(EDEADLOCK),
^~~~~~~~~~~~
lib/errname.c:15:67: note: expanded from macro 'E'
#define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err
^~~~~~~~
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/kunit/debugfs.c:28:6: warning: no previous prototype for function 'kunit_debugfs_cleanup' [-Wmissing-prototypes]
void kunit_debugfs_cleanup(void)
^
lib/kunit/debugfs.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_cleanup(void)
^
static
lib/kunit/debugfs.c:33:6: warning: no previous prototype for function 'kunit_debugfs_init' [-Wmissing-prototypes]
void kunit_debugfs_init(void)
^
lib/kunit/debugfs.c:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_init(void)
^
static
lib/kunit/debugfs.c:92:6: warning: no previous prototype for function 'kunit_debugfs_create_suite' [-Wmissing-prototypes]
void kunit_debugfs_create_suite(struct kunit_suite *suite)
^
lib/kunit/debugfs.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_create_suite(struct kunit_suite *suite)
^
static
lib/kunit/debugfs.c:108:6: warning: no previous prototype for function 'kunit_debugfs_destroy_suite' [-Wmissing-prototypes]
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
^
lib/kunit/debugfs.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
4 warnings generated.
--
lib/lz4/lz4_decompress.c:477:5: warning: no previous prototype for function 'LZ4_decompress_safe_withPrefix64k' [-Wmissing-prototypes]
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
lib/lz4/lz4_decompress.c:477:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
static
lib/lz4/lz4_decompress.c:499:5: warning: no previous prototype for function 'LZ4_decompress_safe_forceExtDict' [-Wmissing-prototypes]
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
lib/lz4/lz4_decompress.c:499:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
2 warnings generated.
--
lib/zlib_inflate/inffast.c:31:1: warning: unused function 'get_unaligned16' [-Wunused-function]
get_unaligned16(const unsigned short *p)
^
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/zstd/fse_compress.c:477:8: warning: no previous prototype for function 'FSE_sizeof_CTable' [-Wmissing-prototypes]
size_t FSE_sizeof_CTable(unsigned maxSymbolValue, unsigned tableLog)
^
lib/zstd/fse_compress.c:477:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
size_t FSE_sizeof_CTable(unsigned maxSymbolValue, unsigned tableLog)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning 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: 40282 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-17  3:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17  3:18 warning: some functions compiled with BTI and some compiled without BTI kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-06-19 10:11 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).