All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Yang Yingliang <yangyingliang@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:openEuler-1.0-LTS 1355/1355] include/linux/share_pool.h:150:26: sparse: sparse: incorrect type in return expression (different address spaces)
Date: Sat, 28 Dec 2024 19:19:14 +0800	[thread overview]
Message-ID: <202412281933.AtwopaHj-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head:   773f731853f1368508a0b112047bd9b5a4bb9a5e
commit: 4a280fac30d27ae2aff096f9f99aa12d50f83426 [1355/1355] ascend: share_pool: support share pool features for ascend platform
config: arm64-randconfig-r133-20241227 (https://download.01.org/0day-ci/archive/20241228/202412281933.AtwopaHj-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241228/202412281933.AtwopaHj-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/202412281933.AtwopaHj-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   mm/gup.c: note: in included file:
>> include/linux/share_pool.h:150:26: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected struct task_struct * @@     got struct task_struct [noderef] __rcu *owner @@
   include/linux/share_pool.h:150:26: sparse:     expected struct task_struct *
   include/linux/share_pool.h:150:26: sparse:     got struct task_struct [noderef] __rcu *owner
   mm/gup.c:1769:47: sparse: sparse: self-comparison always evaluates to false
   mm/gup.c:1794:47: sparse: sparse: self-comparison always evaluates to false
   mm/gup.c:1830:6: warning: no previous prototype for 'gup_fast_permitted' [-Wmissing-prototypes]
    1830 | bool gup_fast_permitted(unsigned long start, int nr_pages, int write)
         |      ^~~~~~~~~~~~~~~~~~

vim +150 include/linux/share_pool.h

2facb5901ceebe Ding Tianhong 2021-10-30  146  
2facb5901ceebe Ding Tianhong 2021-10-30  147  static inline struct task_struct *sp_get_task(struct mm_struct *mm)
2facb5901ceebe Ding Tianhong 2021-10-30  148  {
2facb5901ceebe Ding Tianhong 2021-10-30  149  	if (enable_ascend_share_pool)
2facb5901ceebe Ding Tianhong 2021-10-30 @150  		return mm->owner;
2facb5901ceebe Ding Tianhong 2021-10-30  151  	else
2facb5901ceebe Ding Tianhong 2021-10-30  152  		return current;
2facb5901ceebe Ding Tianhong 2021-10-30  153  }
2facb5901ceebe Ding Tianhong 2021-10-30  154  

:::::: The code at line 150 was first introduced by commit
:::::: 2facb5901ceebe6736c0d192ca50be5d26c70ad9 ascend: vmalloc: export new function for share pool

:::::: TO: Ding Tianhong <dingtianhong@huawei.com>
:::::: CC: Yang Yingliang <yangyingliang@huawei.com>

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

                 reply	other threads:[~2024-12-28 11:19 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=202412281933.AtwopaHj-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yangyingliang@huawei.com \
    /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.