Message ID | 2023122048-dormitory-headboard-e248@gregkh |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-6504-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2475757dyi; Tue, 19 Dec 2023 23:40:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzH0WsdeEyUe3bqEP8bh/Adu3Y2dlTBdNPQOXHD5M87hprXEkb9Bd3SSJijnQWi91lgSzZ X-Received: by 2002:a05:6a21:778b:b0:193:de4a:84ad with SMTP id bd11-20020a056a21778b00b00193de4a84admr10140788pzc.48.1703058028268; Tue, 19 Dec 2023 23:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703058028; cv=none; d=google.com; s=arc-20160816; b=IwpGqHa9O2Sohdh94FEfDVptLKMBy/sRSbsPFqIe+RRY3BddTQparY8Vd1qqN2db4s FhbIgJS/xU3oxK+uYowu5D3MtrurzQ3yNOMEO+xDywwAFjDmYY46Av23BtwUqnwQxMrR v1p7rp3LAv+J9nz+9vLg1NTB5B8OfJLs2gZ/XHtD42wY/GeeugJKVJ4gnYCTtBWP7ssY 7xSt7XesYQ4qFz/nyNmmQZPqOEXD84JYFcQWOBc3kXWsxniDLUWn7WI/pAzXuF4x77m/ 3Cp60g2e1tUxFUm0J3qbiGHMmVw6CDhmxBsKoUhBX/kznI5PImk5N9uRn4JdNrsE/XXB cRZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:lines:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qqSReYMX+cwd2MoA6WnvbOrhQiHnrrRzZjd5+P7osTk=; fh=V6EI65/7Us4aYZ0HWydbpj0C6On27xDv541s2UP4+U4=; b=H7W19Va0FI+s6zKkG4Cy1Lq6swKtnxiUE1Fb81wbB5pWo2P0VUTTqKNdWxXg82aWPn 4mFnQVECBpgJ5HQRdewbhkfv5WKFZDlkiAxxnggaU/cNsiK84bE4zL0BaEd4BpfrmlQJ Dsqm3O7Ek3SKExAeml0HkP1rSFVp5dJxh+Kq3MKH9wen3BY6mTODWJLOHEep7jr6wx5W 89tmwAN+ZFermpHnRsABOzMasb1oSzggCyymnr84IQbOc+ZOpQ4W6Clfk3oYdcyZqF3I XEsV3XabDe8vox6rimqwK3Kxqo8FZrKtlqC9gZ5mdJGJOKIMbT+YtjuPjxmJSy9MhyQa rmkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H5xI8sLy; spf=pass (google.com: domain of linux-kernel+bounces-6504-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6504-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z7-20020a17090ad78700b0028bbf241235si2195865pju.73.2023.12.19.23.40.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 23:40:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6504-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H5xI8sLy; spf=pass (google.com: domain of linux-kernel+bounces-6504-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6504-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7F7F2282A06 for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 07:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 687C8210E0; Wed, 20 Dec 2023 07:39:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="H5xI8sLy" X-Original-To: linux-kernel@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 A9D0D208D6; Wed, 20 Dec 2023 07:39:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD808C433C8; Wed, 20 Dec 2023 07:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703057941; bh=ZB1Fpehfxz1OYRnlaoOsVM8LmfGkRvS/BbeYZcRWryA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H5xI8sLyoEomG1i907Zb/EZTQKW2N10h2n7VfSK283UUP4iEWXnzXDe/5fF0RdAnm +yYeAk3x4ARMHbhtjBq2bklKs/lerpAhOAJ35LI77OkC3JkWtdhEBGvz72w64MDS8Y YaS/8hfMJamOWAOd4nlEtulA1Ms1I3EpZy4O/jr8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-input@vger.kernel.org Subject: [PATCH 3/3] HID: bpf: make bus_type const in struct hid_bpf_ops Date: Wed, 20 Dec 2023 08:38:48 +0100 Message-ID: <2023122048-dormitory-headboard-e248@gregkh> X-Mailer: git-send-email 2.43.0 In-Reply-To: <2023122045-pellet-eggbeater-8d2f@gregkh> References: <2023122045-pellet-eggbeater-8d2f@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Lines: 30 X-Developer-Signature: v=1; a=openpgp-sha256; l=1053; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZB1Fpehfxz1OYRnlaoOsVM8LmfGkRvS/BbeYZcRWryA=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlNszj7DiSeDZdW1jI+pHBLNLKFkf9+w6+t958JM1p3R cRmK3zqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInYrGRYMPXCammvJfOO/23s SpjFdFBLa/+6MIYFm5+UXH+45pB7Q5t1newpycf3C3XjAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785785775160158704 X-GMAIL-MSGID: 1785785775160158704 |
Series |
[1/3] HID: make hid_bus_type const
|
|
Commit Message
Greg KH
Dec. 20, 2023, 7:38 a.m. UTC
The struct bus_type pointer in hid_bpf_ops just passes the pointer to
the driver core, and the driver core can handle, and expects, a constant
pointer, so also make the pointer constant in hid_bpf_ops.
Part of the process of moving all usages of struct bus_type to be
constant to move them all to read-only memory.
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
include/linux/hid_bpf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/hid_bpf.h b/include/linux/hid_bpf.h index e9afb61e6ee0..840cd254172d 100644 --- a/include/linux/hid_bpf.h +++ b/include/linux/hid_bpf.h @@ -115,7 +115,7 @@ struct hid_bpf_ops { size_t len, enum hid_report_type rtype, enum hid_class_request reqtype); struct module *owner; - struct bus_type *bus_type; + const struct bus_type *bus_type; }; extern struct hid_bpf_ops *hid_bpf_ops;