All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 12573/13550] kernel/dma/swiotlb.c:771:5: error: implicit declaration of function 'debugfs_create_dir'; did you mean 'kernfs_create_dir'?
Date: Fri, 25 Jun 2021 21:43:36 +0800	[thread overview]
Message-ID: <202106252130.VuBKabAz-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3495 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8702f95941c215501826ea8743a8b64b83479209
commit: 461021875c5057b3a408db0aa91b15119064ffa8 [12573/13550] swiotlb: Add restricted DMA pool initialization
config: microblaze-randconfig-r016-20210625 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
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/next/linux-next.git/commit/?id=461021875c5057b3a408db0aa91b15119064ffa8
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 461021875c5057b3a408db0aa91b15119064ffa8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/dma/swiotlb.c: In function 'rmem_swiotlb_device_init':
>> kernel/dma/swiotlb.c:771:5: error: implicit declaration of function 'debugfs_create_dir'; did you mean 'kernfs_create_dir'? [-Werror=implicit-function-declaration]
     771 |     debugfs_create_dir(rmem->name, debugfs_dir);
         |     ^~~~~~~~~~~~~~~~~~
         |     kernfs_create_dir
>> kernel/dma/swiotlb.c:771:36: error: 'debugfs_dir' undeclared (first use in this function)
     771 |     debugfs_create_dir(rmem->name, debugfs_dir);
         |                                    ^~~~~~~~~~~
   kernel/dma/swiotlb.c:771:36: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/dma/swiotlb.c:772:4: error: implicit declaration of function 'swiotlb_create_debugfs_files' [-Werror=implicit-function-declaration]
     772 |    swiotlb_create_debugfs_files(mem);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +771 kernel/dma/swiotlb.c

   744	
   745	static int rmem_swiotlb_device_init(struct reserved_mem *rmem,
   746					    struct device *dev)
   747	{
   748		struct io_tlb_mem *mem = rmem->priv;
   749		unsigned long nslabs = rmem->size >> IO_TLB_SHIFT;
   750	
   751		/*
   752		 * Since multiple devices can share the same pool, the private data,
   753		 * io_tlb_mem struct, will be initialized by the first device attached
   754		 * to it.
   755		 */
   756		if (!mem) {
   757			mem = kzalloc(struct_size(mem, slots, nslabs), GFP_KERNEL);
   758			if (!mem)
   759				return -ENOMEM;
   760	
   761			set_memory_decrypted((unsigned long)phys_to_virt(rmem->base),
   762					     rmem->size >> PAGE_SHIFT);
   763			swiotlb_init_io_tlb_mem(mem, rmem->base, nslabs, false);
   764			mem->force_bounce = true;
   765			mem->for_alloc = true;
   766	
   767			rmem->priv = mem;
   768	
   769			if (IS_ENABLED(CONFIG_DEBUG_FS)) {
   770				mem->debugfs =
 > 771					debugfs_create_dir(rmem->name, debugfs_dir);
 > 772				swiotlb_create_debugfs_files(mem);
   773			}
   774		}
   775	
   776		dev->dma_io_tlb_mem = mem;
   777	
   778		return 0;
   779	}
   780	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19607 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Claire Chang <tientzu@chromium.org>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Christoph Hellwig <hch@lst.de>
Subject: [linux-next:master 12573/13550] kernel/dma/swiotlb.c:771:5: error: implicit declaration of function 'debugfs_create_dir'; did you mean 'kernfs_create_dir'?
Date: Fri, 25 Jun 2021 21:43:36 +0800	[thread overview]
Message-ID: <202106252130.VuBKabAz-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3415 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8702f95941c215501826ea8743a8b64b83479209
commit: 461021875c5057b3a408db0aa91b15119064ffa8 [12573/13550] swiotlb: Add restricted DMA pool initialization
config: microblaze-randconfig-r016-20210625 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
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/next/linux-next.git/commit/?id=461021875c5057b3a408db0aa91b15119064ffa8
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 461021875c5057b3a408db0aa91b15119064ffa8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/dma/swiotlb.c: In function 'rmem_swiotlb_device_init':
>> kernel/dma/swiotlb.c:771:5: error: implicit declaration of function 'debugfs_create_dir'; did you mean 'kernfs_create_dir'? [-Werror=implicit-function-declaration]
     771 |     debugfs_create_dir(rmem->name, debugfs_dir);
         |     ^~~~~~~~~~~~~~~~~~
         |     kernfs_create_dir
>> kernel/dma/swiotlb.c:771:36: error: 'debugfs_dir' undeclared (first use in this function)
     771 |     debugfs_create_dir(rmem->name, debugfs_dir);
         |                                    ^~~~~~~~~~~
   kernel/dma/swiotlb.c:771:36: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/dma/swiotlb.c:772:4: error: implicit declaration of function 'swiotlb_create_debugfs_files' [-Werror=implicit-function-declaration]
     772 |    swiotlb_create_debugfs_files(mem);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +771 kernel/dma/swiotlb.c

   744	
   745	static int rmem_swiotlb_device_init(struct reserved_mem *rmem,
   746					    struct device *dev)
   747	{
   748		struct io_tlb_mem *mem = rmem->priv;
   749		unsigned long nslabs = rmem->size >> IO_TLB_SHIFT;
   750	
   751		/*
   752		 * Since multiple devices can share the same pool, the private data,
   753		 * io_tlb_mem struct, will be initialized by the first device attached
   754		 * to it.
   755		 */
   756		if (!mem) {
   757			mem = kzalloc(struct_size(mem, slots, nslabs), GFP_KERNEL);
   758			if (!mem)
   759				return -ENOMEM;
   760	
   761			set_memory_decrypted((unsigned long)phys_to_virt(rmem->base),
   762					     rmem->size >> PAGE_SHIFT);
   763			swiotlb_init_io_tlb_mem(mem, rmem->base, nslabs, false);
   764			mem->force_bounce = true;
   765			mem->for_alloc = true;
   766	
   767			rmem->priv = mem;
   768	
   769			if (IS_ENABLED(CONFIG_DEBUG_FS)) {
   770				mem->debugfs =
 > 771					debugfs_create_dir(rmem->name, debugfs_dir);
 > 772				swiotlb_create_debugfs_files(mem);
   773			}
   774		}
   775	
   776		dev->dma_io_tlb_mem = mem;
   777	
   778		return 0;
   779	}
   780	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 19607 bytes --]

             reply	other threads:[~2021-06-25 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-25 13:43 kernel test robot [this message]
2021-06-25 13:43 ` [linux-next:master 12573/13550] kernel/dma/swiotlb.c:771:5: error: implicit declaration of function 'debugfs_create_dir'; did you mean 'kernfs_create_dir'? kernel test robot

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=202106252130.VuBKabAz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.