mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 2334/2579] drivers/media/platform/nxp/fsl-viu.c:1319:35: error: invalid use of undefined type 'struct vm_area_struct'
Date: Thu, 21 Apr 2022 14:40:18 +0800	[thread overview]
Message-ID: <202204202237.YDWys8yN-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: b27bd62c031289808bdd5bc641923e4e1ef02a5d [2334/2579] headers/deps: modules: Optimize <linux/buildid.h> dependencies, remove <linux/mm_types.h> inclusion
config: sparc64-randconfig-r015-20220420 (https://download.01.org/0day-ci/archive/20220420/202204202237.YDWys8yN-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.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/mingo/tip.git/commit/?id=b27bd62c031289808bdd5bc641923e4e1ef02a5d
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout b27bd62c031289808bdd5bc641923e4e1ef02a5d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/media/platform/nxp/ kernel/ sound/soc/qcom/qdsp6/

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

All error/warnings (new ones prefixed by >>):

   drivers/media/platform/nxp/fsl-viu.c: In function 'vidioc_s_fbuf':
   drivers/media/platform/nxp/fsl-viu.c:813:14: error: implicit declaration of function 'capable'; did you mean 'adi_capable'? [-Werror=implicit-function-declaration]
     813 |         if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RAWIO))
         |              ^~~~~~~
         |              adi_capable
   drivers/media/platform/nxp/fsl-viu.c:813:22: error: 'CAP_SYS_ADMIN' undeclared (first use in this function)
     813 |         if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RAWIO))
         |                      ^~~~~~~~~~~~~
   drivers/media/platform/nxp/fsl-viu.c:813:22: note: each undeclared identifier is reported only once for each function it appears in
   drivers/media/platform/nxp/fsl-viu.c:813:49: error: 'CAP_SYS_RAWIO' undeclared (first use in this function)
     813 |         if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RAWIO))
         |                                                 ^~~~~~~~~~~~~
   In file included from include/asm-generic/bug.h:22,
                    from arch/sparc/include/asm/bug.h:25,
                    from include/linux/bug.h:5,
                    from include/linux/cpumask_types.h:12,
                    from include/linux/cpumask.h:5,
                    from include/linux/smp_api.h:12,
                    from include/linux/lockdep_api.h:27,
                    from include/linux/timer.h:5,
                    from drivers/media/platform/nxp/fsl-viu.c:12:
   drivers/media/platform/nxp/fsl-viu.c: In function 'viu_mmap':
>> drivers/media/platform/nxp/fsl-viu.c:1319:35: error: invalid use of undefined type 'struct vm_area_struct'
    1319 |                 (unsigned long)vma->vm_start,
         |                                   ^~
   include/linux/printk.h:416:33: note: in definition of macro 'printk_index_wrap'
     416 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   drivers/media/platform/nxp/fsl-viu.c:53:25: note: in expansion of macro 'printk'
      53 |                         printk(KERN_DEBUG "viu: " fmt , ## arg);        \
         |                         ^~~~~~
   drivers/media/platform/nxp/fsl-viu.c:1318:9: note: in expansion of macro 'dprintk'
    1318 |         dprintk(1, "vma start=0x%08lx, size=%ld, ret=%d\n",
         |         ^~~~~~~
   drivers/media/platform/nxp/fsl-viu.c:1320:35: error: invalid use of undefined type 'struct vm_area_struct'
    1320 |                 (unsigned long)vma->vm_end-(unsigned long)vma->vm_start,
         |                                   ^~
   include/linux/printk.h:416:33: note: in definition of macro 'printk_index_wrap'
     416 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   drivers/media/platform/nxp/fsl-viu.c:53:25: note: in expansion of macro 'printk'
      53 |                         printk(KERN_DEBUG "viu: " fmt , ## arg);        \
         |                         ^~~~~~
   drivers/media/platform/nxp/fsl-viu.c:1318:9: note: in expansion of macro 'dprintk'
    1318 |         dprintk(1, "vma start=0x%08lx, size=%ld, ret=%d\n",
         |         ^~~~~~~
   drivers/media/platform/nxp/fsl-viu.c:1320:62: error: invalid use of undefined type 'struct vm_area_struct'
    1320 |                 (unsigned long)vma->vm_end-(unsigned long)vma->vm_start,
         |                                                              ^~
   include/linux/printk.h:416:33: note: in definition of macro 'printk_index_wrap'
     416 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   drivers/media/platform/nxp/fsl-viu.c:53:25: note: in expansion of macro 'printk'
      53 |                         printk(KERN_DEBUG "viu: " fmt , ## arg);        \
         |                         ^~~~~~
   drivers/media/platform/nxp/fsl-viu.c:1318:9: note: in expansion of macro 'dprintk'
    1318 |         dprintk(1, "vma start=0x%08lx, size=%ld, ret=%d\n",
         |         ^~~~~~~
   cc1: some warnings being treated as errors
--
>> sound/soc/qcom/qdsp6/q6dsp-common.c:65:1: warning: data definition has no type or storage class
      65 | EXPORT_SYMBOL_GPL(q6dsp_map_channels);
         | ^~~~~~~~~~~~~~~~~
>> sound/soc/qcom/qdsp6/q6dsp-common.c:65:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Werror=implicit-int]
>> sound/soc/qcom/qdsp6/q6dsp-common.c:65:1: warning: parameter names (without types) in function declaration
   cc1: some warnings being treated as errors


vim +1319 drivers/media/platform/nxp/fsl-viu.c

95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1304  
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1305  static int viu_mmap(struct file *file, struct vm_area_struct *vma)
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1306  {
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1307  	struct viu_fh *fh = file->private_data;
87cb0278c9872a drivers/media/video/fsl-viu.c    Hans Verkuil          2012-06-23  1308  	struct viu_dev *dev = fh->dev;
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1309  	int ret;
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1310  
2d78a19c8c6c6d drivers/media/platform/fsl-viu.c Mauro Carvalho Chehab 2018-04-06  1311  	dprintk(1, "mmap called, vma=%p\n", vma);
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1312  
87cb0278c9872a drivers/media/video/fsl-viu.c    Hans Verkuil          2012-06-23  1313  	if (mutex_lock_interruptible(&dev->lock))
87cb0278c9872a drivers/media/video/fsl-viu.c    Hans Verkuil          2012-06-23  1314  		return -ERESTARTSYS;
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1315  	ret = videobuf_mmap_mapper(&fh->vb_vidq, vma);
87cb0278c9872a drivers/media/video/fsl-viu.c    Hans Verkuil          2012-06-23  1316  	mutex_unlock(&dev->lock);
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1317  
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1318  	dprintk(1, "vma start=0x%08lx, size=%ld, ret=%d\n",
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02 @1319  		(unsigned long)vma->vm_start,
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1320  		(unsigned long)vma->vm_end-(unsigned long)vma->vm_start,
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1321  		ret);
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1322  
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1323  	return ret;
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1324  }
95c5d605ca6fd6 drivers/media/video/fsl-viu.c    Anatolij Gustschin    2010-07-02  1325  

:::::: The code at line 1319 was first introduced by commit
:::::: 95c5d605ca6fd6ab5ab0f6d097ff97d5aa2f9235 V4L/DVB: v4l: Add MPC5121e VIU video capture driver

:::::: TO: Anatolij Gustschin <agust@denx.de>
:::::: CC: Mauro Carvalho Chehab <mchehab@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-21  6:41 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=202204202237.YDWys8yN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.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®