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: [modules:ppavlu-module-include 36/37] arch/s390/include/asm/module.h:49:21: error: implicit declaration of function 'strcmp'
Date: Wed, 19 Aug 2026 15:09:43 +0200	[thread overview]
Message-ID: <202608191517.EjXHewtK-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: Luis Chamberlain <mcgrof@kernel.org>
CC: Petr Pavlu <petr.pavlu@suse.com>
CC: Sami Tolvanen <samitolvanen@google.com>
CC: Daniel Gomez <da.gomez@kernel.org>
CC: linux-modules@vger.kernel.org
TO: Petr Pavlu <petr.pavlu@suse.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git ppavlu-module-include
head:   fcbfd3cbe0a054838436812cc0b664f71ba1d0a4
commit: acb4d9bafad10e9712a74d71304a4f3a404eb4ec [36/37] WIP: module: Clean up includes in linux/module.h
:::::: branch date: 2 hours ago
:::::: commit date: 2 hours ago
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260819/202608191517.EjXHewtK-lkp@intel.com/config)
compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/202608191517.EjXHewtK-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/202608191517.EjXHewtK-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/module.h:28,
                    from ../../../drivers/nvdimm/namespace_devs.c:6:
   arch/s390/include/asm/module.h: In function 'find_section':
>> arch/s390/include/asm/module.h:49:21: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
      49 |                 if (strcmp(name, secstrs + s->sh_name) == 0)
         |                     ^~~~~~
   arch/s390/include/asm/module.h:6:1: note: include '<string.h>' or provide a declaration of 'strcmp'
       5 | #include <asm-generic/module.h>
     +++ |+#include <string.h>
       6 | 


vim +/strcmp +49 arch/s390/include/asm/module.h

^1da177e4c3f41 include/asm-s390/module.h      Linus Torvalds 2005-04-16  40  
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  41  static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  42  					   const Elf_Shdr *sechdrs,
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  43  					   const char *name)
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  44  {
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  45  	const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  46  	const Elf_Shdr *s, *se;
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  47  
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  48  	for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13 @49  		if (strcmp(name, secstrs + s->sh_name) == 0)
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  50  			return s;
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  51  	}
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  52  	return NULL;
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  53  }
a919390e919420 arch/s390/include/asm/module.h Heiko Carstens 2024-09-13  54  

:::::: The code at line 49 was first introduced by commit
:::::: a919390e9194209bac163ec8e19520bdb3fb738b s390/module: Provide find_section() helper

:::::: TO: Heiko Carstens <hca@linux.ibm.com>
:::::: CC: Jason A. Donenfeld <Jason@zx2c4.com>

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

                 reply	other threads:[~2026-08-19 13:10 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=202608191517.EjXHewtK-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.