From nobody Mon Apr 6 21:11:53 2026 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 6F327C4332F for ; Thu, 6 Oct 2022 19:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbiJFTV4 (ORCPT ); Thu, 6 Oct 2022 15:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232067AbiJFTU4 (ORCPT ); Thu, 6 Oct 2022 15:20:56 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA53F8D0F8 for ; Thu, 6 Oct 2022 12:20:54 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id fw14so2557359pjb.3 for ; Thu, 06 Oct 2022 12:20:54 -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=itZWwPdDaSKLWFxysGkqkMCHBdnDlLrqJO/idiDOslY=; b=JUsE59scSIqOd3RSs+2ERXty4+RKlbVH8hzJHnoRRXfbL9fbsY7AedyXrqpEYhBjwT PmPPKU5rUEu7JvzYlqV5115l1w/JDWCA42QlLydOFhZtfAF/wuUQ0v7nmCkhWQ3Q8cbr ZguKk4CT2DDUv2zNtUDFc5Cn/taJ9NkOhXS4k= 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=itZWwPdDaSKLWFxysGkqkMCHBdnDlLrqJO/idiDOslY=; b=OSLMS6/xMuHoSJ03QUj2eSmmcruaOAJ5O5KvwM2hT96dPi9Tng1OCnbBTP4ylK2/Sq AxX+l7XBQXzHXGKyNRCd0wkMaZJO2Cvxx8NK3+5MpEZkqc1Vysqbn/8vXVoo6jZjtvYU ny7C1MplRqFHGveMr02BfZ7IszqmyloDFw+g1ENS6natPBOEERQ8PJ9g1jDVh5kk4ioE M+c/sZO21GyXMRAoEu/qfMzpb6c7oyG0rYbBuGU6ASWWYxT5CGgJdEIUJmVbLhXYTtrH RgKI5XqaDrkEXPMvQl+UzGyFKbVKnuU4vwHY/qM/WVfLYzEx0p7+3TqZucy3PT85dnxC +y0w== X-Gm-Message-State: ACrzQf3o8GAfApq5If1I/rAelridQV5aAEiD8PaWcJC4O6zA62ka1xYZ vjZzFzXx+45Eq4f73xpbOV0RmA== X-Google-Smtp-Source: AMsMyM6LjYgbdTj0/rBODYHzW0d0fCW4va1+F14dDNVJxWwaaXNv95GiVv6m9nbEEczNin00+ZXvWg== X-Received: by 2002:a17:902:ea06:b0:178:23f7:5a18 with SMTP id s6-20020a170902ea0600b0017823f75a18mr1363172plg.21.1665084054303; Thu, 06 Oct 2022 12:20:54 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id s13-20020a170902ea0d00b0016d72804664sm12690964plg.205.2022.10.06.12.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 12:20:53 -0700 (PDT) From: Kees Cook To: Christian Lamparter 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] wifi: carl9170: Remove -Warray-bounds exception Date: Thu, 6 Oct 2022 12:20:51 -0700 Message-Id: <20221006192051.1742930-1-keescook@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" GCC-12 emits false positive -Warray-bounds warnings with CONFIG_UBSAN_SHIFT (-fsanitize=3Dshift). 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=3D105679 Signed-off-by: Kees Cook Acked-by: Christian Lamparter --- drivers/net/wireless/ath/carl9170/Makefile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/Makefile b/drivers/net/wirel= ess/ath/carl9170/Makefile index 7463baa62fa8..1a81868ce26d 100644 --- a/drivers/net/wireless/ath/carl9170/Makefile +++ b/drivers/net/wireless/ath/carl9170/Makefile @@ -3,8 +3,3 @@ carl9170-objs :=3D main.o usb.o cmd.o mac.o phy.o led.o fw.= o tx.o rx.o carl9170-$(CONFIG_CARL9170_DEBUGFS) +=3D debug.o =20 obj-$(CONFIG_CARL9170) +=3D carl9170.o - -# FIXME: temporarily silence -Warray-bounds on non W=3D1+ builds -ifndef KBUILD_EXTRA_WARN -CFLAGS_cmd.o +=3D -Wno-array-bounds -endif --=20 2.34.1