Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp629231rdh; Wed, 14 Feb 2024 07:08:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHnJMs4RgI77zeBVDDr+/tMih1sgxcJ/RHbF92GdermePy8vyOkIJdWOCGfLn2B9vc4DzSVUh2QDpsWj53/D18TJ4mC4TBQ1fQhrD7kA== X-Google-Smtp-Source: AGHT+IFuZEb3uDrAMx7eiLsbJErjW034cycbcEUiCefExxAOSqfWGwMlDK1IO7I5hnaXOSpV5LUw X-Received: by 2002:a17:902:eac4:b0:1d9:bf01:165d with SMTP id p4-20020a170902eac400b001d9bf01165dmr2930885pld.10.1707923294860; Wed, 14 Feb 2024 07:08:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707923294; cv=pass; d=google.com; s=arc-20160816; b=DOx6AIWd9eRinBu7eIYSOp12Xu3NaV7f2BN7b99boV5OttcBYg3ZWHbODJlPJIGlc5 mrf2rtLmisfsTjXrxk1NjUrwQrCtBYjZYjJ51mabS/1fkGtra2GRwnm5CBs54/UFhpMM ID9EXR8QpHR0vXKZ6taxOA0h1U1vA0eWxOpM1/CEmpS9nOcaTThyNrCmcx2dOHk/EgGM Nz+E2DExSbcUp6ufS+OVe08NkoKQphauOXBDQ9Ng1zoCdGx0VRZi85iVttgR+2jE0HHr Y+GClkCTV7c3Vo95poNFXvDkM3CJapB4wWbvhzTBg4nFRdtGll0jxOHYYzjmwZIP7P9j Yk8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=k14qTSuVKVAB2YnlzxbQcFVIAQUz1+6sVcwSBNJ+Dw8=; fh=+pi5mkEjLLLX57sm5qJRqq7DKXsd09KxzRUeeVvQB7s=; b=ngPaOoPSoA/QupXg5jjqJQmUj8WsDgPlQun5cJQrncdNxs3dr8AdF44tr+hNtKjP5z mDUBQVaFuqYih0yB+kv1VKc7aWtA3zwaGIRv2VGF6r4zDw2SkO1MGMVl+GjHQm+P/SgR ZT3OJJsz5kXXfWPlK7BHX5aqJOA/dVf3erWRIGu3IMMvqtWtlOu9ZPflYo/z4yUFeCPf k5zanxX7avPQ4sl4vZDx9abpImzRNc8ZMvx8aSFX0xXGl7iu3xAl1aqgOJpH013txBgb VYW/3u47PvgI3nK5aIuSNkvlnz2300E1UjmyCfk9VMLxCkzoK2QOF0HqjX7kyh8YE1b5 7fZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=vXbfXUMK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=nC7KHPYT; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-65382-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de X-Forwarded-Encrypted: i=2; AJvYcCWw3MAJmj8lsmilPQEmHZoO+ptDYWsQXAyCieLvU6H7PfYQoz1kXjdqnKxmz0cX5yXYpRRmGHq67MY6tCSEXRSozFw2GpWF6xb8I9J0Wg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h5-20020a170902f70500b001db5b4036ecsi1229046plo.86.2024.02.14.07.08.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 07:08:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65382-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=vXbfXUMK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=nC7KHPYT; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-65382-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2767528C90B for ; Wed, 14 Feb 2024 15:07:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAA985BAFE; Wed, 14 Feb 2024 15:07:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="vXbfXUMK"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="nC7KHPYT" Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 35DAD5B5DB; Wed, 14 Feb 2024 15:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707923246; cv=none; b=LJ3979lJiJ4xwZ8JICAuJXSasnOVOm2N2Z7mRvTFWnb/xESvhnzuYnCDhL9/ajkDXyLSJrBM3hfcDYTuE2CIfUx1ikPTFTo33ZAOPs+RwnRJGsKDCrh7987xA1uf/a0YLRaapuoTt3PCr3GYmKlteujOD50xIQdlm4wqlS1yJjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707923246; c=relaxed/simple; bh=EkvVOPPnCFk/hyssrPlfM7oBLOoM7URKkRX378IAYG4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=CxJM8iMDQiCnAYowIM2HdWkybbqCHo5FlNmo1brib3lUVzffto1YqTlqLJLzK63HesDzvl+udSmFtVKKxriuNS+dxzKxsK5ncqA2trwKe1K2JXNd2uXh17NS9n3riG8R5mzGCq/pRWXIvEYRhxYaiLczMGLGwNNrl533ertQJw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=vXbfXUMK; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=nC7KHPYT; arc=none smtp.client-ip=64.147.123.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 213113200406; Wed, 14 Feb 2024 10:07:23 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 14 Feb 2024 10:07:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1707923242; x=1708009642; bh=k14qTSuVKV AB2YnlzxbQcFVIAQUz1+6sVcwSBNJ+Dw8=; b=vXbfXUMKvGE5joKax4FsSA1TMd JR8uldw6+ZUxoWU5Vqqp2jL6OkMV/tDtyS47HsUk3YiRMjHFjMLSGiNdhorPFgGO RRy7xGSCP5QBlMWCPFHTEhRSGxJoruukbxpo5kEYnhEB5PQ7zxgnifWtnxcCC0L6 e1xFLZKlE2IkPwRdCiV38KXsGHFWXuvP60FqECB1matsjb2oTeSztyvQmshjE2IP tGfvBjEk40OFqSdiqImYh48iFxaqQ4c9MDC6tH9DkgigCmVZuWK4vWy+mn16c0F9 3ubz5cvzYUNiI0AxSnEWjahmfE2fLSbYDI33wWa1XEZ0ihaM7HFNlVXLbPbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1707923242; x=1708009642; bh=k14qTSuVKVAB2YnlzxbQcFVIAQUz 1+6sVcwSBNJ+Dw8=; b=nC7KHPYThl+xCy2/bCpYs3ACWcqSE8AUyfBBeR9TjIgP pboNZMEppHDh4WyStVYV7i1R/JdhdoyzmAKoLvxkLoTDkQskmZUzK0t7iecRASH/ ERM1R60KVdZ1pBu3rKjVgbnZ0VPYnxGaK1txGzckO8qyNCLNANk/JHvo8pVgiJX/ FeXA8EWghnY13KZO+MvOyo+xP2snoYGQSbDqUHBPPMT8Nfh1PxlijLYBB8+fPNeX xiLdc9xE0Rp06XxjCsewG1QOl1JJ6bGjZPxBRivWC2/XmW3+fcHELppw3xS9PMeY usyBfyE5oBKiB4UNhbqmw0bPr5Gsr9DZSTVeyJK+mg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 759D8B6008D; Wed, 14 Feb 2024 10:07:21 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <3f1c2d5a-ba98-4ae5-a7a0-0328b7552113@app.fastmail.com> In-Reply-To: References: <20240213100548.457854-1-arnd@kernel.org> <170790035300.3179441.9169506478575963188.kvalo@kernel.org> Date: Wed, 14 Feb 2024 16:07:00 +0100 From: "Arnd Bergmann" To: "Arend van Spriel" , "Kalle Valo" , "Arnd Bergmann" Cc: "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 Content-Type: text/plain 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. Arnd