All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [hch-misc:kfifo-include 1/1] include/linux/kfifo.h:745:60: error: 'DMA_MAPPING_ERROR' undeclared
Date: Fri, 11 Oct 2024 12:42:36 +0800	[thread overview]
Message-ID: <202410111216.3o3f3B02-lkp@intel.com> (raw)

tree:   git://git.infradead.org/users/hch/misc.git kfifo-include
head:   5a122872045100223f0e44256a62ed2b1f85d985
commit: 5a122872045100223f0e44256a62ed2b1f85d985 [1/1] kfifo: don't include dma-mapping.h in kfifo.h
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241011/202410111216.3o3f3B02-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241011/202410111216.3o3f3B02-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410111216.3o3f3B02-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from samples/kfifo/dma-example.c:9:
   samples/kfifo/dma-example.c: In function 'example_init':
>> include/linux/kfifo.h:745:60: error: 'DMA_MAPPING_ERROR' undeclared (first use in this function)
     745 |         kfifo_dma_in_prepare_mapped(fifo, sgl, nents, len, DMA_MAPPING_ERROR)
         |                                                            ^~~~~~~~~~~~~~~~~
   include/linux/kfifo.h:740:34: note: in definition of macro 'kfifo_dma_in_prepare_mapped'
     740 |                                  dma) : \
         |                                  ^~~
   samples/kfifo/dma-example.c:64:17: note: in expansion of macro 'kfifo_dma_in_prepare'
      64 |         nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE);
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/kfifo.h:745:60: note: each undeclared identifier is reported only once for each function it appears in
     745 |         kfifo_dma_in_prepare_mapped(fifo, sgl, nents, len, DMA_MAPPING_ERROR)
         |                                                            ^~~~~~~~~~~~~~~~~
   include/linux/kfifo.h:740:34: note: in definition of macro 'kfifo_dma_in_prepare_mapped'
     740 |                                  dma) : \
         |                                  ^~~
   samples/kfifo/dma-example.c:64:17: note: in expansion of macro 'kfifo_dma_in_prepare'
      64 |         nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE);
         |                 ^~~~~~~~~~~~~~~~~~~~


vim +/DMA_MAPPING_ERROR +745 include/linux/kfifo.h

86d48803136038 Stefani Seibold   2009-12-21  743  
d52b761e4b1acc Jiri Slaby (SUSE  2024-04-05  744) #define kfifo_dma_in_prepare(fifo, sgl, nents, len) \
d52b761e4b1acc Jiri Slaby (SUSE  2024-04-05 @745) 	kfifo_dma_in_prepare_mapped(fifo, sgl, nents, len, DMA_MAPPING_ERROR)
d52b761e4b1acc Jiri Slaby (SUSE  2024-04-05  746) 

:::::: The code at line 745 was first introduced by commit
:::::: d52b761e4b1acc897e65bcc8eff42b0537ac0134 kfifo: add kfifo_dma_out_prepare_mapped()

:::::: TO: Jiri Slaby (SUSE) <jirislaby@kernel.org>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

                 reply	other threads:[~2024-10-11  4:42 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=202410111216.3o3f3B02-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --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.