All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:queue-5.4 26/47] kernel/cgroup/cgroup-v1.c:927:12: error: implicit declaration of function 'invalfc'
@ 2021-02-16  4:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-16  4:28 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head:   72cf0d8c01acc7aa359dae193ac04980479036f2
commit: 85fb22459cd84a3cee1a1d36a32ba119f7b1c5e7 [26/47] cgroup-v1: add disabled controller check in cgroup1_parse_param()
config: powerpc64-randconfig-r013-20210216 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=85fb22459cd84a3cee1a1d36a32ba119f7b1c5e7
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable queue-5.4
        git checkout 85fb22459cd84a3cee1a1d36a32ba119f7b1c5e7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:58:1: note: expanded from here
   __do_insw
   ^
   arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insw'
   #define __do_insw(p, b, n)      readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/cgroup/cgroup-v1.c:2:
   In file included from kernel/cgroup/cgroup-internal.h:5:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:605:
   arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:60:1: note: expanded from here
   __do_insl
   ^
   arch/powerpc/include/asm/io.h:544:56: note: expanded from macro '__do_insl'
   #define __do_insl(p, b, n)      readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/cgroup/cgroup-v1.c:2:
   In file included from kernel/cgroup/cgroup-internal.h:5:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:605:
   arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:62:1: note: expanded from here
   __do_outsb
   ^
   arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsb'
   #define __do_outsb(p, b, n)     writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/cgroup/cgroup-v1.c:2:
   In file included from kernel/cgroup/cgroup-internal.h:5:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:605:
   arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:64:1: note: expanded from here
   __do_outsw
   ^
   arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsw'
   #define __do_outsw(p, b, n)     writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/cgroup/cgroup-v1.c:2:
   In file included from kernel/cgroup/cgroup-internal.h:5:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:605:
   arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:66:1: note: expanded from here
   __do_outsl
   ^
   arch/powerpc/include/asm/io.h:547:58: note: expanded from macro '__do_outsl'
   #define __do_outsl(p, b, n)     writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
>> kernel/cgroup/cgroup-v1.c:927:12: error: implicit declaration of function 'invalfc' [-Werror,-Wimplicit-function-declaration]
                                   return invalfc(fc, "Disabled controller '%s'",
                                          ^
   6 warnings and 1 error generated.


vim +/invalfc +927 kernel/cgroup/cgroup-v1.c

   906	
   907	int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param)
   908	{
   909		struct cgroup_fs_context *ctx = cgroup_fc2context(fc);
   910		struct cgroup_subsys *ss;
   911		struct fs_parse_result result;
   912		int opt, i;
   913	
   914		opt = fs_parse(fc, &cgroup1_fs_parameters, param, &result);
   915		if (opt == -ENOPARAM) {
   916			if (strcmp(param->key, "source") == 0) {
   917				if (fc->source)
   918					return invalf(fc, "Multiple sources not supported");
   919				fc->source = param->string;
   920				param->string = NULL;
   921				return 0;
   922			}
   923			for_each_subsys(ss, i) {
   924				if (strcmp(param->key, ss->legacy_name))
   925					continue;
   926				if (!cgroup_ssid_enabled(i) || cgroup1_ssid_disabled(i))
 > 927					return invalfc(fc, "Disabled controller '%s'",
   928						       param->key);
   929				ctx->subsys_mask |= (1 << i);
   930				return 0;
   931			}
   932			return cg_invalf(fc, "cgroup1: Unknown subsys name '%s'", param->key);
   933		}
   934		if (opt < 0)
   935			return opt;
   936	
   937		switch (opt) {
   938		case Opt_none:
   939			/* Explicitly have no subsystems */
   940			ctx->none = true;
   941			break;
   942		case Opt_all:
   943			ctx->all_ss = true;
   944			break;
   945		case Opt_noprefix:
   946			ctx->flags |= CGRP_ROOT_NOPREFIX;
   947			break;
   948		case Opt_clone_children:
   949			ctx->cpuset_clone_children = true;
   950			break;
   951		case Opt_cpuset_v2_mode:
   952			ctx->flags |= CGRP_ROOT_CPUSET_V2_MODE;
   953			break;
   954		case Opt_xattr:
   955			ctx->flags |= CGRP_ROOT_XATTR;
   956			break;
   957		case Opt_release_agent:
   958			/* Specifying two release agents is forbidden */
   959			if (ctx->release_agent)
   960				return cg_invalf(fc, "cgroup1: release_agent respecified");
   961			ctx->release_agent = param->string;
   962			param->string = NULL;
   963			break;
   964		case Opt_name:
   965			/* blocked by boot param? */
   966			if (cgroup_no_v1_named)
   967				return -ENOENT;
   968			/* Can't specify an empty name */
   969			if (!param->size)
   970				return cg_invalf(fc, "cgroup1: Empty name");
   971			if (param->size > MAX_CGROUP_ROOT_NAMELEN - 1)
   972				return cg_invalf(fc, "cgroup1: Name too long");
   973			/* Must match [\w.-]+ */
   974			for (i = 0; i < param->size; i++) {
   975				char c = param->string[i];
   976				if (isalnum(c))
   977					continue;
   978				if ((c == '.') || (c == '-') || (c == '_'))
   979					continue;
   980				return cg_invalf(fc, "cgroup1: Invalid name");
   981			}
   982			/* Specifying two names is forbidden */
   983			if (ctx->name)
   984				return cg_invalf(fc, "cgroup1: name respecified");
   985			ctx->name = param->string;
   986			param->string = NULL;
   987			break;
   988		}
   989		return 0;
   990	}
   991	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2021-02-16  4:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16  4:28 [sashal-linux-stable:queue-5.4 26/47] kernel/cgroup/cgroup-v1.c:927:12: error: implicit declaration of function 'invalfc' kernel 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.