From nobody Sat Jul 25 20:10:45 2026 Received: from smtp.smtpout.orange.fr (smtp-78.smtpout.orange.fr [80.12.242.78]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E6CE2F7F15 for ; Tue, 14 Jul 2026 07:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784013330; cv=none; b=CAM0VjCe7k5Zm4ylGnFiEAcIqVBl89Qb5ROcxO6R498h8w/xXuFvDB08L2FfXjmlUmQ/a9GijWlKkgR834IlvDNJV34HinxZctrSfIy/EyY5dnGWKfvwJ+N8oQm5bquZuB7W/hxQE+XgA75bntKLRKWmpUCP6qxFQ1N103dwOyY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784013330; c=relaxed/simple; bh=8IFavZNqMx+KPefxR+v2kQGGi+5On0u6SVSae6DGdO8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JYZV0ew0zVLqB6r4uswYvQDpLtAYwBPM01tzdsAoSrCFK33IWU7m4N0fBLOLmu9GR5p7c7sXZ/tapFUOfsZotgtwYIMzI3qrCnS54DeW1mxXOlIOu96GN9JFZE/WPu5cCv4sNatrpqIFsiBlApuYLL1FP/2bAGWfPH3gkSApECI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=SHhVFq1d; arc=none smtp.client-ip=80.12.242.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="SHhVFq1d" Received: from device-97.home ([10.65.86.66]) by smtp.orange.fr with ESMTP id jXLIw4eumHyPqjXLIwbIOb; Tue, 14 Jul 2026 09:14:12 +0200 Received: from device-97.home ([IPv6:2a01:cb10:785:b00:26fb:aefb:6cd2:db0e]) by smtp.orange.fr with ESMTPSA id jXLAwudi5Dc2NjXLAwN20p; Tue, 14 Jul 2026 09:14:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1784013245; bh=f7yHgKxBlZE3sw5vpiwyp79xhFrzLpHFWzdnwoYHduM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=SHhVFq1dD33m9xnj8gMep3IBP2MqrlNKpyI7HGpArTUHhSUaVhFgoLWhf/l4V25le VMVKItQU8Yseiri57z6bBlaq+50YrS3iutHlFfF9OykbGHU5HXopSNiKklOMnqBGRi Zd3dsQHlDT5zUs5mS37m1uqg+XN68mKWpZWAfpxQgDrt6tOSsBLZfiov3uwhw84pvK Tbgb3D3nbR8sSwsFMhodf9478FNp2BQgZr31ev7RPyQa+q8YXLevBvwjoXIIq8Y3n6 UBi8Af27WAbq1nwQkyYLNZM+mJQ/7woxpvtz5pafWT5td+h0zyFpcWMlJd+yYaGp3O ynHq8YJ3Wh5yg== X-ME-Helo: device-97.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 14 Jul 2026 09:14:05 +0200 X-ME-IP: 2a01:cb10:785:b00:26fb:aefb:6cd2:db0e From: Christophe JAILLET To: Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-wireless@vger.kernel.org Subject: [PATCH] wifi: cfg80211: Constify struct cfg80211_ops Date: Tue, 14 Jul 2026 09:14:00 +0200 Message-ID: <5aace954b6ef5c42017b83a1bffb859618e9498a.1784013180.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 'struct cfg80211_ops' is not modified in this driver. Constifying this structure moves some data to a read-only section, so increases overall security, especially when the structure holds some function pointers. On a x86_64, with allmodconfig, as an example: Before: =3D=3D=3D=3D=3D=3D text data bss dec hex filename 143726 34579 192 178497 2b941 drivers/net/wireless/ath/ath6kl/cfg= 80211.o After: =3D=3D=3D=3D=3D text data bss dec hex filename 144814 33491 192 178497 2b941 drivers/net/wireless/ath/ath6kl/cfg= 80211.o Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wirel= ess/ath/ath6kl/cfg80211.c index cc0f2c45fc3a..ecde91159b54 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -3437,7 +3437,7 @@ ath6kl_mgmt_stypes[NUM_NL80211_IFTYPES] =3D { }, }; =20 -static struct cfg80211_ops ath6kl_cfg80211_ops =3D { +static const struct cfg80211_ops ath6kl_cfg80211_ops =3D { .add_virtual_intf =3D ath6kl_cfg80211_add_iface, .del_virtual_intf =3D ath6kl_cfg80211_del_iface, .change_virtual_intf =3D ath6kl_cfg80211_change_iface, --=20 2.55.0