[linux-next:master 5799/6035] arch/alpha/include/asm/atomic.h:107:2: note: in expansion of macro 'ATOMIC64_OP'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   5c4d1ca9cfa71d9515ce5946cfc6497d22b1108e
commit: c3e3459c92a22be17145cdd9d86a8acc74afa5cf [5799/6035] mm: move vmscan writes and file write accounting to the node
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c3e3459c92a22be17145cdd9d86a8acc74afa5cf
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All warnings (new ones prefixed by >>):

   In file included from include/linux/atomic.h:4:0,
                    from include/linux/spinlock.h:406,
                    from include/linux/wait.h:8,
                    from include/linux/fs.h:5,
                    from include/linux/dax.h:4,
                    from mm/filemap.c:14:
   mm/filemap.c: In function '__delete_from_page_cache':
   arch/alpha/include/asm/atomic.h:72:2: warning: array subscript is above array bounds [-Warray-bounds]
     __asm__ __volatile__(      \
     ^
>> arch/alpha/include/asm/atomic.h:107:2: note: in expansion of macro 'ATOMIC64_OP'
     ATOMIC64_OP(op, op##q)      \
     ^
>> arch/alpha/include/asm/atomic.h:110:1: note: in expansion of macro 'ATOMIC_OPS'
    ATOMIC_OPS(add)
    ^
--
   In file included from include/linux/atomic.h:4:0,
                    from include/linux/spinlock.h:406,
                    from include/linux/wait.h:8,
                    from include/linux/fs.h:5,
                    from mm/shmem.c:24:
   mm/shmem.c: In function 'shmem_add_to_page_cache':
   arch/alpha/include/asm/atomic.h:72:2: warning: array subscript is above array bounds [-Warray-bounds]
     __asm__ __volatile__(      \
     ^
>> arch/alpha/include/asm/atomic.h:107:2: note: in expansion of macro 'ATOMIC64_OP'
     ATOMIC64_OP(op, op##q)      \
     ^
>> arch/alpha/include/asm/atomic.h:110:1: note: in expansion of macro 'ATOMIC_OPS'
    ATOMIC_OPS(add)
    ^

vim +/ATOMIC64_OP +107 arch/alpha/include/asm/atomic.h

^1da177e include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16   66  }
^1da177e include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16   67  
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23   68  #define ATOMIC64_OP(op, asm_op)						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   69  static __inline__ void atomic64_##op(long i, atomic64_t * v)		\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   70  {									\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   71  	unsigned long temp;						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23  @72  	__asm__ __volatile__(						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   73  	"1:	ldq_l %0,%1\n"						\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23   74  	"	" #asm_op " %0,%2,%0\n"					\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   75  	"	stq_c %0,%1\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   76  	"	beq %0,2f\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   77  	".subsection 2\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   78  	"2:	br 1b\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   79  	".previous"							\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   80  	:"=&r" (temp), "=m" (v->counter)				\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   81  	:"Ir" (i), "m" (v->counter));					\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   82  }									\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   83  
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23   84  #define ATOMIC64_OP_RETURN(op, asm_op)					\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   85  static __inline__ long atomic64_##op##_return(long i, atomic64_t * v)	\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   86  {									\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   87  	long temp, result;						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   88  	smp_mb();							\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   89  	__asm__ __volatile__(						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   90  	"1:	ldq_l %0,%1\n"						\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23   91  	"	" #asm_op " %0,%3,%2\n"					\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23   92  	"	" #asm_op " %0,%3,%0\n"					\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   93  	"	stq_c %0,%1\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   94  	"	beq %0,2f\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   95  	".subsection 2\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   96  	"2:	br 1b\n"						\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   97  	".previous"							\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   98  	:"=&r" (temp), "=m" (v->counter), "=&r" (result)		\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23   99  	:"Ir" (i), "m" (v->counter) : "memory");			\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23  100  	smp_mb();							\
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23  101  	return result;							\
^1da177e include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16  102  }
^1da177e include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16  103  
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23  104  #define ATOMIC_OPS(op)							\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23  105  	ATOMIC_OP(op, op##l)						\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23  106  	ATOMIC_OP_RETURN(op, op##l)					\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23 @107  	ATOMIC64_OP(op, op##q)						\
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23  108  	ATOMIC64_OP_RETURN(op, op##q)
^1da177e include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16  109  
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23 @110  ATOMIC_OPS(add)
b93c7b8c arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-03-23  111  ATOMIC_OPS(sub)
^1da177e include/asm-alpha/atomic.h      Linus Torvalds 2005-04-16  112  
212d3be1 arch/alpha/include/asm/atomic.h Peter Zijlstra 2014-04-23  113  #define atomic_andnot atomic_andnot

:::::: The code at line 107 was first introduced by commit
:::::: 212d3be102d73dce70cc12f39dce4e0aed2c025b alpha: Provide atomic_{or,xor,and}

:::::: TO: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]