public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: init/main.c:302: warning: 'pass_all_bootoptions' defined but not used
Date: Sat, 29 Sep 2012 01:22:22 +0000	[thread overview]
Message-ID: <20120929012222.GA10871@localhost> (raw)

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

                 reply	other threads:[~2012-09-29  1:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120929012222.GA10871@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox