Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp742131rdh; Wed, 14 Feb 2024 09:58:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQk0q/pja3CrQPFv1LW9pJlq7JXANtN8ClCKF4HHAj1HLUwF61QSN98NvZzlOVKQtiDmUH8Gi/lqyUGrf6FLr2gAUgkzII10xHa4so9g== X-Google-Smtp-Source: AGHT+IEgTHgHAxkPTf9sbVx4HgVUY9r73K0bOFu8NcTd49z1kd17IfTbYCp4geL2WjRdv2CIQD42 X-Received: by 2002:a5b:648:0:b0:dbd:8f9:a71 with SMTP id o8-20020a5b0648000000b00dbd08f90a71mr2727976ybq.28.1707933492454; Wed, 14 Feb 2024 09:58:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707933492; cv=pass; d=google.com; s=arc-20160816; b=RaPzE9JcsZwIDqxfWy5aWh4qOMSPUZgoY7jKtRxSmuHeDZyf/Qk1PjNrpzb6LP1oIo AkvbtwnqooweNa0a/qL1+ceunZQTEM2DPg2DJpXmhZauZ3x0zZwVRDxhJ0cYofOqNGLb SoZqvxKUsY94JKdNaIr+pL1wzw1TQ+bi/4PG/We5fJ87oNjwTgeDaV6cJ/+AoJDMea0N C5zY0Mi9Bi0yUQ0yp8UEMcWbX56aIv2m/Uw8lwrTntpV2ukOKaAw2oeEi+UNtK01xExF eClPSMXj8PSJJTh99ptJDlAWSu09KpENZdQJ5JWY3T1WcnwolIVdq6FZBPbDgqifuRo3 dEMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=X5ZuJz9c4/UAfUdXO4s884nKJPyAE51TGkb2t3tAaPI=; fh=NUaSGSlElnjNC9ZxIW6fvuJLR4fl9Ktd0/5hPWih7uw=; b=fCt1eLPNjpp4J7ilb9fhRFKsYId4jviV88D36I8TjQpi7Qq6LSZ1a0MdXF/JEpnwAf EU52hw6cIt8QCw7DFn7DCWICrm8PgMnKvUO0VYYeyisWV+bnD4bHvjHl3QMsbHUxyPgo fDPF3bjpd52aA2AP/5shvQIExXZjI17vyygIhWISiAX2wKlge6wh2V9n9h15X05uLQDB fTYUdXsDk38Pd/VVSMzgdQY2sKEZoO5ZIrnWzn7s3BTANZS4JAzlu33CrO8y/mYaDGYC of9Kyp7fnFDtXCzJkmz5oPyrRqn1dg+/hMABn+eMt3Uheil7hHVm+YFadaXZUL1EuR8H AvFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hKuyTVQD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVv2e8DuJALsA7GnsMklVHLkPrJ2xh/7hOTphxPe/PJNXiK0QqIdiBJAY4lz9hM7pF2TK+Ya1tnIbPGZKeWiqEFVzZ7sU2gQWSs8p60gQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h11-20020a05620a13eb00b0078724a778f4si3143564qkl.206.2024.02.14.09.58.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 09:58:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hKuyTVQD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3A45D1C29D99 for ; Wed, 14 Feb 2024 17:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6264128369; Wed, 14 Feb 2024 17:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hKuyTVQD" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5FD41272C0; Wed, 14 Feb 2024 17:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933354; cv=none; b=CbPvI1Ms4WArayWhn4e9qulAih2adHbe8GlNf3QGd/ZqtAXqXmvCxzx9hP0XapT+N7AwkTjX7eyAuBmPTxkW1lyZT/Ghov4qzMfi+ufSXWAmon9QqSpZW4Oir9nkhHWtzQsejQ0LEWyVcwov/rMsqZtjoAz+bzmU+zhNd8bp3mY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933354; c=relaxed/simple; bh=AekKESNH1YzcWERD9WvAuc+h4Br5J7sxCXJp1H3DgIw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=LmaG1qlw8P7SXOUVSaANJjJ7TjPqi8aXOPYyUDgh+vEfV7RHzOLis9Jx4V5Xe7UOWU+Brgk3IdUD2fck0Y7FPE5mKdb0akorvXRM5q4zdLj3f5a53F0jrUu0it/qtTWODBa6vbaYH+evs+Ku4koFa5Ky+C8qSsHt28DZ5CPpmEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hKuyTVQD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF503C433C7; Wed, 14 Feb 2024 17:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707933354; bh=AekKESNH1YzcWERD9WvAuc+h4Br5J7sxCXJp1H3DgIw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hKuyTVQDqnFOOiIzi24tJPQ1jaKR1kx1X+NHUv51k/lBi9dzWWY7AMgukTmxA/xIV aNU+95ZSw2gZx2SH+v+Kxtc4tAbkqpQ8/DbBwj4Y7Lz9dYyeDxyufOMtTJhxHqXYdq 4TIcd7sX5ZiFUNPeG3yV0JxRWhNtV/U3jMSSnUfzF7tLk5psc5Qf2uZEktBOjeZJGy VYaBibDRgvKyaHFO8itr9h28IGow/I+UfuFF/EnF1sINg9b8tp6VDV6+bMGY2eFXUK to9cGho1TZ84A1p+tJhsu1XO2aXsYs/08XblS+r01W1VDlZqM3j1lKvaazWvKrNjCb WtuOcfbL4Rj0A== From: Kalle Valo To: "Arnd Bergmann" Cc: "Arend van Spriel" , "Arnd Bergmann" , "Nathan Chancellor" , "Greg Kroah-Hartman" , "Pieter-Paul Giesberts" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Artem Chernyshev" , "Jonas Gorski" , linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] brcmsmac: avoid function pointer casts References: <20240213100548.457854-1-arnd@kernel.org> <170790035300.3179441.9169506478575963188.kvalo@kernel.org> <3f1c2d5a-ba98-4ae5-a7a0-0328b7552113@app.fastmail.com> Date: Wed, 14 Feb 2024 19:55:48 +0200 In-Reply-To: <3f1c2d5a-ba98-4ae5-a7a0-0328b7552113@app.fastmail.com> (Arnd Bergmann's message of "Wed, 14 Feb 2024 16:07:00 +0100") Message-ID: <87frxvnd5n.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Arnd Bergmann" writes: > On Wed, Feb 14, 2024, at 10:23, Arend van Spriel wrote: > >> On 2/14/2024 9:45 AM, Kalle Valo wrote: >>> Arnd Bergmann wrote: >>> >>>> From: Arnd Bergmann >>>> >>>> An old cleanup went a little too far and causes a warning with clang-16 >>>> and higher as it breaks control flow integrity (KCFI) rules: >>>> >>>> drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c:64:34: error: cast from 'void (*)(struct brcms_phy *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict] >>>> 64 | brcms_init_timer(physhim->wl, (void (*)(void *))fn, >>>> | ^~~~~~~~~~~~~~~~~~~~ >>>> >>>> Change this one instance back to passing a void pointer so it can be >>>> used with the timer callback interface. >>>> >>>> Fixes: d89a4c80601d ("staging: brcm80211: removed void * from softmac phy") >>>> Signed-off-by: Arnd Bergmann >>> >>> I guess this should go to wireless tree? >> >> This has been like this forever looking at the "staging" part in the >> Fixes tag. Is it really so urgent now? On the other hand I have no real >> problem with moving this to the wireless tree. Just wondering out loud. > > It's probably fine either way. Some maintainers like to backport > the warning fixes to stable kernels, others don't. Since the > warning is currently only enabled at W=1 level, it's probably fine > to fix it for linux-next only, but if we want the fix backported, > it should also go into 6.8. Thanks, let's take it wireless-next then. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches