All of lore.kernel.org
 help / color / mirror / Atom feed
* [vfs:Q14 32/56] fs/fs_context.c:380:3: error: implicit declaration of function 'vprintk_emit'
@ 2018-11-20  0:28 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-11-20  0:28 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, linux-fsdevel, Al Viro

[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git Q14
head:   7f5b2a71d2811c5d8116009cc8239e24923864d4
commit: db657ae58e61db9d2b041cd5b84500b2cfd47e3d [32/56] vfs: Implement logging through fs_context
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout db657ae58e61db9d2b041cd5b84500b2cfd47e3d
        # save the attached .config to linux build tree
        GCC_VERSION=6.4.0 make.cross ARCH=nds32 

Note: the vfs/Q14 HEAD 7f5b2a71d2811c5d8116009cc8239e24923864d4 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   fs/fs_context.c: In function 'logfc':
>> fs/fs_context.c:380:3: error: implicit declaration of function 'vprintk_emit' [-Werror=implicit-function-declaration]
      vprintk_emit(0, LOGLEVEL_WARNING, NULL, 0, fmt, va);
      ^~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/vprintk_emit +380 fs/fs_context.c

   366	
   367	/**
   368	 * logfc - Log a message to a filesystem context
   369	 * @fc: The filesystem context to log to.
   370	 * @fmt: The format of the buffer.
   371	 */
   372	void logfc(struct fs_context *fc, const char *fmt, ...)
   373	{
   374		va_list va;
   375	
   376		va_start(va, fmt);
   377	
   378		switch (fmt[0]) {
   379		case 'w':
 > 380			vprintk_emit(0, LOGLEVEL_WARNING, NULL, 0, fmt, va);
   381			break;
   382		case 'e':
   383			vprintk_emit(0, LOGLEVEL_ERR, NULL, 0, fmt, va);
   384			break;
   385		default:
   386			vprintk_emit(0, LOGLEVEL_NOTICE, NULL, 0, fmt, va);
   387			break;
   388		}
   389	
   390		pr_cont("\n");
   391		va_end(va);
   392	}
   393	EXPORT_SYMBOL(logfc);
   394	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 4418 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-20 10:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20  0:28 [vfs:Q14 32/56] fs/fs_context.c:380:3: error: implicit declaration of function 'vprintk_emit' kbuild test robot

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.