lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 20 Aug 2017 04:30:57 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Wei Wang <wei.w.wang@...el.com>
Cc:     kbuild-all@...org, virtio-dev@...ts.oasis-open.org,
        linux-kernel@...r.kernel.org, qemu-devel@...gnu.org,
        virtualization@...ts.linux-foundation.org, kvm@...r.kernel.org,
        linux-mm@...ck.org, mst@...hat.com, mhocko@...nel.org,
        akpm@...ux-foundation.org, mawilcox@...rosoft.com,
        david@...hat.com, cornelia.huck@...ibm.com,
        mgorman@...hsingularity.net, aarcange@...hat.com,
        amit.shah@...hat.com, pbonzini@...hat.com, willy@...radead.org,
        wei.w.wang@...el.com, liliang.opensource@...il.com,
        yang.zhang.wz@...il.com, quan.xu@...yun.com
Subject: Re: [PATCH v14 1/5] lib/xbitmap: Introduce xbitmap

Hi Matthew,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.13-rc5 next-20170817]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Wei-Wang/lib-xbitmap-Introduce-xbitmap/20170820-035516
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   lib/xbitmap.c: In function 'xb_test_bit':
>> lib/xbitmap.c:153:26: warning: passing argument 1 of 'xb_bit_ops' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     return (bool)xb_bit_ops(xb, bit, XB_TEST);
                             ^~
   lib/xbitmap.c:23:12: note: expected 'struct xb *' but argument is of type 'const struct xb *'
    static int xb_bit_ops(struct xb *xb, unsigned long bit, enum xb_ops ops)
               ^~~~~~~~~~

vim +153 lib/xbitmap.c

   142	
   143	/**
   144	 * xb_test_bit - test a bit in the xbitmap
   145	 * @xb: the xbitmap tree used to record the bit
   146	 * @bit: index of the bit to set
   147	 *
   148	 * This function is used to test a bit in the xbitmap.
   149	 * Returns: 1 if the bit is set, or 0 otherwise.
   150	 */
   151	bool xb_test_bit(const struct xb *xb, unsigned long bit)
   152	{
 > 153		return (bool)xb_bit_ops(xb, bit, XB_TEST);
   154	}
   155	EXPORT_SYMBOL(xb_test_bit);
   156	

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

Download attachment ".config.gz" of type "application/gzip" (6665 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ