All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:pr/642 1577/30000] arch/mips/include/asm/uaccess.h:90:16: error: implicit declaration of function 'uaccess_kernel'
Date: Thu, 30 Nov 2023 02:32:01 +0800	[thread overview]
Message-ID: <202311300047.uhtRcbBV-lkp@intel.com> (raw)

Hi Gao,

FYI, the error/warning still remains.

tree:   https://github.com/Freescale/linux-fslc pr/642
head:   c8b7cf62c7fea8456dec789d550b8006d73b8f04
commit: b5805df1b1a6c25d66b734c9249ac30c5f419b9d [1577/30000] MLK-14392-1 input: touch: add focaltech touch screen support
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20231130/202311300047.uhtRcbBV-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311300047.uhtRcbBV-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/202311300047.uhtRcbBV-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/input/touchscreen/focaltech_touch/focaltech_core.h:55,
                    from drivers/input/touchscreen/focaltech_touch/focaltech_core.c:34:
   arch/mips/include/asm/uaccess.h: In function 'eva_kernel_access':
>> arch/mips/include/asm/uaccess.h:90:16: error: implicit declaration of function 'uaccess_kernel' [-Werror=implicit-function-declaration]
      90 |         return uaccess_kernel();
         |                ^~~~~~~~~~~~~~
   drivers/input/touchscreen/focaltech_touch/focaltech_core.c: In function 'fts_parse_dt':
   drivers/input/touchscreen/focaltech_touch/focaltech_core.c:970:31: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
     970 |         if (pdata->reset_gpio < 0)
         |                               ^
   drivers/input/touchscreen/focaltech_touch/focaltech_core.c:976:29: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
     976 |         if (pdata->irq_gpio < 0)
         |                             ^
   drivers/input/touchscreen/focaltech_touch/focaltech_core.c: At top level:
   drivers/input/touchscreen/focaltech_touch/focaltech_core.c:1328:12: warning: 'fts_ts_resume' defined but not used [-Wunused-function]
    1328 | static int fts_ts_resume(struct device *dev)
         |            ^~~~~~~~~~~~~
   drivers/input/touchscreen/focaltech_touch/focaltech_core.c:1267:12: warning: 'fts_ts_suspend' defined but not used [-Wunused-function]
    1267 | static int fts_ts_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/input/touchscreen/focaltech_touch/focaltech_core.h:55,
                    from drivers/input/touchscreen/focaltech_touch/focaltech_esdcheck.c:38:
   arch/mips/include/asm/uaccess.h: In function 'eva_kernel_access':
>> arch/mips/include/asm/uaccess.h:90:16: error: implicit declaration of function 'uaccess_kernel' [-Werror=implicit-function-declaration]
      90 |         return uaccess_kernel();
         |                ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/uaccess_kernel +90 arch/mips/include/asm/uaccess.h

^1da177e4c3f41 include/asm-mips/uaccess.h      Linus Torvalds  2005-04-16  76  
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  77  /*
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  78   * eva_kernel_access() - determine whether kernel memory access on an EVA system
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  79   *
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  80   * Determines whether memory accesses should be performed to kernel memory
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  81   * on a system using Extended Virtual Addressing (EVA).
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  82   *
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  83   * Return: true if a kernel memory access on an EVA system, else false.
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  84   */
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  85  static inline bool eva_kernel_access(void)
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  86  {
97f2645f358b41 arch/mips/include/asm/uaccess.h Masahiro Yamada 2016-08-03  87  	if (!IS_ENABLED(CONFIG_EVA))
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  88  		return false;
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  89  
db68ce10c4f0a2 arch/mips/include/asm/uaccess.h Al Viro         2017-03-20 @90  	return uaccess_kernel();
12060666f5c065 arch/mips/include/asm/uaccess.h Paul Burton     2015-05-24  91  }
^1da177e4c3f41 include/asm-mips/uaccess.h      Linus Torvalds  2005-04-16  92  

:::::: The code at line 90 was first introduced by commit
:::::: db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 new helper: uaccess_kernel()

:::::: TO: Al Viro <viro@zeniv.linux.org.uk>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

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

             reply	other threads:[~2023-11-29 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 18:32 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-14 10:48 [freescale-fslc:pr/642 1577/30000] arch/mips/include/asm/uaccess.h:90:16: error: implicit declaration of function 'uaccess_kernel' 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=202311300047.uhtRcbBV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=otavio@ossystems.com.br \
    /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.