From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [arm-integrator:b4/virt-to-pfn-v6-4-rc1 11/12] drivers/net/xen-netback/netback.c:692:23: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *'
Date: Thu, 4 May 2023 01:03:06 +0800 [thread overview]
Message-ID: <202305040041.ysofvjPz-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git b4/virt-to-pfn-v6-4-rc1
head: 042946296cd2b01e67500f6ca02c750fbd5d0046
commit: abe98e4b9a19f13cca92d0121e49563052302103 [11/12] arm64: memory: Make virt_to_pfn() a static inline
config: arm64-randconfig-r001-20230502 (https://download.01.org/0day-ci/archive/20230504/202305040041.ysofvjPz-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b1465cd49efcbc114a75220b153f5a055ce7911f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=abe98e4b9a19f13cca92d0121e49563052302103
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator b4/virt-to-pfn-v6-4-rc1
git checkout abe98e4b9a19f13cca92d0121e49563052302103
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305040041.ysofvjPz-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/xen-netback/netback.c:692:23: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' [-Wint-conversion]
page = virt_to_page(idx_to_kaddr(queue, pending_idx));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/memory.h:364:50: note: expanded from macro 'virt_to_page'
#define virt_to_page(x) pfn_to_page(virt_to_pfn(x))
^
include/asm-generic/memory_model.h:37:40: note: expanded from macro '__pfn_to_page'
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^~~
arch/arm64/include/asm/memory.h:337:53: note: passing argument to parameter 'kaddr' here
static inline unsigned long virt_to_pfn(const void *kaddr)
^
1 error generated.
vim +692 drivers/net/xen-netback/netback.c
f942dc2552b8bf Ian Campbell 2011-03-15 664
e9ce7cb6b10740 Wei Liu 2014-06-04 665 static void xenvif_fill_frags(struct xenvif_queue *queue, struct sk_buff *skb)
f942dc2552b8bf Ian Campbell 2011-03-15 666 {
f942dc2552b8bf Ian Campbell 2011-03-15 667 struct skb_shared_info *shinfo = skb_shinfo(skb);
f942dc2552b8bf Ian Campbell 2011-03-15 668 int nr_frags = shinfo->nr_frags;
f942dc2552b8bf Ian Campbell 2011-03-15 669 int i;
f53c3fe8dad725 Zoltan Kiss 2014-03-06 670 u16 prev_pending_idx = INVALID_PENDING_IDX;
f53c3fe8dad725 Zoltan Kiss 2014-03-06 671
f942dc2552b8bf Ian Campbell 2011-03-15 672 for (i = 0; i < nr_frags; i++) {
f942dc2552b8bf Ian Campbell 2011-03-15 673 skb_frag_t *frag = shinfo->frags + i;
f942dc2552b8bf Ian Campbell 2011-03-15 674 struct xen_netif_tx_request *txp;
ea066ad158631f Ian Campbell 2011-10-05 675 struct page *page;
ea066ad158631f Ian Campbell 2011-10-05 676 u16 pending_idx;
f942dc2552b8bf Ian Campbell 2011-03-15 677
ea066ad158631f Ian Campbell 2011-10-05 678 pending_idx = frag_get_pending_idx(frag);
f942dc2552b8bf Ian Campbell 2011-03-15 679
f53c3fe8dad725 Zoltan Kiss 2014-03-06 680 /* If this is not the first frag, chain it to the previous*/
bdab82759b8e36 Zoltan Kiss 2014-04-02 681 if (prev_pending_idx == INVALID_PENDING_IDX)
f53c3fe8dad725 Zoltan Kiss 2014-03-06 682 skb_shinfo(skb)->destructor_arg =
e9ce7cb6b10740 Wei Liu 2014-06-04 683 &callback_param(queue, pending_idx);
bdab82759b8e36 Zoltan Kiss 2014-04-02 684 else
e9ce7cb6b10740 Wei Liu 2014-06-04 685 callback_param(queue, prev_pending_idx).ctx =
e9ce7cb6b10740 Wei Liu 2014-06-04 686 &callback_param(queue, pending_idx);
f53c3fe8dad725 Zoltan Kiss 2014-03-06 687
e9ce7cb6b10740 Wei Liu 2014-06-04 688 callback_param(queue, pending_idx).ctx = NULL;
f53c3fe8dad725 Zoltan Kiss 2014-03-06 689 prev_pending_idx = pending_idx;
f53c3fe8dad725 Zoltan Kiss 2014-03-06 690
e9ce7cb6b10740 Wei Liu 2014-06-04 691 txp = &queue->pending_tx_info[pending_idx].req;
e9ce7cb6b10740 Wei Liu 2014-06-04 @692 page = virt_to_page(idx_to_kaddr(queue, pending_idx));
ea066ad158631f Ian Campbell 2011-10-05 693 __skb_fill_page_desc(skb, i, page, txp->offset, txp->size);
f942dc2552b8bf Ian Campbell 2011-03-15 694 skb->len += txp->size;
f942dc2552b8bf Ian Campbell 2011-03-15 695 skb->data_len += txp->size;
f942dc2552b8bf Ian Campbell 2011-03-15 696 skb->truesize += txp->size;
f942dc2552b8bf Ian Campbell 2011-03-15 697
f53c3fe8dad725 Zoltan Kiss 2014-03-06 698 /* Take an extra reference to offset network stack's put_page */
e9ce7cb6b10740 Wei Liu 2014-06-04 699 get_page(queue->mmap_pages[pending_idx]);
f942dc2552b8bf Ian Campbell 2011-03-15 700 }
f942dc2552b8bf Ian Campbell 2011-03-15 701 }
f942dc2552b8bf Ian Campbell 2011-03-15 702
:::::: The code at line 692 was first introduced by commit
:::::: e9ce7cb6b107407e4798e8905b18ad8b642766f6 xen-netback: Factor queue-specific data into queue struct
:::::: TO: Wei Liu <wei.liu2@citrix.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-05-03 17:03 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=202305040041.ysofvjPz-lkp@intel.com \
--to=lkp@intel.com \
--cc=linus.walleij@linaro.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.