All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: arch/loongarch/mm/ioremap.c:9:21: sparse:    void [noderef] __iomem *extern [addressable] [toplevel] early_ioremap( ... )
Date: Sat, 11 Nov 2023 15:38:23 +0800	[thread overview]
Message-ID: <202311111513.5vVouNcb-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "low confidence static check warning: arch/loongarch/mm/ioremap.c:9:21: sparse:    void [noderef] __iomem *extern [addressable] [toplevel] early_ioremap( ... )"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Bibo Mao <maobibo@loongson.cn>
CC: Huacai Chen <chenhuacai@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3ca112b71f35dd5d99fc4571a56b5fc6f0c15814
commit: c718a0bad75ccef117000223b00fd6a14f849135 LoongArch: Fix some build warnings with W=1
date:   7 weeks ago
:::::: branch date: 7 hours ago
:::::: commit date: 7 weeks ago
config: loongarch-randconfig-r132-20231107 (https://download.01.org/0day-ci/archive/20231111/202311111513.5vVouNcb-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231111/202311111513.5vVouNcb-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/r/202311111513.5vVouNcb-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   arch/loongarch/mm/ioremap.c:9:21: sparse: sparse: symbol 'early_ioremap' redeclared with different type (different address spaces):
>> arch/loongarch/mm/ioremap.c:9:21: sparse:    void [noderef] __iomem *extern [addressable] [toplevel] early_ioremap( ... )
   arch/loongarch/mm/ioremap.c: note: in included file:
   include/asm-generic/early_ioremap.h:13:13: sparse: note: previously declared as:
>> include/asm-generic/early_ioremap.h:13:13: sparse:    void *extern [addressable] [toplevel] early_ioremap( ... )
   arch/loongarch/mm/ioremap.c:14:13: sparse: sparse: symbol 'early_iounmap' redeclared with different type (incompatible argument 1 (different address spaces)):
>> arch/loongarch/mm/ioremap.c:14:13: sparse:    void extern [addressable] [toplevel] early_iounmap( ... )
   include/asm-generic/early_ioremap.h:20:13: sparse: note: previously declared as:
>> include/asm-generic/early_ioremap.h:20:13: sparse:    void extern [addressable] [toplevel] early_iounmap( ... )
   arch/loongarch/mm/ioremap.c:21:30: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   arch/loongarch/mm/ioremap.c:21:30: sparse:     expected void *
   arch/loongarch/mm/ioremap.c:21:30: sparse:     got void [noderef] __iomem *
   arch/loongarch/mm/ioremap.c:27:30: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   arch/loongarch/mm/ioremap.c:27:30: sparse:     expected void *
   arch/loongarch/mm/ioremap.c:27:30: sparse:     got void [noderef] __iomem *

vim +9 arch/loongarch/mm/ioremap.c

09cfefb7fa70c3 Huacai Chen 2022-05-31   8  
09cfefb7fa70c3 Huacai Chen 2022-05-31  @9  void __init __iomem *early_ioremap(u64 phys_addr, unsigned long size)
09cfefb7fa70c3 Huacai Chen 2022-05-31  10  {
09cfefb7fa70c3 Huacai Chen 2022-05-31  11  	return ((void __iomem *)TO_CACHE(phys_addr));
09cfefb7fa70c3 Huacai Chen 2022-05-31  12  }
09cfefb7fa70c3 Huacai Chen 2022-05-31  13  
09cfefb7fa70c3 Huacai Chen 2022-05-31 @14  void __init early_iounmap(void __iomem *addr, unsigned long size)
09cfefb7fa70c3 Huacai Chen 2022-05-31  15  {
09cfefb7fa70c3 Huacai Chen 2022-05-31  16  

:::::: The code at line 9 was first introduced by commit
:::::: 09cfefb7fa70c3af011b0db0a513fd80b2f18abc LoongArch: Add memory management

:::::: TO: Huacai Chen <chenhuacai@loongson.cn>
:::::: CC: Huacai Chen <chenhuacai@loongson.cn>

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

             reply	other threads:[~2023-11-11  7:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-11  7:38 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-09 14:37 arch/loongarch/mm/ioremap.c:9:21: sparse: void [noderef] __iomem *extern [addressable] [toplevel] early_ioremap( ... ) kernel test robot
2023-11-07 23:03 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=202311111513.5vVouNcb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@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.