Message ID | 20231109054027.2870124-1-sunilvl@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp233513vqs; Wed, 8 Nov 2023 21:41:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWuXmGGdsOHU7dJJVCdhszn8w+fP9QYCeVTLm78Mbvwq+iPWRIcL7y3ND1RrrBsE8ZnQpB X-Received: by 2002:a81:4e53:0:b0:595:80e4:907d with SMTP id c80-20020a814e53000000b0059580e4907dmr3996715ywb.32.1699508469721; Wed, 08 Nov 2023 21:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699508469; cv=none; d=google.com; s=arc-20160816; b=oXEpE0oeGhEASbEsFVJB6/EBNEsIgh7X0NA9GsBKI04OZgxqOE0Bujv9CJqGyj5iUP fommuZ8jmsPrXF4z0ST69Tk8LxfLfSsi7dC8Ngyn69i6VBf64WPqKSarkoYo3RCRmSks 8eqE9omBl6nJ0rDLQ+lGFbrdHcBOBfbEnHUcQUCs5VZseS9CYVGbOQZAZMAR9Lg4JfNG OfzW2Dv4us1xFBVJIA4kni9iXGjqcGpXnwAvI/8IURRWVaCOE48uI5mrw3IeEFfaxKZw eCbKSkRadJSzYvPP2BfzTAtuFHj9DM83s9SALOxdV5h9HkGuytIACJ9jDQHRRmiMFsSb SnFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=X+FHdZF3sFLXj1T2gOt36GY0NN8x4phIIx2zZGGAMY4=; fh=sTzQjhmnI0Ha9HbIIZr3EpFaiygg/sWwJkWMzxin/lQ=; b=qPm6+n1RTMthb101N5v+eXAyxcNLPfydu8XuJEBgSfdd4PyGlnl+1NHgJe7astyGuu xKeM7QF0UfcXnF3T0gPZGGxFu37taDfJXlo+fta5KfhLmUIsMSuPwxKECezbcKukJrIX SVKfFGRrgirLJ1QEjXsAGxO6COHHXmZcLLDvGsek6BlA0X5HaMm816mVPem7p4yQ5Swh WWbwmpjKjv3Es5UrJ/heU41aCGHkwevZvs1dg3eY81IMt8vdxlVevG17NJkyW5mPEKJw Z1sVRGFoWxqslhcJUg4txpwaLm73SIlvRR1Vp8nAkLppYxaL6PCno9VS9EjHHX4zuWwn v+gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=WK8yA8++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 184-20020a6308c1000000b005b918d9a3c2si6545023pgi.868.2023.11.08.21.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 21:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=WK8yA8++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0DFBD8106F42; Wed, 8 Nov 2023 21:40:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbjKIFki (ORCPT <rfc822;jaysivo@gmail.com> + 32 others); Thu, 9 Nov 2023 00:40:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjKIFkg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 9 Nov 2023 00:40:36 -0500 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B73142699 for <linux-kernel@vger.kernel.org>; Wed, 8 Nov 2023 21:40:33 -0800 (PST) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6bd0e1b1890so405271b3a.3 for <linux-kernel@vger.kernel.org>; Wed, 08 Nov 2023 21:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1699508433; x=1700113233; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X+FHdZF3sFLXj1T2gOt36GY0NN8x4phIIx2zZGGAMY4=; b=WK8yA8++wEy+jv6G3eJ28lo4pMSxsN7IZcujFRMnjfNuuCRKU2okNCOFKaEbDMp5I7 q6bSwlGTH464J4QNytoZaEAiv5BXhAPSmYLQmWn5OdLPLrDVwBfHW5g30EdaoSFfMzdl 1W8EwCc+q4+mmJNWVHDTXYXvOpl9v7w69AH8JbP6zS/yvchMF+s6iGbAFCgwVylgJEAr 7vCHV2pRBxKqfsAEqm+QGjEvzTTB14ClWtMbUxk3dFvVTtWmOiNaD3myi8FK5AcL67uO z3nxhYyqFsfpkS0eXK4j50WpRXleQwctslKNLnIW6ut7WrWZTySiCxv5u6bqZJR+aUXn n86g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699508433; x=1700113233; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X+FHdZF3sFLXj1T2gOt36GY0NN8x4phIIx2zZGGAMY4=; b=VWbLEAmQh0deeNt/XpJwUVVBj2J5gRP4L0inFL6KaZTib3ppKoSp457kVFt4+E71Lg iupRt1SWmlyonEERQs07EcwwengpOI7WPa4UputXXONqBX13O9ODuMglYjNLel5SWtMz G6xdlci7rfeYJPtsxbNsNMQWVve39R9rcE0OpkCRNGzwGh/WpIc0br2v+xS7cSu2bOq4 vXx0/QTMEI4Gvp85XrGyzmhlWoBS/2OpKjWOJB4gk623HqnZ6FDi2Txn4pH+dNuEXv4l SoFynHERrobBXcd9Di0qtrymEAglzWlnU1cX2x3STaOdbwMXK0mnHstPrPUvMs0wMluQ zqhQ== X-Gm-Message-State: AOJu0Yw3iFoIzpiTvwLBLT946QoyGgQQftC6IjEOWUz6G1ob6ac0Ceq3 D8biA82kmeE3B8FvAHfTiFsesyEbxxx6uesyZNsFwA== X-Received: by 2002:a05:6a20:4e15:b0:137:514a:984f with SMTP id gk21-20020a056a204e1500b00137514a984fmr3368835pzb.35.1699508433126; Wed, 08 Nov 2023 21:40:33 -0800 (PST) Received: from sunil-pc.Dlink ([106.51.188.78]) by smtp.gmail.com with ESMTPSA id o7-20020a17090ab88700b00280cd4fbd83sm426109pjr.55.2023.11.08.21.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 21:40:32 -0800 (PST) From: Sunil V L <sunilvl@ventanamicro.com> To: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Gregory Greenman <gregory.greenman@intel.com>, Kalle Valo <kvalo@kernel.org>, Palmer Dabbelt <palmer@rivosinc.com>, Conor Dooley <conor.dooley@microchip.com>, Andrew Jones <ajones@ventanamicro.com>, Sunil V L <sunilvl@ventanamicro.com>, kernel test robot <lkp@intel.com> Subject: [PATCH] wifi: iwlwifi: Fix warning by adding dependency on DMI Date: Thu, 9 Nov 2023 11:10:27 +0530 Message-Id: <20231109054027.2870124-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 08 Nov 2023 21:40:55 -0800 (PST) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782063793061057493 X-GMAIL-MSGID: 1782063793061057493 |
Series |
wifi: iwlwifi: Fix warning by adding dependency on DMI
|
|
Commit Message
Sunil V L
Nov. 9, 2023, 5:40 a.m. UTC
This driver currently assumes CONFIG_DMI is enabled along with ACPI. This may not be true. Due to this, the kernel test bot reports new warning like below for RISC-V allyesconfig builds. >> drivers/net/wireless/intel/iwlwifi/fw/acpi.c:1190:25: warning: '%s' directive argument is null [-Wformat-overflow=] 1190 | "System vendor '%s' is not in the approved list, disabling PPAG.\n", Fix the warning by adding dependency on CONFIG_DMI. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311040602.sCjU3UXr-lkp@intel.com/ Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> --- drivers/net/wireless/intel/iwlwifi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 2023-11-09 at 11:10 +0530, Sunil V L wrote: > This driver currently assumes CONFIG_DMI is enabled along with ACPI. > This may not be true. Due to this, the kernel test bot reports new > warning like below for RISC-V allyesconfig builds. > > > > drivers/net/wireless/intel/iwlwifi/fw/acpi.c:1190:25: > warning: '%s' directive argument is null [-Wformat-overflow=] > > 1190 | "System vendor '%s' is not in the approved list, disabling PPAG.\n", > > Fix the warning by adding dependency on CONFIG_DMI. > Not sure that's the right fix - why not put checks in the code there? Is it just a build warning? maybe -dmi_get_system_info(DMI_SYS_VENDOR) +dmi_get_system_info(DMI_SYS_VENDOR) ?: "<unknown>" johannes
On Thu, Nov 09, 2023 at 10:09:53AM +0100, Johannes Berg wrote: > On Thu, 2023-11-09 at 11:10 +0530, Sunil V L wrote: > > This driver currently assumes CONFIG_DMI is enabled along with ACPI. > > This may not be true. Due to this, the kernel test bot reports new > > warning like below for RISC-V allyesconfig builds. > > > > > > drivers/net/wireless/intel/iwlwifi/fw/acpi.c:1190:25: > > warning: '%s' directive argument is null [-Wformat-overflow=] > > > > 1190 | "System vendor '%s' is not in the approved list, disabling PPAG.\n", > > > > Fix the warning by adding dependency on CONFIG_DMI. > > > > Not sure that's the right fix - why not put checks in the code there? > > Is it just a build warning? > > maybe > > -dmi_get_system_info(DMI_SYS_VENDOR) > +dmi_get_system_info(DMI_SYS_VENDOR) ?: "<unknown>" > Thanks!, Johannes. It is a build warning because of allyesconfig build. Your suggestion works. I will send v2 with this solution. Thanks, Sunil
diff --git a/drivers/net/wireless/intel/iwlwifi/Kconfig b/drivers/net/wireless/intel/iwlwifi/Kconfig index 20971304fdef..cbcd1dcced4d 100644 --- a/drivers/net/wireless/intel/iwlwifi/Kconfig +++ b/drivers/net/wireless/intel/iwlwifi/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config IWLWIFI tristate "Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi) " - depends on PCI && HAS_IOMEM && CFG80211 + depends on PCI && HAS_IOMEM && CFG80211 && DMI depends on IWLMEI || !IWLMEI select FW_LOADER help