public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [dhowells-fs:iov-sendpage 4/56] drivers/net/ethernet/google/gve/gve_main.c:1271:11: error: no member named 'va' in 'struct page_frag_cache'
Date: Fri, 7 Apr 2023 00:59:19 +0800	[thread overview]
Message-ID: <202304070036.bbxurxFa-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git iov-sendpage
head:   68abe677de847ca05213a704176a7b8a14b02738
commit: c6a6836d1903ed2dae863aeffe775f91b4d2d596 [4/56] mm: Make the page_frag_cache allocator use multipage folios
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20230407/202304070036.bbxurxFa-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=c6a6836d1903ed2dae863aeffe775f91b4d2d596
        git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
        git fetch --no-tags dhowells-fs iov-sendpage
        git checkout c6a6836d1903ed2dae863aeffe775f91b4d2d596
        # 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=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/google/gve/

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/202304070036.bbxurxFa-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/google/gve/gve_main.c:1271:11: error: no member named 'va' in 'struct page_frag_cache'
                   if (nc->va) {
                       ~~  ^
   drivers/net/ethernet/google/gve/gve_main.c:1272:45: error: no member named 'va' in 'struct page_frag_cache'
                           __page_frag_cache_drain(virt_to_page(nc->va),
                                                                ~~  ^
   arch/x86/include/asm/page.h:68:46: note: expanded from macro 'virt_to_page'
   #define virt_to_page(kaddr)     pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
                                                    ^~~~~
   arch/x86/include/asm/page.h:41:46: note: expanded from macro '__pa'
   #define __pa(x)         __phys_addr((unsigned long)(x))
                                                       ^
   include/asm-generic/memory_model.h:37:40: note: expanded from macro '__pfn_to_page'
   #define __pfn_to_page(pfn)      (vmemmap + (pfn))
                                               ^~~
   drivers/net/ethernet/google/gve/gve_main.c:1274:8: error: no member named 'va' in 'struct page_frag_cache'
                           nc->va = NULL;
                           ~~  ^
   drivers/net/ethernet/google/gve/gve_main.c:2217:46: warning: shift count >= width of type [-Wshift-count-overflow]
           err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
                                                       ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.


vim +1271 drivers/net/ethernet/google/gve/gve_main.c

75eaae158b1b7d Praveen Kaligineedi 2023-03-15  1263  
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1264  static void gve_drain_page_cache(struct gve_priv *priv)
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1265  {
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1266  	struct page_frag_cache *nc;
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1267  	int i;
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1268  
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1269  	for (i = 0; i < priv->rx_cfg.num_queues; i++) {
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1270  		nc = &priv->rx[i].page_cache;
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15 @1271  		if (nc->va) {
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1272  			__page_frag_cache_drain(virt_to_page(nc->va),
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1273  						nc->pagecnt_bias);
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1274  			nc->va = NULL;
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1275  		}
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1276  	}
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1277  }
39a7f4aa3e4a79 Praveen Kaligineedi 2023-03-15  1278  

:::::: The code at line 1271 was first introduced by commit
:::::: 39a7f4aa3e4a7947614cf1d5c27abba3300adb1e gve: Add XDP REDIRECT support for GQI-QPL format

:::::: TO: Praveen Kaligineedi <pkaligineedi@google.com>
:::::: CC: David S. Miller <davem@davemloft.net>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-04-06 17:00 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=202304070036.bbxurxFa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dhowells@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox