From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84977C10F27 for ; Tue, 10 Mar 2020 08:25:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5FBF524677 for ; Tue, 10 Mar 2020 08:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbgCJIZQ (ORCPT ); Tue, 10 Mar 2020 04:25:16 -0400 Received: from mga07.intel.com ([134.134.136.100]:27664 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgCJIZQ (ORCPT ); Tue, 10 Mar 2020 04:25:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2020 01:25:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,535,1574150400"; d="scan'208";a="231245735" Received: from ldmartin1-desk.jf.intel.com ([10.165.21.151]) by orsmga007.jf.intel.com with ESMTP; 10 Mar 2020 01:25:15 -0700 From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: joao.moreira@intel.com, leandro.maciel.dorileo@intel.com, Lucas De Marchi Subject: [PATCH 1/2] libkmod: ignore kcmdline option if we fail to parse modname Date: Tue, 10 Mar 2020 01:23:07 -0700 Message-Id: <20200310082308.14318-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: The error message is saying we are ignoring the option on the kernel command line, so just do it. --- libkmod/libkmod-config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index 7b62367..971f20b 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -488,8 +488,9 @@ static void kcmdline_parse_result(struct kmod_config *config, char *modname, if (underscores(modname) < 0) { ERR(config->ctx, "Ignoring bad option on kernel command line while parsing module name: '%s'\n", modname); + } else { + kmod_config_add_options(config, modname, param); } - kmod_config_add_options(config, modname, param); } } -- 2.25.1