Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1767434rdb; Mon, 9 Oct 2023 02:07:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDi/oJ0HWCifabu0Cq14bnTURz3TdcD519T9jxHbIMQCBQCmhQmzNWmgDWRIaSh2NvSamp X-Received: by 2002:a17:902:ce8d:b0:1b9:e913:b585 with SMTP id f13-20020a170902ce8d00b001b9e913b585mr10033761plg.13.1696842450738; Mon, 09 Oct 2023 02:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696842450; cv=none; d=google.com; s=arc-20160816; b=eFL/BL31+lbv+sQ+wnU+UiPgCu7QCkUJrXVs90R9MSD1U8aXRNTVDVcZknzIpwyGTJ hocnKaBg/0woNi4HeL/Gobhq9RIo8kx+cBUlaPT6eXj4IkSVFohpMmsx1r477HtPSHN7 qyXrIHGkCEBnh+v7Hb/unEOmrobJeWfffUrThWSt+iKzPEpM3X/NeErKZKddlJTx+8io UEu0bX0LmHAd8t7RIPcX+GaxWrf72iOS4zROmB5mDqQfEZIdFTId2tlfl6T2b10Bel4S NxReJF+vRhLw3S1f4ug9bC9rOjwCPaGulzGEqvjShWV2xZIhWdtZJ3AHbJDsC0JsvRHI 7/MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=111oRTH/EVzkglzmw1nqEAQZvZ9xBM6fPYQXVycY0n4=; fh=oIzKgcUm4xTkN6mg1RYlQ3Kidt2o8Ygb+1LZLFrkOQw=; b=J5FtauF6Dy7dYK97kvbFABDdvZQW7u67Al40OyUSDYpgmeQ/2Rb/tv2s8++xttJtBJ 6JvUM40Rmf9Zk9/RA1DRfESP/BigZQeDDeOpVZLlejIig9BbCIzn3LLNW1gPzsoQFHwR etpn/Z9+aG0IGMcmf2rC2ln+pJldkfEbRnxW/8GTIujaqKMuYHk+PyftBW7Be0X00fkH XMlGP+SMlFkCjG2xGYEjWrqSWmc1IuvYHgEZpsGxcTCo1RjpXwuR0tXdKmafpMHU23ad AstiCHaLbHQMMzfXYmJdUEXbhsCU5ai3jGSmiMmfmRh4P15eHuy9uCExcvHtDPhyVyAw 78gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YH4ZKAew; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id e17-20020a170902f1d100b001b9e9fa3a38si8514716plc.646.2023.10.09.02.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 02:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YH4ZKAew; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id ADEF480212F3; Mon, 9 Oct 2023 02:07:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345612AbjJIJHZ (ORCPT + 52 others); Mon, 9 Oct 2023 05:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234489AbjJIJHY (ORCPT ); Mon, 9 Oct 2023 05:07:24 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3C02A2; Mon, 9 Oct 2023 02:07:22 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-690bccb0d8aso3221072b3a.0; Mon, 09 Oct 2023 02:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696842442; x=1697447242; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=111oRTH/EVzkglzmw1nqEAQZvZ9xBM6fPYQXVycY0n4=; b=YH4ZKAewF3QlZILuMbXWGiIZEA2VTajTCcwaQFdjx4FtSBP1433mfYdyblhKX5LrRm DWt3eRqHBNFUp7M9jeAzzK24izYeJKqFZVDKZuWZlHNfIPgZq10sYee6DmB9GWqT8PuB UobtYEENZjADQKOb9MWGkO9cM/wSWEA40yGPEwrD6V/XbBs4f6x1NepDsDjzpm0F6/dq ycgSWQfgPpJCsyVuI+WlpRU4Sa4EQuUKxaZgqBB9ynLezcK+A5mHbow1lJI3+7oLqsTj IV8WW2EKYYhi8/bD5nzp6jl5cQZvKcw1E4/fuOfoRbZ/bXGX9qtcOjDVa4jaEvlZY1mN ihOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696842442; x=1697447242; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=111oRTH/EVzkglzmw1nqEAQZvZ9xBM6fPYQXVycY0n4=; b=VupYzyQ1ETC5Nw+0zDHRo+qN+BQdLNsD4HqfyyaXX35GMrRJGyqF/3K7kloPwwKOXw 5d6O5l6VN1GYrVcyu//qPgG9V8nLOfbKz66ErIiqfm37RSmeLBN4j74hZB+dedW0WckZ 2u7ez9a8KrFXVio6Ed2K4VoJC/ErjtqBaoLC5gvpwedLsnu0mXrJdueGT4CLnLeDBObN +fvsCVwrwa6FEsFsZ/pt11jw1mK8VHM1XOMrTzvaBu+JYC5G0G7LOf2VPaI9yYhirZWH naLta+p3n/scepbLViw7wZQa3VqcB72dkbBvdCUB2IYjaYAe5hn1tOPihOLEYzMF2Xqh MEGw== X-Gm-Message-State: AOJu0YzW6o9sdcBt83livvI0Gh8d7pNOSv0Ca8wgTrdbL+8OgfLxw9/3 7xkoMTjTAHJxTyvPQC+vemo= X-Received: by 2002:a05:6a00:cc4:b0:68f:d6db:5d66 with SMTP id b4-20020a056a000cc400b0068fd6db5d66mr15264066pfv.16.1696842442123; Mon, 09 Oct 2023 02:07:22 -0700 (PDT) Received: from debian.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id p25-20020a62ab19000000b006936d053677sm5840143pff.133.2023.10.09.02.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 02:07:21 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 1BC888CB5482; Mon, 9 Oct 2023 16:07:18 +0700 (WIB) Date: Mon, 9 Oct 2023 16:07:18 +0700 From: Bagas Sanjaya To: Kalle Valo , Linux Wireless , Linux Kernel Mailing List , Linux Networking , Linux Broadcom Wireless Development , SHA-cyfmac-dev-list@infineon.com, Linux ath11k Cc: Stanislav Yakovlev , Gregory Greenman , Arend van Spriel , Franky Lin , Hante Meuleman , Jeff Johnson , Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Richard Cochran , Johannes Berg , Miri Korenblit , Avraham Stern , Benjamin Berg , Mordechay Goodstein , Minsuk Kang , Ruan Jinjie Subject: Re: [RFH] wireless-next: fix new W=1 warnings Message-ID: References: <87fs2k5l1a.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1p7opZ+xi4xHbBQU" Content-Disposition: inline In-Reply-To: <87fs2k5l1a.fsf@kernel.org> X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 02:07:26 -0700 (PDT) X-Spam-Level: ** --1p7opZ+xi4xHbBQU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 09, 2023 at 10:09:53AM +0300, Kalle Valo wrote: > Hi, >=20 > During the weekend we updated wireless-next tree from v6.5 to v6.6-rc4+. > It looks like a new warning was enabled for v6.6 as I see with GCC 13.2 > and W=3D1 several warnings (list below). In v6.5 wireless code was still > W=3D1 warning free with GCC. Can you pin-point the exact commit that introduces the warnings? >=20 > For wireless we get lots of questionable cleanup patches. But actually > these kind of warnings are what we would prefer to be fixed instead of > the random churn we always see. Hence I'm sending this Request For Help > (RFH) in case the cleanup people would fix these. Is there a mailing > list I should send this to? [also Cc: maintainers and lists for files below] >=20 > The sooner these are fixed the better, it makes it difficult for us to > see any new warnings from this noise. >=20 > Kalle >=20 > drivers/net/wireless/intel/ipw2x00/ipw2100.c:5905:63: warning: '%s' direc= tive output may be truncated writing up to 63 bytes into a region of size 3= 2 [-Wformat-truncation=3D] > drivers/net/wireless/intel/ipw2x00/ipw2100.c:5905:9: note: 'snprintf' out= put between 4 and 140 bytes into a destination of size 32 > drivers/net/wireless/intel/ipw2x00/ipw2200.c:10392:63: warning: '%s' dire= ctive output may be truncated writing up to 63 bytes into a region of size = 32 [-Wformat-truncation=3D] > drivers/net/wireless/intel/ipw2x00/ipw2200.c:10392:9: note: 'snprintf' ou= tput between 4 and 98 bytes into a destination of size 32 > drivers/net/wireless/intel/iwlwifi/dvm/main.c:1467:19: warning: '%s' dire= ctive output may be truncated writing up to 63 bytes into a region of size = 32 [-Wformat-truncation=3D] > drivers/net/wireless/intel/iwlwifi/dvm/main.c:1465:9: note: 'snprintf' ou= tput between 1 and 64 bytes into a destination of size 32 > drivers/net/wireless/intel/iwlwifi/mvm/ops.c:1307:19: warning: '%s' direc= tive output may be truncated writing up to 63 bytes into a region of size 3= 2 [-Wformat-truncation=3D] > drivers/net/wireless/intel/iwlwifi/mvm/ops.c:1305:9: note: 'snprintf' out= put between 1 and 64 bytes into a destination of size 32 > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:262:52: warni= ng: '%d' directive output may be truncated writing between 1 and 5 bytes in= to a region of size 4 [-Wformat-truncation=3D] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:262:46: note:= directive argument in the range [0, 65535] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:262:46: note:= directive argument in the range [0, 65535] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:262:9: note: = 'snprintf' output between 9 and 17 bytes into a destination of size 9 > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:265:55: warni= ng: '%d' directive output may be truncated writing between 1 and 5 bytes in= to a region of size 4 [-Wformat-truncation=3D] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:265:48: note:= directive argument in the range [0, 65535] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:265:48: note:= directive argument in the range [0, 65535] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:265:9: note: = 'snprintf' output between 10 and 18 bytes into a destination of size 10 > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:342:50: warni= ng: '/' directive output may be truncated writing 1 byte into a region of s= ize between 0 and 4 [-Wformat-truncation=3D] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:342:42: note:= directive argument in the range [0, 65535] > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:342:9: note: = 'snprintf' output between 10 and 18 bytes into a destination of size 10 > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:549:33: warning: '%s' direct= ive output may be truncated writing up to 63 bytes into a region of size be= tween 48 and 56 [-Wformat-truncation=3D] > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:547:9: note: 'snprintf' outp= ut 9 or more bytes (assuming 80) into a destination of size 64 > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:729:33: warning: '%s' direct= ive output may be truncated writing up to 63 bytes into a region of size be= tween 48 and 56 [-Wformat-truncation=3D] > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:727:9: note: 'snprintf' outp= ut 9 or more bytes (assuming 80) into a destination of size 64 > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:989:51: warning: '%s' direct= ive output may be truncated writing up to 63 bytes into a region of size be= tween 46 and 58 [-Wformat-truncation=3D] > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:987:33: note: 'snprintf' out= put between 7 and 82 bytes into a destination of size 64 > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:984:53: warning: '%s' direct= ive output may be truncated writing up to 63 bytes into a region of size be= tween 40 and 50 [-Wformat-truncation=3D] > drivers/net/wireless/intel/iwlwifi/iwl-drv.c:982:33: note: 'snprintf' out= put between 15 and 88 bytes into a destination of size 64 > drivers/net/wireless/ath/ath11k/debugfs.c:1597:51: warning: '%d' directiv= e output may be truncated writing between 1 and 3 bytes into a region of si= ze 2 [-Wformat-truncation=3D] > drivers/net/wireless/ath/ath11k/debugfs.c:1597:48: note: directive argume= nt in the range [0, 255] > drivers/net/wireless/ath/ath11k/debugfs.c:1597:9: note: 'snprintf' output= between 5 and 7 bytes into a destination of size 5 > drivers/net/wireless/ath/ath9k/hif_usb.c:1223:42: warning: '.0.fw' direct= ive output may be truncated writing 5 bytes into a region of size between 4= and 11 [-Wformat-truncation=3D] > drivers/net/wireless/ath/ath9k/hif_usb.c:1222:17: note: 'snprintf' output= between 27 and 34 bytes into a destination of size 32 There is only one commit touching above files in current cycle, that is b2f= d72aafb1311 ("wifi: ath9k: Remove unnecessary ternary operators"). That's what I know. --=20 An old man doll... just what I always wanted! - Clara --1p7opZ+xi4xHbBQU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZSPCwgAKCRD2uYlJVVFO o8ymAP9LMTtr8chruIr3qE2uP9kaN+rd6CgxbH302q7bheYt4AEA9zEHmUbTdBFW CobVmnhLh1HJoVKvdsCEaezhwRnETQM= =IWi4 -----END PGP SIGNATURE----- --1p7opZ+xi4xHbBQU--