From patchwork Thu Oct 6 19:20:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 613175 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A42E3C433FE for ; Thu, 6 Oct 2022 19:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231862AbiJFTVk (ORCPT ); Thu, 6 Oct 2022 15:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232084AbiJFTU7 (ORCPT ); Thu, 6 Oct 2022 15:20:59 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C39C18D0F8 for ; Thu, 6 Oct 2022 12:20:57 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id x6so2556181pll.11 for ; Thu, 06 Oct 2022 12:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=bhbYN1/ws6y+dvibVWQIhc2niyZnNj0uIem726dovow=; b=nfkPVlGQxxm0gH2aJgFsIJGQT1ZrA2aYg20i6S6j1e0pj9rutxyhA6DNlE+ldLGfB8 z3TH67MlNuDOm4QRNmE2nSaSvdwPZQkP+iQhx69iDFKze/TLzlT/zx3k7dfa9cdSCnpb /bWQeCrx2pqX1KL0u5cltFMJyhI0roiByl8cc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=bhbYN1/ws6y+dvibVWQIhc2niyZnNj0uIem726dovow=; b=R9jNq9k7yRF090E0a+cCo6SKuyl3T9okB8Ya1sep/TXdjQta+946/TUija0DkOHIt/ cjAUSsjyUQNpB/vGZjhCgp+NLCHyOuFwgI8N4ahdpo6QQ/jpBsgwSDQ9Utcd/mOTKYPJ zJRzzwGtskjhxPZzxCDrh4Y1EOJdTWXCFlsnLRSe/HJQgO1rIdO8Kq5f9oCeZMy4DVc8 RQack8xS/Xh7PnZ3vhhsr9++bOZ+cudFwKU7NlKKKSNn+O9yQIHkj1JUBw4+3tjEvEtQ oWwBBsyOj68is/Ymek+okZMdahe9QIxz6012b+rHIkhVC3nGsuf9Nkjbbc22gKK4r8mF Sf+w== X-Gm-Message-State: ACrzQf3vdT+68c3BdQIQlW3Hg3JPRU39s//+xtA1eIHYAPX5ukG7oycV RJpf9NqI+TG7pqWkSy8aTB224A== X-Google-Smtp-Source: AMsMyM7xbIJakV+zr+CrMGNTwjFGTBB9I9gY4Yexu9BF+gqKocdMGxlTu6JuPlg58XON0QY5nDXoeg== X-Received: by 2002:a17:90a:a40a:b0:20a:882a:7ed8 with SMTP id y10-20020a17090aa40a00b0020a882a7ed8mr1222841pjp.129.1665084057317; Thu, 06 Oct 2022 12:20:57 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id pc14-20020a17090b3b8e00b0020a28156e11sm1814611pjb.26.2022.10.06.12.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 12:20:56 -0700 (PDT) From: Kees Cook To: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Cc: Kees Cook , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: [PATCH] ath9k: Remove -Warray-bounds exception Date: Thu, 6 Oct 2022 12:20:54 -0700 Message-Id: <20221006192054.1742982-1-keescook@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org GCC-12 emits false positive -Warray-bounds warnings with CONFIG_UBSAN_SHIFT (-fsanitize=shift). This is fixed in GCC 13[1], and there is top-level Makefile logic to remove -Warray-bounds for known-bad GCC versions staring with commit f0be87c42cbd ("gcc-12: disable '-Warray-bounds' universally for now"). Remove the local work-around. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105679 Signed-off-by: Kees Cook --- drivers/net/wireless/ath/ath9k/Makefile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/Makefile b/drivers/net/wireless/ath/ath9k/Makefile index 9bdfcee2f448..eff94bcd1f0a 100644 --- a/drivers/net/wireless/ath/ath9k/Makefile +++ b/drivers/net/wireless/ath/ath9k/Makefile @@ -45,11 +45,6 @@ ath9k_hw-y:= \ ar9003_eeprom.o \ ar9003_paprd.o -# FIXME: temporarily silence -Warray-bounds on non W=1+ builds -ifndef KBUILD_EXTRA_WARN -CFLAGS_mac.o += -Wno-array-bounds -endif - ath9k_hw-$(CONFIG_ATH9K_WOW) += ar9003_wow.o ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \