From nobody Tue Sep 27 20:54:41 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4McX1Z19rBz4cvfs; Tue, 27 Sep 2022 20:54:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4McX1Z0dPYz4J3K; Tue, 27 Sep 2022 20:54:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664312082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OB0P9ASBj1KpCGEmnHEta2j79+WQtcHvDtynavtUxug=; b=tS9NPNOlGGLYxc6c7ofET3FtXf04fmfzPSuRfpyxDIm142mLpLJtzV19IJ/YDfMsnQ8drb QlXwXQfTBo72DDDEMbjnfZ0gBfZ8cV+IB9Q9ObIhS37l25D9s0tVpmmJWuxSz7XyPS4B3q GylzA5+M8PJsbjCLRzvFRQdMh5MUa0yXy6Qwy+ZqhjqGIRo/QYrYjImQvxDtplDqA7QBse SifC3oOQ4KvqVE7CN71RuwExiRZHHajCxOjux5cv/GWcJ1phExIDsvZnBRIVT71n4CSiIO W1M6Fjc3hZp/0zs0BxSVLZNCKPSArcGQoxUhONy3k7eRE6K/iCngelwjRUuvSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4McX1Y6cmSzFdk; Tue, 27 Sep 2022 20:54:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28RKsfSx036823; Tue, 27 Sep 2022 20:54:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28RKsf2k036822; Tue, 27 Sep 2022 20:54:41 GMT (envelope-from git) Date: Tue, 27 Sep 2022 20:54:41 GMT Message-Id: <202209272054.28RKsf2k036822@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 26d786331bf8 - main - usb: musb_otg_allwinner: de-constify bus_space_tags List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26d786331bf85c172318badf28b0a5094ad25022 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664312082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OB0P9ASBj1KpCGEmnHEta2j79+WQtcHvDtynavtUxug=; b=mnbs20L8AGK2f4VOY07lFW/GKTk2g9Zb8Hsp1YDMfSjhwTXq+1TufQ0wJ4r2IbtQi8zZfB b38/QKkNlwAuUV2HhHK9miGZX1hJF8jZe31I2oh++GxoE5Q7ulDkqoUDdFHLWPitBuh8FX RAN1MrVF4itLUvJ00XjSZnxRHQSmz7vNp+1deTSHxxdiURnuJr9QTH39Kz7GzkeHiLtoW7 oa7ryCGAvuT9051YB90+1c1/mI2wW5O9nUVZD5k4ZeVHRrv7v3PghtB8fNE07/9FsqEDKl T85sAyiIa6rKafjVNADSd7kDUY2LXvKhjNLh0n/alDiQaY+O08Yqmv1H1WvzMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664312082; a=rsa-sha256; cv=none; b=fjmnKoql1SJvfrt0ACorVZYxat3bSeDntz3eCNifBEitq8XoLI0HGKKrTCE7Ku3ob0oi/q lh0a3ZwpbBAuN8J/TnWCq3Om83YqI0KODlIyRVQ6uR8O0sHl1C/bnR/HnAqhRf2tXIwvHT 8KpysozPUyCNLY1m2aFhWmghs8mNVnTpjq5eISb6nX3EwITZ0QgazpY8xMVoregMAM8BnR pq6JuZtjoGWhkBMwaGU8jlFlJ3QXWUiZ/hDzCRyb0L9PvE1rkn0j/BbuE4Z8URfiEnin46 GLVNgFBBLyqsViRzft/uqceW0kqDAgooLh2tfs5I16YwLCIgaZYgy1GA2qzInA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=26d786331bf85c172318badf28b0a5094ad25022 commit 26d786331bf85c172318badf28b0a5094ad25022 Author: Mitchell Horne AuthorDate: 2022-09-27 16:18:42 +0000 Commit: Kyle Evans CommitDate: 2022-09-27 20:54:00 +0000 usb: musb_otg_allwinner: de-constify bus_space_tags The SAN interceptors simply take a bus_space_tag_t, so we're dropping qualifiers here. const semantics with a ptr typedef mean we'd have to drop or change the bus_space_tag_t abstraction used in the SAN sanitizers in order to make a compatible change there, which likely isn't worth it. Reviewed by: andrew, markj Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D36764 --- sys/dev/usb/controller/musb_otg_allwinner.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/sys/dev/usb/controller/musb_otg_allwinner.c b/sys/dev/usb/controller/musb_otg_allwinner.c index 827cf202df5f..5408574f8164 100644 --- a/sys/dev/usb/controller/musb_otg_allwinner.c +++ b/sys/dev/usb/controller/musb_otg_allwinner.c @@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$"); #include #include #include + #include #include @@ -245,7 +246,7 @@ awusbdrd_filt(bus_size_t o) static uint8_t awusbdrd_bs_r_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o) { - const struct bus_space *bs = t; + struct bus_space *bs = t; switch (o) { case MUSB2_REG_HWVERS: @@ -273,7 +274,7 @@ awusbdrd_bs_r_1_noconf(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o) static uint16_t awusbdrd_bs_r_2(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o) { - const struct bus_space *bs = t; + struct bus_space *bs = t; if (awusbdrd_filt(o) != 0) return (0); @@ -284,7 +285,7 @@ static void awusbdrd_bs_w_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o, uint8_t v) { - const struct bus_space *bs = t; + struct bus_space *bs = t; if (awusbdrd_filt(o) != 0) return; @@ -296,7 +297,7 @@ static void awusbdrd_bs_w_2(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o, uint16_t v) { - const struct bus_space *bs = t; + struct bus_space *bs = t; if (awusbdrd_filt(o) != 0) return; @@ -308,7 +309,7 @@ static void awusbdrd_bs_rm_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o, uint8_t *d, bus_size_t c) { - const struct bus_space *bs = t; + struct bus_space *bs = t; bus_space_read_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c); } @@ -317,7 +318,7 @@ static void awusbdrd_bs_rm_4(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o, uint32_t *d, bus_size_t c) { - const struct bus_space *bs = t; + struct bus_space *bs = t; bus_space_read_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c); } @@ -326,7 +327,7 @@ static void awusbdrd_bs_wm_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o, const uint8_t *d, bus_size_t c) { - const struct bus_space *bs = t; + struct bus_space *bs = t; if (awusbdrd_filt(o) != 0) return; @@ -338,7 +339,7 @@ static void awusbdrd_bs_wm_4(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o, const uint32_t *d, bus_size_t c) { - const struct bus_space *bs = t; + struct bus_space *bs = t; if (awusbdrd_filt(o) != 0) return;