Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5131797rwb; Wed, 21 Sep 2022 03:43:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WFGhuiNrKNRlgz4kEHXwAoRQQ8WqpG4qfAdmAWOTKL/JS3elXblLhJVyrO7FZOonNAvCw X-Received: by 2002:a05:6402:27cf:b0:451:6ccc:4ea0 with SMTP id c15-20020a05640227cf00b004516ccc4ea0mr24493785ede.193.1663756998094; Wed, 21 Sep 2022 03:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663756998; cv=none; d=google.com; s=arc-20160816; b=U2GqC6uLAouoI5K4VoiJaS3zKVW+JySVhVC6T1VHslzyWuExQ6d5rU32JP/+ZnNuuT E5GNVlmPo/uOTgCT0keV19Bva7sH7TewVnEuAdYQvv8srhwMBFBqSn9yZ5yYujAoCexG /jBoztOqjdJECXQ9qsMM5sRq4PNd5ibijH3EHd7NvEnYTlJSjRieplvrlHEWhCEjqEKl Lzc3melzkYwCXkSVcClNVhGbk0o1cBVKMX3/pzAu1qYwHYsBPIC9O5mOEjAWMwBim40T 5f5XbQ7lDa8LR97gMpsoDNQ8U9ovyI6uEUVhmJ7WutRZCGlsw3obcIUxCeKVMp2H2eRN JTVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=vWTx9waxxwXRcamt4ePCJ74t1njaL9ZrGOeuhdI5nro=; b=Whudnslmnpi2yYjMzqPESdnT9KBPHEZOkqabqcwbsYXaioLZ7Uwdt5oryAg78EAgBD IHSmr9sMNBoqiaHtKnFYHV+EExZDLFk8oYBNCeXvobgEVI8QyL+J/QCr+Cu2MKaYKZtU J9Aa3p049yBKOb9YKQv/Mg/H84QA57tl6mfJG9vc/9WQ+z+BSYAMlHl+jkH/EI5ns2nZ lbkA9aSjBxxFSaUUUcz5LI9nVpGNWERaZlfuFcYsZehqb1ycIvc7/j9f07XpJCA6JbsK iuY5r34D4BOFDwhYNzx7fmnmTMjitpvAtUN9wJ5GEQ9U4rna/hXxMYJckJg2imYmtZHc hoDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="s3/zWeZf"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a0564021e9100b004545cec5228si2510974edf.192.2022.09.21.03.42.59; Wed, 21 Sep 2022 03:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="s3/zWeZf"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbiIUKfz (ORCPT + 63 others); Wed, 21 Sep 2022 06:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbiIUKfx (ORCPT ); Wed, 21 Sep 2022 06:35:53 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B96F883E0 for ; Wed, 21 Sep 2022 03:35:52 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a26so12635494ejc.4 for ; Wed, 21 Sep 2022 03:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=vWTx9waxxwXRcamt4ePCJ74t1njaL9ZrGOeuhdI5nro=; b=s3/zWeZf0K6JlcMz68yA4amBwBVAratLAs4TitSGSWrUF7jSEaercPgB435AdKIgST sU8Cc96EMdJuaaW/RujVYHjga3Tr8y/70utRZgnSsbQzEop5DUn23X2gDJCY8SBXHfb1 ungajh15QI0Y7prHu+d6033i8RFixVFx3TmgGZsO43LhbV3MPeT96iQxUOjeVIr/3VD7 qzFQDhqSNN8OlLHWogZut17ZNQJVSkz70x03KufUaYFQQxgSKZlSvLx9K/HImbSUblo9 xajMFezGzHdmBMQlx7t5faxa12Fq5yMrTEJ8Ajo7QGcTvLQQtqcI08BvazMyGk7078ET ZYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=vWTx9waxxwXRcamt4ePCJ74t1njaL9ZrGOeuhdI5nro=; b=kyxfWZIYYyV5uXAL+l66UCphwInNZjZ+OJW5AXKiWF6BRSOFTPDIYn50ImB+InyD0T 0tt1UAkFw3h9YcxOfVdNsUSYThnPFNPgZH14fmAy5AGF7qoj8hzaEmgy22zUDfM9QEpT gM1qLhNRl7gktOC06zlM4RO3amqMv0agVJU8YjPTk3UCdNmVyIlFIsyisCSi1OoKnqVU C7I95JLTW/7bQUkyX5aiVT0QbhEDiSlJXSBaxQOcqhBnyuJnI8yxRGchZjz0Y9a4eMIy RYgm6YhKXwmqoyG21N/3g6iG+iQlEtIh2uT6toajGJD3LqpINbfp0EGbqVNYM7HfPZdb HUEw== X-Gm-Message-State: ACrzQf0pMX79JXgMsKmhpJ7w8fRVJDcrBxIEa6Fam1yqVHYFHkonUroG gBg1gQAroI2YJOgoYkUmjicZWkRTT/RaGGoxRSuteg== X-Received: by 2002:a17:906:4fce:b0:780:e1d8:eacc with SMTP id i14-20020a1709064fce00b00780e1d8eaccmr15423597ejw.366.1663756550698; Wed, 21 Sep 2022 03:35:50 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 21 Sep 2022 16:05:39 +0530 Message-ID: Subject: drivers/net/wireless/ath/ath11k/mac.c:2238:29: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 To: Netdev , open list , linux-wireless@vger.kernel.org Cc: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , ath11k@lists.infradead.org, regressions@lists.linux.dev, lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Following build warnings noticed while building arm64 on Linux next-20220921 Reported-by: Linux Kernel Functional Testing In function 'ath11k_peer_assoc_h_he', inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2662:2: drivers/net/wireless/ath/ath11k/mac.c:2238:29: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 [-Wstringop-overread] 2238 | v = ath11k_peer_assoc_h_he_limit(v, he_mcs_mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_peer_assoc_prepare': drivers/net/wireless/ath/ath11k/mac.c:2238:29: note: referencing argument 2 of type 'const u16 *' {aka 'const short unsigned int *'} drivers/net/wireless/ath/ath11k/mac.c:2019:12: note: in a call to function 'ath11k_peer_assoc_h_he_limit' 2019 | static u16 ath11k_peer_assoc_h_he_limit(u16 tx_mcs_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ath11k_peer_assoc_h_he', inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2662:2: drivers/net/wireless/ath/ath11k/mac.c:2251:21: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 [-Wstringop-overread] 2251 | v = ath11k_peer_assoc_h_he_limit(v, he_mcs_mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_peer_assoc_prepare': drivers/net/wireless/ath/ath11k/mac.c:2251:21: note: referencing argument 2 of type 'const u16 *' {aka 'const short unsigned int *'} drivers/net/wireless/ath/ath11k/mac.c:2019:12: note: in a call to function 'ath11k_peer_assoc_h_he_limit' 2019 | static u16 ath11k_peer_assoc_h_he_limit(u16 tx_mcs_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ath11k_peer_assoc_h_he', inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2662:2: drivers/net/wireless/ath/ath11k/mac.c:2264:21: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 [-Wstringop-overread] 2264 | v = ath11k_peer_assoc_h_he_limit(v, he_mcs_mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_peer_assoc_prepare': drivers/net/wireless/ath/ath11k/mac.c:2264:21: note: referencing argument 2 of type 'const u16 *' {aka 'const short unsigned int *'} drivers/net/wireless/ath/ath11k/mac.c:2019:12: note: in a call to function 'ath11k_peer_assoc_h_he_limit' 2019 | static u16 ath11k_peer_assoc_h_he_limit(u16 tx_mcs_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ath11k_peer_assoc_h_he', inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2662:2: drivers/net/wireless/ath/ath11k/mac.c:2264:21: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 [-Wstringop-overread] 2264 | v = ath11k_peer_assoc_h_he_limit(v, he_mcs_mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_peer_assoc_prepare': drivers/net/wireless/ath/ath11k/mac.c:2264:21: note: referencing argument 2 of type 'const u16 *' {aka 'const short unsigned int *'} drivers/net/wireless/ath/ath11k/mac.c:2019:12: note: in a call to function 'ath11k_peer_assoc_h_he_limit' 2019 | static u16 ath11k_peer_assoc_h_he_limit(u16 tx_mcs_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ath11k_peer_assoc_h_he', inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2662:2: drivers/net/wireless/ath/ath11k/mac.c:2264:21: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 [-Wstringop-overread] 2264 | v = ath11k_peer_assoc_h_he_limit(v, he_mcs_mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_peer_assoc_prepare': drivers/net/wireless/ath/ath11k/mac.c:2264:21: note: referencing argument 2 of type 'const u16 *' {aka 'const short unsigned int *'} drivers/net/wireless/ath/ath11k/mac.c:2019:12: note: in a call to function 'ath11k_peer_assoc_h_he_limit' 2019 | static u16 ath11k_peer_assoc_h_he_limit(u16 tx_mcs_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ath11k_peer_assoc_h_he', inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2662:2: drivers/net/wireless/ath/ath11k/mac.c:2251:21: warning: 'ath11k_peer_assoc_h_he_limit' reading 16 bytes from a region of size 0 [-Wstringop-overread] 2251 | v = ath11k_peer_assoc_h_he_limit(v, he_mcs_mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_peer_assoc_prepare': drivers/net/wireless/ath/ath11k/mac.c:2251:21: note: referencing argument 2 of type 'const u16 *' {aka 'const short unsigned int *'} drivers/net/wireless/ath/ath11k/mac.c:2019:12: note: in a call to function 'ath11k_peer_assoc_h_he_limit' 2019 | static u16 ath11k_peer_assoc_h_he_limit(u16 tx_mcs_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Build log: https://builds.tuxbuild.com/2F4W7nZHNx3T88RB0gaCZ9hBX6c/ -- Linaro LKFT https://lkft.linaro.org