public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [norov:fns 8/8] lib/find_bit.c:105:1: error: redefinition of '__ksymtab__find_first_bit'
Date: Fri, 10 Jun 2022 15:08:21 +0800	[thread overview]
Message-ID: <202206101503.SiKOLRsZ-lkp@intel.com> (raw)

tree:   https://github.com/norov/linux fns
head:   785e34f40a6ad867ddc1fccf032a54bb41563865
commit: 785e34f40a6ad867ddc1fccf032a54bb41563865 [8/8] fns
config: hexagon-randconfig-r041-20220609 (https://download.01.org/0day-ci/archive/20220610/202206101503.SiKOLRsZ-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 70d35fe1257e429266b83025997b400e9f79110e)
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
        # https://github.com/norov/linux/commit/785e34f40a6ad867ddc1fccf032a54bb41563865
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov fns
        git checkout 785e34f40a6ad867ddc1fccf032a54bb41563865
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> lib/find_bit.c:105:1: error: redefinition of '__ksymtab__find_first_bit'
   EXPORT_SYMBOL(_find_first_bit);
   ^
   include/linux/export.h:150:29: note: expanded from macro 'EXPORT_SYMBOL'
   #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
                                           ^
   include/linux/export.h:147:34: note: expanded from macro '_EXPORT_SYMBOL'
   #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
                                           ^
   include/linux/export.h:140:39: note: expanded from macro '__EXPORT_SYMBOL'
   #define __EXPORT_SYMBOL(sym, sec, ns)   ___EXPORT_SYMBOL(sym, sec, ns)
                                           ^
   include/linux/export.h:96:2: note: expanded from macro '___EXPORT_SYMBOL'
           __KSYMTAB_ENTRY(sym, sec)
           ^
   include/linux/export.h:57:36: note: expanded from macro '__KSYMTAB_ENTRY'
           static const struct kernel_symbol __ksymtab_##sym               \
                                             ^
   <scratch space>:183:1: note: expanded from here
   __ksymtab__find_first_bit
   ^
   lib/find_bit.c:89:1: note: previous definition is here
   EXPORT_SYMBOL(_find_first_bit);
   ^
   include/linux/export.h:150:29: note: expanded from macro 'EXPORT_SYMBOL'
   #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
                                           ^
   include/linux/export.h:147:34: note: expanded from macro '_EXPORT_SYMBOL'
   #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
                                           ^
   include/linux/export.h:140:39: note: expanded from macro '__EXPORT_SYMBOL'
   #define __EXPORT_SYMBOL(sym, sec, ns)   ___EXPORT_SYMBOL(sym, sec, ns)
                                           ^
   include/linux/export.h:96:2: note: expanded from macro '___EXPORT_SYMBOL'
           __KSYMTAB_ENTRY(sym, sec)
           ^
   include/linux/export.h:57:36: note: expanded from macro '__KSYMTAB_ENTRY'
           static const struct kernel_symbol __ksymtab_##sym               \
                                             ^
   <scratch space>:168:1: note: expanded from here
   __ksymtab__find_first_bit
   ^
   1 error generated.


vim +/__ksymtab__find_first_bit +105 lib/find_bit.c

    91	
    92	unsigned long _find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n)
    93	{
    94		unsigned long idx, w;
    95	
    96		for (idx = 0; idx * BITS_PER_LONG < size; idx++, n -= w) {
    97			w = hweight_long(addr[idx]);
    98			if (w >= n)
    99				return min(idx * BITS_PER_LONG + fns(addr[idx], n), size);
   100		}
   101	
   102		return size;
   103	
   104	}
 > 105	EXPORT_SYMBOL(_find_first_bit);
   106	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-06-10  7:09 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=202206101503.SiKOLRsZ-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=yury.norov@gmail.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