Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp429769rdh; Wed, 14 Feb 2024 00:46:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXyvO3DVReRF5t+j0LVxcni92wlYwsbmbtyDpzOU6eqadoFcfnLehxKhqpozvGg0xyNDb8Hk1wL8cyTp0p/ixcTUdkxU1WxPcI8I6b0Zg== X-Google-Smtp-Source: AGHT+IE0Km0SKGvGs3mHh66f5RRV+wTwKRWP6i0McmUlJJKRvam9grCouYJremUWKLZH1nqkI5GA X-Received: by 2002:a05:6808:118a:b0:3c0:3c98:f8d1 with SMTP id j10-20020a056808118a00b003c03c98f8d1mr2082020oil.45.1707900367428; Wed, 14 Feb 2024 00:46:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707900367; cv=pass; d=google.com; s=arc-20160816; b=xhtdRSERsIJUt7mrfuEi8zTLJww/y1ggeOCaAdaHCUVbtaabxDWUwC4dn8jDN11b9F 7NT09pCfTDr6pazILujOryS/dzwTcTl9DfB6NbCSXfRd+AUQzaC8AFZ4W16bOqfKuI6i vs9TVQLoN0X8ZRZxNmYppypeZkq17bHZdKcLT0CAAUAxdfoXPMo8z1SRJ9ydGlMTEiBR J2eMfcslGBGIplFXGgHh8QIfhzkoBxcDDBf4+fF2ySTb4wlsCOSk37zgjMExEV4IFzhO FVexJEH2vwdEksnqU76XTS1GqUFuXJkXS1rqzxRKtVDRfH6Ug62cPCtnIM8hZkhSrFYJ lKIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=d68Y9uGCzryfGU7Gk2SG/H45VnozEW9OFygV72LeOqA=; fh=O9UEp1kiypRs7gIC6stSPA3ezBZ4kWn+L+y8RcotEF0=; b=PbPIO68js//DZJxV4r1KhL0qg5ltwZF8KGCceW00eHkwx5eYqGSAWxIXZKd3WUl7XF oHH8RJBbCedH7C8HpQoelmRBN2J8jN8IE4u5hrWG8Bn5oOIlml7rj+Seza+YW4fRryL4 ml+LitIVwvLNmeADbUKCOKjnKawmWA+WMs3tuca1wo/TPvNUCFo4rFhG1MR+Psdxqxgz 7ZXhNGtAOljsn8Ec4ke5O8YL9zCkzZkLbp672AnhCRuC6DMP82HH04YjO6aI1co+hYhS DKfaOe5XdRwNiAHgKSVUcy2Q/eCBF4ZgK2231ecP3pX3+MUVgCAhW0Ix6iNSyJBOhYgJ xGug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eEjFvACH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64881-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; AJvYcCVjnAvr7ea7RlTTB5nZtNiE+jhlv/kWGALkzNZouWWh8TSoVoJDu3ITrN6d+1+j8KRvdjgCfeE/di3I9r7qtR80CVPUGN4sBu/BaBpOtQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp14-20020a05622a1b8e00b0042c68d52102si5392403qtb.334.2024.02.14.00.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 00:46:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eEjFvACH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64881-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 300591C20AD2 for ; Wed, 14 Feb 2024 08:46:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E679E79F4; Wed, 14 Feb 2024 08:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eEjFvACH" 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 0C7CF79C0; Wed, 14 Feb 2024 08:45:58 +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=1707900359; cv=none; b=UMCXG+EvKxUzdIUYAqWhJyPKLqkvO60TkQB1fP5BzRklrtPoKsz3HXEYReAIHZq+6ga/ge3/B0rAvoJZw5I/kyyJTwkwBxVAMvSW2sx1EBhHqQxsEeoEaSTPRtchtMO9iWdUd34mfDn05s2HU1ThxCU0dcCp7uJj7Nkm9gIvwRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707900359; c=relaxed/simple; bh=80PMX4RRZXC/T1+Nh/TK7dabMmwW48VhI43ZD1PxROI=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=W1gi4zroZ47OzHlhBbI8xzXZSAf9nsYFgI5E2qNyg3EOByHUiWSScsJM+pe0MnpimcK0DEWOuIcwW2dsKK+TfnkFrid0RpA9KpQkx7fhSYVrtHq8ZA1VW9yIzOvC1oMucm/mtdXV9chmkjhLlEjT0FaeaRBuJeyn7YMlQxSPKWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eEjFvACH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B443C433F1; Wed, 14 Feb 2024 08:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707900358; bh=80PMX4RRZXC/T1+Nh/TK7dabMmwW48VhI43ZD1PxROI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=eEjFvACHOyLYtBiWnd6/VT8fR7wf5ctAfkoEf5UPHRDFIa8aDerZZ97cKcPsCKLXC ih1N47S+tp5348Cq9IAt0NAboF7UAV+3fwRF7dZMnZvvRPvbZZMyOaIHy0an58Xvq0 NJmqHMWI8KsznLVpVEYUI3fVijSVc07wBAJp1qXioZoWLpscEGVxhXfLhAnpn+ZQ5s H/5+3XI/30y5orQ9aL4BW9NNYyGoBDTS/B61bYyi7y42Dltozqrk/mfIo7NfES6v/e eIT1Qw5PqhNg4SBOVCFVv6oqycnj2Z2OgdQkEN8mM+y7Hcj0cbUOQUKkotWUzHUITT +bJ7QF9JYy+eQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] brcmsmac: avoid function pointer casts From: Kalle Valo In-Reply-To: <20240213100548.457854-1-arnd@kernel.org> References: <20240213100548.457854-1-arnd@kernel.org> To: Arnd Bergmann Cc: Arend van Spriel , Nathan Chancellor , Greg Kroah-Hartman , Pieter-Paul Giesberts , Arnd Bergmann , 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 User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170790035300.3179441.9169506478575963188.kvalo@kernel.org> Date: Wed, 14 Feb 2024 08:45:55 +0000 (UTC) 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? -- https://patchwork.kernel.org/project/linux-wireless/patch/20240213100548.457854-1-arnd@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches