linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Daniel Micay <danielmicay@gmail.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 199/276] arch/alpha/include/asm/string.h:45:16: error: redefinition of '__memset'
Date: Mon, 12 Jun 2017 09:30:36 +0800	[thread overview]
Message-ID: <201706120914.eYCcYtjQ%fengguang.wu@intel.com> (raw)

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   4677e8652d20c18b401670cde04627e1dde64629
commit: 2193acf911056c13e406c55599190b81e6570fdf [199/276] include/linux/string.h: add the option of fortified string.h functions
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2193acf911056c13e406c55599190b81e6570fdf
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All errors (new ones prefixed by >>):

   In file included from include/linux/string.h:18:0,
                    from include/linux/bitmap.h:8,
                    from include/linux/cpumask.h:11,
                    from include/linux/rcupdate.h:40,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:4,
                    from include/linux/sched.h:13,
                    from arch/alpha/kernel/asm-offsets.c:9:
>> arch/alpha/include/asm/string.h:45:16: error: redefinition of '__memset'
    #define memset __memset
                   ^
   include/linux/string.h:291:24: note: in expansion of macro 'memset'
    __FORTIFY_INLINE void *memset(void *p, int c, __kernel_size_t size)
                           ^~~~~~
   arch/alpha/include/asm/string.h:32:21: note: previous definition of '__memset' was here
    extern inline void *__memset(void *s, int c, size_t n)
                        ^~~~~~~~
   make[2]: *** [arch/alpha/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/__memset +45 arch/alpha/include/asm/string.h

a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11  39  			return __constant_c_memset(s, c8, n);
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11  40  		}
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11  41  	}
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11  42  	return ___memset(s, c, n);
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11  43  }
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11  44  
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 @45  #define memset __memset
^1da177e include/asm-alpha/string.h      Linus Torvalds    2005-04-16  46  
^1da177e include/asm-alpha/string.h      Linus Torvalds    2005-04-16  47  #define __HAVE_ARCH_STRCPY
^1da177e include/asm-alpha/string.h      Linus Torvalds    2005-04-16  48  extern char * strcpy(char *,const char *);

:::::: The code at line 45 was first introduced by commit
:::::: a47e5bb5764f029f989a182b0dd2d4cce69f8b14 alpha: Eliminate compiler warning from memset macro

:::::: TO: Richard Henderson <rth@twiddle.net>
:::::: CC: Matt Turner <mattst88@gmail.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

                 reply	other threads:[~2017-06-12  1:30 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=201706120914.eYCcYtjQ%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=danielmicay@gmail.com \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.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