All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [arnd-playground:randconfig-7.3-next 610/673] arch/sparc/include/asm/page_32.h:127:9: warning: 'virt_to_phys' redefined
Date: Fri, 25 Sep 2026 22:30:37 +0800	[thread overview]
Message-ID: <202609252258.3Zc17438-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-7.3-next
head:   0a1affa74ef2f2c5c5ee74fc604e47a1aefdd286
commit: d217cdb672619041e213243f6f352cb6422d3a59 [610/673] Revert "simplify asm/io.h"
config: sparc-allnoconfig (https://download.01.org/0day-ci/archive/20260925/202609252258.3Zc17438-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/202609252258.3Zc17438-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/202609252258.3Zc17438-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/io_32.h:21,
                    from arch/sparc/include/asm/io.h:7,
                    from include/linux/io.h:12,
                    from lib/iomem_copy.c:8:
   include/asm-generic/io.h: In function 'virt_to_phys':
   include/asm-generic/io.h:1099:16: error: implicit declaration of function '__pa' [-Wimplicit-function-declaration]
    1099 |         return __pa((unsigned long)address);
         |                ^~~~
   include/asm-generic/io.h: In function 'phys_to_virt':
   include/asm-generic/io.h:1107:16: error: implicit declaration of function '__va' [-Wimplicit-function-declaration]
    1107 |         return __va(address);
         |                ^~~~
   include/asm-generic/io.h:1107:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
    1107 |         return __va(address);
         |                ^~~~~~~~~~~~~
   In file included from arch/sparc/include/asm/page.h:8,
                    from include/linux/io.h:13:
   arch/sparc/include/asm/page_32.h: At top level:
>> arch/sparc/include/asm/page_32.h:127:9: warning: 'virt_to_phys' redefined
     127 | #define virt_to_phys            __pa
         |         ^~~~~~~~~~~~
   include/asm-generic/io.h:1096:9: note: this is the location of the previous definition
    1096 | #define virt_to_phys virt_to_phys
         |         ^~~~~~~~~~~~
>> arch/sparc/include/asm/page_32.h:128:9: warning: 'phys_to_virt' redefined
     128 | #define phys_to_virt            __va
         |         ^~~~~~~~~~~~
   include/asm-generic/io.h:1104:9: note: this is the location of the previous definition
    1104 | #define phys_to_virt phys_to_virt
         |         ^~~~~~~~~~~~


vim +/virt_to_phys +127 arch/sparc/include/asm/page_32.h

f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17  126  
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17 @127  #define virt_to_phys		__pa
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17 @128  #define phys_to_virt		__va
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17  129  

:::::: The code at line 127 was first introduced by commit
:::::: f5e706ad886b6a5eb59637830110b09ccebf01c5 sparc: join the remaining header files

:::::: TO: Sam Ravnborg <sam@ravnborg.org>
:::::: CC: David S. Miller <davem@davemloft.net>

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

                 reply	other threads:[~2026-09-25 14:31 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=202609252258.3Zc17438-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=oe-kbuild-all@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.