[target:nvmet-configfs-ng 19/27] drivers/nvme/target/configfs-ng.c:321:15: error: passing argument 1 of 'atomic64_inc' from incompatible pointer type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git nvmet-configfs-ng
head:   9589c853cae62cadabb17a3c48f9fdb3da5fa83c
commit: 002901c382c5432032722aba752f578ebe5bfeea [19/27] nvmet: Add support for configfs-ng multi-tenant logic
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 002901c382c5432032722aba752f578ebe5bfeea
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/nvme/target/configfs-ng.c: In function 'nvmet_port_disable':
>> drivers/nvme/target/configfs-ng.c:321:15: error: passing argument 1 of 'atomic64_inc' from incompatible pointer type [-Werror=incompatible-pointer-types]
     atomic64_inc(&nvmet_genctr);
                  ^
   In file included from arch/x86/include/asm/atomic.h:237:0,
                    from arch/x86/include/asm/msr.h:66,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from drivers/nvme/target/configfs-ng.c:5:
   arch/x86/include/asm/atomic64_32.h:218:20: note: expected 'atomic64_t * {aka struct <anonymous> *}' but argument is of type 'atomic_long_t * {aka struct <anonymous> *}'
    static inline void atomic64_inc(atomic64_t *v)
                       ^~~~~~~~~~~~
   drivers/nvme/target/configfs-ng.c: In function 'nvmet_port_enable_store':
   drivers/nvme/target/configfs-ng.c:362:16: error: passing argument 1 of 'atomic64_inc' from incompatible pointer type [-Werror=incompatible-pointer-types]
      atomic64_inc(&nvmet_genctr);
                   ^
   In file included from arch/x86/include/asm/atomic.h:237:0,
                    from arch/x86/include/asm/msr.h:66,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from drivers/nvme/target/configfs-ng.c:5:
   arch/x86/include/asm/atomic64_32.h:218:20: note: expected 'atomic64_t * {aka struct <anonymous> *}' but argument is of type 'atomic_long_t * {aka struct <anonymous> *}'
    static inline void atomic64_inc(atomic64_t *v)
                       ^~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   drivers/nvme/target/discovery.c: In function 'nvmet_referral_enable':
>> drivers/nvme/target/discovery.c:29:16: error: passing argument 1 of 'atomic64_inc' from incompatible pointer type [-Werror=incompatible-pointer-types]
      atomic64_inc(&nvmet_genctr);
                   ^
   In file included from arch/x86/include/asm/atomic.h:237:0,
                    from arch/x86/include/asm/msr.h:66,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:14,
                    from drivers/nvme/target/discovery.c:15:
   arch/x86/include/asm/atomic64_32.h:218:20: note: expected 'atomic64_t * {aka struct <anonymous> *}' but argument is of type 'atomic_long_t * {aka struct <anonymous> *}'
    static inline void atomic64_inc(atomic64_t *v)
                       ^~~~~~~~~~~~
   drivers/nvme/target/discovery.c: In function 'nvmet_referral_disable':
   drivers/nvme/target/discovery.c:40:16: error: passing argument 1 of 'atomic64_inc' from incompatible pointer type [-Werror=incompatible-pointer-types]
      atomic64_inc(&nvmet_genctr);
                   ^
   In file included from arch/x86/include/asm/atomic.h:237:0,
                    from arch/x86/include/asm/msr.h:66,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:14,
                    from drivers/nvme/target/discovery.c:15:
   arch/x86/include/asm/atomic64_32.h:218:20: note: expected 'atomic64_t * {aka struct <anonymous> *}' but argument is of type 'atomic_long_t * {aka struct <anonymous> *}'
    static inline void atomic64_inc(atomic64_t *v)
                       ^~~~~~~~~~~~
   In file included from include/linux/byteorder/little_endian.h:4:0,
                    from arch/x86/include/uapi/asm/byteorder.h:4,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/x86/include/asm/bitops.h:504,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/asm-generic/bug.h:13,
                    from arch/x86/include/asm/bug.h:35,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from include/linux/slab.h:14,
                    from drivers/nvme/target/discovery.c:15:
   drivers/nvme/target/discovery.c: In function 'nvmet_execute_get_disc_log_page':
>> drivers/nvme/target/discovery.c:130:42: error: passing argument 1 of 'atomic64_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
     hdr->genctr = cpu_to_le64(atomic64_read(&nvmet_genctr));
                                             ^
   include/uapi/linux/byteorder/little_endian.h:30:51: note: in definition of macro '__cpu_to_le64'
    #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
                                                      ^
>> drivers/nvme/target/discovery.c:130:16: note: in expansion of macro 'cpu_to_le64'
     hdr->genctr = cpu_to_le64(atomic64_read(&nvmet_genctr));
                   ^~~~~~~~~~~
   In file included from arch/x86/include/asm/atomic.h:237:0,
                    from arch/x86/include/asm/msr.h:66,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:14,
                    from drivers/nvme/target/discovery.c:15:
   arch/x86/include/asm/atomic64_32.h:119:25: note: expected 'const atomic64_t * {aka const struct <anonymous> *}' but argument is of type 'atomic_long_t * {aka struct <anonymous> *}'
    static inline long long atomic64_read(const atomic64_t *v)
                            ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/atomic64_inc +321 drivers/nvme/target/configfs-ng.c

   315			return;
   316	
   317		ops->remove_port(pb);
   318		nvmet_put_transport(&pb->disc_addr);
   319		pb->nf_ops = NULL;
   320	
 > 321		atomic64_inc(&nvmet_genctr);
   322	}
   323	
   324	static ssize_t nvmet_port_enable_show(struct config_item *item, char *page)

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

Attachment: .config.gz
Description: Binary data


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux