[vfs:Q12 31/55] fs/fs_context.c:380:3: error: implicit declaration of function 'vprintk_emit'; did you mean 'dev_printk_emit'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git Q12
head:   00675e779ef442c0f7deb0dc637ea20d57a93514
commit: c5d5b3b429daa192590eee124acedecfe872dde0 [31/55] vfs: Implement logging through fs_context
config: arm-allnoconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.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 c5d5b3b429daa192590eee124acedecfe872dde0
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

Note: the vfs/Q12 HEAD 00675e779ef442c0f7deb0dc637ea20d57a93514 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'; did you mean 'dev_printk_emit'? [-Werror=implicit-function-declaration]
      vprintk_emit(0, LOGLEVEL_WARNING, NULL, 0, fmt, va);
      ^~~~~~~~~~~~
      dev_printk_emit
   cc1: some warnings being treated as errors

vim +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: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux