From: kbuild test robot <lkp@intel.com>
To: Loic Pallardy <loic.pallardy@st.com>
Cc: kbuild-all@01.org, bjorn.andersson@linaro.org, ohad@wizery.com,
lee.jones@linaro.org, loic.pallardy@st.com,
linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel@stlinux.com, patrice.chotard@st.com,
hugues.fruchet@st.com, peter.griffin@linaro.org
Subject: Re: [PATCH v2 5/6] rpmsg: virtio_rpmsg: don't allocate buffer if provided by low level driver
Date: Wed, 1 Feb 2017 02:29:42 +0800 [thread overview]
Message-ID: <201702010248.7QYpAwwZ%fengguang.wu@intel.com> (raw)
In-Reply-To: <1485867097-6960-6-git-send-email-loic.pallardy@st.com>
[-- Attachment #1: Type: text/plain, Size: 5004 bytes --]
Hi Loic,
[auto build test WARNING on v4.9-rc8]
[also build test WARNING on next-20170130]
[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/Loic-Pallardy/virtio_rpmsg-make-rpmsg-channel-configurable/20170131-212156
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
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
# save the attached .config to linux build tree
make.cross ARCH=arm
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
In file included from arch/arm/include/asm/page.h:171:0,
from arch/arm/include/asm/thread_info.h:17,
from include/linux/thread_info.h:58,
from include/asm-generic/preempt.h:4,
from ./arch/arm/include/generated/asm/preempt.h:1,
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/rpmsg/virtio_rpmsg_bus.c:23:
drivers/rpmsg/virtio_rpmsg_bus.c: In function 'rpmsg_probe':
>> include/asm-generic/getorder.h:17:6: warning: 'total_buf_space' may be used uninitialized in this function [-Wmaybe-uninitialized]
size--;
~~~~^~
drivers/rpmsg/virtio_rpmsg_bus.c:934:9: note: 'total_buf_space' was declared here
size_t total_buf_space;
^~~~~~~~~~~~~~~
In file included from drivers/rpmsg/virtio_rpmsg_bus.c:28:0:
>> include/linux/dma-mapping.h:481:6: warning: 'bufs_va' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (dma_release_from_coherent(dev, get_order(size), cpu_addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/rpmsg/virtio_rpmsg_bus.c:932:8: note: 'bufs_va' was declared here
void *bufs_va;
^~~~~~~
vim +/total_buf_space +17 include/asm-generic/getorder.h
5b17e1cd include/asm-generic/getorder.h Arnd Bergmann 2009-05-13 1 #ifndef __ASM_GENERIC_GETORDER_H
5b17e1cd include/asm-generic/getorder.h Arnd Bergmann 2009-05-13 2 #define __ASM_GENERIC_GETORDER_H
fd4fd5aa include/asm-generic/page.h Stephen Rothwell 2005-09-03 3
fd4fd5aa include/asm-generic/page.h Stephen Rothwell 2005-09-03 4 #ifndef __ASSEMBLY__
fd4fd5aa include/asm-generic/page.h Stephen Rothwell 2005-09-03 5
38f33230 include/asm-generic/page.h Linus Torvalds 2007-03-06 6 #include <linux/compiler.h>
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 7 #include <linux/log2.h>
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 8
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 9 /*
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 10 * Runtime evaluation of get_order()
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 11 */
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 12 static inline __attribute_const__
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 13 int __get_order(unsigned long size)
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 14 {
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 15 int order;
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 16
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 @17 size--;
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 18 size >>= PAGE_SHIFT;
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 19 #if BITS_PER_LONG == 32
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 20 order = fls(size);
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 21 #else
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 22 order = fls64(size);
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 23 #endif
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 24 return order;
d66acc39 include/asm-generic/getorder.h David Howells 2012-02-20 25 }
:::::: The code at line 17 was first introduced by commit
:::::: d66acc39c7cee323733c8503b9de1821a56dff7e bitops: Optimise get_order()
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: H. Peter Anvin <hpa@zytor.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: 59452 bytes --]
next prev parent reply other threads:[~2017-01-31 18:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 12:51 [PATCH v2 0/6] virtio_rpmsg: make rpmsg channel configurable Loic Pallardy
2017-01-31 12:51 ` [PATCH v2 1/6] rpmsg: virtio_rpmsg: set rpmsg_buf_size customizable Loic Pallardy
2017-01-31 12:51 ` [PATCH v2 2/6] rpmsg: virtio_rpmsg_bus: fix sg_set_buf() when addr is not a valid kernel address Loic Pallardy
2017-01-31 12:51 ` [PATCH v2 3/6] include: virtio_rpmsg: add virtio rpmsg configuration structure Loic Pallardy
2017-01-31 12:51 ` [PATCH v2 4/6] rpmsg: virtio_rpmsg: get buffer configuration from virtio Loic Pallardy
2017-01-31 12:51 ` [PATCH v2 5/6] rpmsg: virtio_rpmsg: don't allocate buffer if provided by low level driver Loic Pallardy
2017-01-31 18:29 ` kbuild test robot [this message]
2017-01-31 12:51 ` [PATCH v2 6/6] rpmsg: virtio_rpmsg: set buffer configuration to virtio Loic Pallardy
2017-02-08 10:21 ` [PATCH v2 0/6] virtio_rpmsg: make rpmsg channel configurable Hugues FRUCHET
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=201702010248.7QYpAwwZ%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=bjorn.andersson@linaro.org \
--cc=hugues.fruchet@st.com \
--cc=kbuild-all@01.org \
--cc=kernel@stlinux.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=loic.pallardy@st.com \
--cc=ohad@wizery.com \
--cc=patrice.chotard@st.com \
--cc=peter.griffin@linaro.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
all inboxes | Powered by JetHome®