* init/main.c:302: warning: 'pass_all_bootoptions' defined but not used
@ 2012-09-29 1:22 Fengguang Wu
0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2012-09-29 1:22 UTC (permalink / raw)
To: kernel-janitors
Hi Mathieu,
FYI, there are new compile warnings show up in
84925a9 UBUNTU: SAUCE: add option to hand off all kernel parameters to init
config: avr32-atngw100_defconfig
All warnings:
init/main.c:302: warning: 'pass_all_bootoptions' defined but not used
vim +302 init/main.c
^1da177e (Linus Torvalds 2005-04-16 286) if (i = MAX_INIT_ARGS) {
^1da177e (Linus Torvalds 2005-04-16 287) panic_later = "Too many boot init vars at `%s'";
^1da177e (Linus Torvalds 2005-04-16 288) panic_param = param;
^1da177e (Linus Torvalds 2005-04-16 289) }
^1da177e (Linus Torvalds 2005-04-16 290) }
^1da177e (Linus Torvalds 2005-04-16 291) argv_init[i] = param;
^1da177e (Linus Torvalds 2005-04-16 292) }
^1da177e (Linus Torvalds 2005-04-16 293) return 0;
^1da177e (Linus Torvalds 2005-04-16 294) }
84925a91 (Andy Whitcroft 2010-06-17 295) static int __init pass_unknown_bootoptions(char *param, char *val, const char *unused, int known)
84925a91 (Andy Whitcroft 2010-06-17 296) {
84925a91 (Andy Whitcroft 2010-06-17 297) if (known)
84925a91 (Andy Whitcroft 2010-06-17 298) return 0;
84925a91 (Andy Whitcroft 2010-06-17 299) return pass_bootoption(param, val, unused, 0);
84925a91 (Andy Whitcroft 2010-06-17 300) }
84925a91 (Andy Whitcroft 2010-06-17 301) static int __init pass_all_bootoptions(char *param, char *val, const char *unused, int known)
84925a91 (Andy Whitcroft 2010-06-17 @302) {
84925a91 (Andy Whitcroft 2010-06-17 303) return pass_bootoption(param, val, unused, 1);
84925a91 (Andy Whitcroft 2010-06-17 304) }
^1da177e (Linus Torvalds 2005-04-16 305)
^1da177e (Linus Torvalds 2005-04-16 306) static int __init init_setup(char *str)
^1da177e (Linus Torvalds 2005-04-16 307) {
^1da177e (Linus Torvalds 2005-04-16 308) unsigned int i;
^1da177e (Linus Torvalds 2005-04-16 309)
^1da177e (Linus Torvalds 2005-04-16 310) execute_command = str;
---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu, Yuanhan Liu Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-29 1:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-29 1:22 init/main.c:302: warning: 'pass_all_bootoptions' defined but not used Fengguang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox