Re: [linux-next:master 3600/3682] arch/powerpc/xmon/xmon.c:1089:33: error: too few arguments to function 'show_mem'

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

 



Have a look at http://lkml.kernel.org/r/Ywh3C4dKB9B93jIy@xxxxxxxxxxxxxx
Thanks!

On Fri 26-08-22 17:44:15, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   8d0c42c9e80791e8baba2932d2cbd2dcead50d47
> commit: 9ea9abc5cd7ed674c548915f8340c1cf706b396c [3600/3682] mm: reduce noise in show_mem for lowmem allocations
> config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220826/202208261715.DsXiAhZu-lkp@xxxxxxxxx/config)
> compiler: powerpc-linux-gcc (GCC) 12.1.0
> 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
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9ea9abc5cd7ed674c548915f8340c1cf706b396c
>         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>         git fetch --no-tags linux-next master
>         git checkout 9ea9abc5cd7ed674c548915f8340c1cf706b396c
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/
> 
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> 
> Note: the linux-next/master HEAD 8d0c42c9e80791e8baba2932d2cbd2dcead50d47 builds fine.
>       It may have been fixed somewhere.
> 
> All errors (new ones prefixed by >>):
> 
>    arch/powerpc/xmon/xmon.c: In function 'cmds':
> >> arch/powerpc/xmon/xmon.c:1089:33: error: too few arguments to function 'show_mem'
>     1089 |                                 show_mem(0, NULL);
>          |                                 ^~~~~~~~
>    In file included from arch/powerpc/xmon/xmon.c:14:
>    include/linux/mm.h:2585:13: note: declared here
>     2585 | extern void show_mem(unsigned int flags, nodemask_t *nodemask, gfp_t gfp_mask);
>          |             ^~~~~~~~
> 
> 
> vim +/show_mem +1089 arch/powerpc/xmon/xmon.c
> 
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1043  
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1044  static int
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1045  cmds(struct pt_regs *excp)
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1046  {
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1047  	int cmd = 0;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1048  
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1049  	last_cmd = NULL;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1050  	xmon_regs = excp;
> 26c8af5f01dfb9 arch/powerpc/xmon/xmon.c Olaf Hering            2006-09-08  1051  
> 26c8af5f01dfb9 arch/powerpc/xmon/xmon.c Olaf Hering            2006-09-08  1052  	xmon_show_stack(excp->gpr[1], excp->link, excp->nip);
> 26c8af5f01dfb9 arch/powerpc/xmon/xmon.c Olaf Hering            2006-09-08  1053  
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1054  	for(;;) {
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1055  #ifdef CONFIG_SMP
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1056  		printf("%x:", smp_processor_id());
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1057  #endif /* CONFIG_SMP */
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1058  		printf("mon> ");
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1059  		flush_input();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1060  		termch = 0;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1061  		cmd = skipbl();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1062  		if( cmd == '\n' ) {
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1063  			if (last_cmd == NULL)
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1064  				continue;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1065  			take_input(last_cmd);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1066  			last_cmd = NULL;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1067  			cmd = inchar();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1068  		}
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1069  		switch (cmd) {
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1070  		case 'm':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1071  			cmd = inchar();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1072  			switch (cmd) {
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1073  			case 'm':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1074  			case 's':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1075  			case 'd':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1076  				memops(cmd);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1077  				break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1078  			case 'l':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1079  				memlocate();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1080  				break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1081  			case 'z':
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1082  				if (xmon_is_ro) {
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1083  					printf(xmon_ro_msg);
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1084  					break;
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1085  				}
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1086  				memzcan();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1087  				break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1088  			case 'i':
> 9af744d743170b arch/powerpc/xmon/xmon.c Michal Hocko           2017-02-22 @1089  				show_mem(0, NULL);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1090  				break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1091  			default:
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1092  				termch = cmd;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1093  				memex();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1094  			}
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1095  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1096  		case 'd':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1097  			dump();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1098  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1099  		case 'l':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1100  			symbol_lookup();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1101  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1102  		case 'r':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1103  			prregs(excp);	/* print regs */
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1104  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1105  		case 'e':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1106  			excprint(excp);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1107  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1108  		case 'S':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1109  			super_regs();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1110  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1111  		case 't':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1112  			backtrace(excp);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1113  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1114  		case 'f':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1115  			cacheflush();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1116  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1117  		case 's':
> ff8a8f25976aa5 arch/powerpc/xmon/xmon.c Michael Ellerman       2006-10-24  1118  			if (do_spu_cmd() == 0)
> ff8a8f25976aa5 arch/powerpc/xmon/xmon.c Michael Ellerman       2006-10-24  1119  				break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1120  			if (do_step(excp))
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1121  				return cmd;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1122  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1123  		case 'x':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1124  		case 'X':
> ed49f7fd6438dc arch/powerpc/xmon/xmon.c Breno Leitao           2017-08-02  1125  			if (tracing_enabled)
> ed49f7fd6438dc arch/powerpc/xmon/xmon.c Breno Leitao           2017-08-02  1126  				tracing_on();
> bb6b9b28d6847b arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2005-11-30  1127  			return cmd;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1128  		case EOF:
> bb6b9b28d6847b arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2005-11-30  1129  			printf(" <no input ...>\n");
> bb6b9b28d6847b arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2005-11-30  1130  			mdelay(2000);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1131  			return cmd;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1132  		case '?':
> 4d404edce30f91 arch/powerpc/xmon/xmon.c Ishizaki Kou           2007-07-18  1133  			xmon_puts(help_string);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1134  			break;
> 958b7c80507a6e arch/powerpc/xmon/xmon.c Sam bobroff            2015-10-08  1135  		case '#':
> 958b7c80507a6e arch/powerpc/xmon/xmon.c Sam bobroff            2015-10-08  1136  			set_lpp_cmd();
> 958b7c80507a6e arch/powerpc/xmon/xmon.c Sam bobroff            2015-10-08  1137  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1138  		case 'b':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1139  			bpt_cmds();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1140  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1141  		case 'C':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1142  			csum();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1143  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1144  		case 'c':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1145  			if (cpu_cmd())
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1146  				return 0;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1147  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1148  		case 'z':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1149  			bootcmds();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1150  			break;
> f78541dcec327b arch/powerpc/xmon/xmon.c Paul Mackerras         2005-10-28  1151  		case 'p':
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1152  			if (xmon_is_ro) {
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1153  				printf(xmon_ro_msg);
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1154  				break;
> 0acb5f64560a05 arch/powerpc/xmon/xmon.c Christopher M. Riedl   2019-04-15  1155  			}
> f78541dcec327b arch/powerpc/xmon/xmon.c Paul Mackerras         2005-10-28  1156  			proccall();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1157  			break;
> 6dfb54049f9a99 arch/powerpc/xmon/xmon.c Douglas Miller         2015-11-23  1158  		case 'P':
> 6dfb54049f9a99 arch/powerpc/xmon/xmon.c Douglas Miller         2015-11-23  1159  			show_tasks();
> 6dfb54049f9a99 arch/powerpc/xmon/xmon.c Douglas Miller         2015-11-23  1160  			break;
> 387e220a2e5e63 arch/powerpc/xmon/xmon.c Nicholas Piggin        2021-12-02  1161  #if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_64S_HASH_MMU)
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1162  		case 'u':
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1163  			dump_segments();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1164  			break;
> d8ee6f34fdd28a arch/powerpc/xmon/xmon.c Michael Ellerman       2014-11-12  1165  #elif defined(CONFIG_44x)
> 5a8a1a28bb35a6 arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2007-11-16  1166  		case 'u':
> 5a8a1a28bb35a6 arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2007-11-16  1167  			dump_tlb_44x();
> 5a8a1a28bb35a6 arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2007-11-16  1168  			break;
> 79873e8df64cc1 arch/powerpc/xmon/xmon.c Jimi Xenidis           2011-09-29  1169  #elif defined(CONFIG_PPC_BOOK3E)
> 03247157f73912 arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2010-07-09  1170  		case 'u':
> 03247157f73912 arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2010-07-09  1171  			dump_tlb_book3e();
> 03247157f73912 arch/powerpc/xmon/xmon.c Benjamin Herrenschmidt 2010-07-09  1172  			break;
> f78541dcec327b arch/powerpc/xmon/xmon.c Paul Mackerras         2005-10-28  1173  #endif
> 59d3391e8cf274 arch/powerpc/xmon/xmon.c Guilherme G. Piccoli   2017-09-18  1174  		case 'U':
> 59d3391e8cf274 arch/powerpc/xmon/xmon.c Guilherme G. Piccoli   2017-09-18  1175  			show_uptime();
> 59d3391e8cf274 arch/powerpc/xmon/xmon.c Guilherme G. Piccoli   2017-09-18  1176  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1177  		default:
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1178  			printf("Unrecognized command: ");
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1179  			do {
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1180  				if (' ' < cmd && cmd <= '~')
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1181  					putchar(cmd);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1182  				else
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1183  					printf("\\x%x", cmd);
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1184  				cmd = inchar();
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1185  			} while (cmd != '\n');
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1186  			printf(" (type ? for help)\n");
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1187  			break;
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1188  		}
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1189  	}
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1190  }
> ^1da177e4c3f41 arch/ppc64/xmon/xmon.c   Linus Torvalds         2005-04-16  1191  
> 
> :::::: The code at line 1089 was first introduced by commit
> :::::: 9af744d743170b5f5ef70031dea8d772d166ab28 lib/show_mem.c: teach show_mem to work with the given nodemask
> 
> :::::: TO: Michal Hocko <mhocko@xxxxxxxx>
> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://01.org/lkp

-- 
Michal Hocko
SUSE Labs




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux