From nobody Tue Jul 8 23:04:47 2025 X-Original-To: dev-commits-src-main@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 4bcGsC6JVDz60hH0; Tue, 08 Jul 2025 23:04:47 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bcGsC5MGjz49Lf; Tue, 08 Jul 2025 23:04:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752015887; 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=Fn9u3oyJAi59g1fwTTP3fXWgjEbuYAyvGIw1DAqUJZo=; b=jJ7xDhG2ObQwBhNtYh8Lu/jx/1ilRoFQ1pZ2L18s+y65ONe0zDGCddxWbSFD5A1TYxPdMY f+C0NdbG+zj2ObKPp2XHR9YeQau12Y+Nju4vZA2oXo0uv/I/By2eugV/3t9vQUBNm6mNsa sQD7lWKSY+sa+ot/j/fb5nPFkk3CZSrGFO+M8O2wNaph/hri5L54bcIarN2C4rcQfTfa7y 9T3jTaFjezZZ+eF9q+uZEFjiHlz9OGPo6HGfeW69yRUme9auk0J/3CkTA0EIO1KiRyVTOq QdUnvq7IhWSriVNlbQWp5xUyGVjrC0/6q0pIHisLghgLW2+wlwXRYSt6LcUtGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752015887; 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=Fn9u3oyJAi59g1fwTTP3fXWgjEbuYAyvGIw1DAqUJZo=; b=Dt4GcOw7dgTg+TSH4V4OY0sdaAlwTqfk/il6U3PUP6RZVuppJG2rv5kd7/bmYDRea9CuU9 OLSEEHbxcOP6fdpHp0kQB+Sx6w/Ki0VsOKKo85RAYU/o5h+UkLIQiq77P3DLf7JhDoL2xR NAcE4qk5JP/UYXw/3nbYwzU7PilJH13QSNUsjkVx1whDXRMnLQuvPc/j8q0/SC2xNA7h0R LmphPxsR6I/gvIXu81DUotLySyY7/EkNDEEwJ6KTyvSJFbjZqKlGW8mBAPBjNefvU+6UnF 7trKU8i0KFaL7XjD6+e4HuwbJcdNknqXWWPsFoUxs3p+4NbQSlS0H6XU799EGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752015887; a=rsa-sha256; cv=none; b=Uwof5j44ldHu7Uo/AfOd08vyIfDpXAaAVVkDwvF96OmPCYbCqNH8pXdt1det1f7eVK9GvN owIPTmxxkkLxByno+Qvz4LEt0TVdPsLxaMUr9Hu2KZ2Ci2iQrE8ZLVbId7N444bfMuPwvb GnYMcPY2AqIVPlopIUF2G2CMGRGsRog/3lghE7moRu+xsUXWsjwYehZJBJuyZnlph8f6v9 IG4W2bdTDb+heCl9V3kjg3X3DdD0cWvTL4mfGouozzjOGhB9hNUsz4UGPi0GlsbLGVu9ku N7msnKzAxEC+xwkz5T7fVwdR4I+FZYeHpUKV5Xe3cSUWWqHJ37THot8gKBdARA== 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 4bcGsC3t8szx8l; Tue, 08 Jul 2025 23:04:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 568N4ldq035556; Tue, 8 Jul 2025 23:04:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 568N4lii035553; Tue, 8 Jul 2025 23:04:47 GMT (envelope-from git) Date: Tue, 8 Jul 2025 23:04:47 GMT Message-Id: <202507082304.568N4lii035553@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0849d876b1ac - main - cam/mmc: style(9) pass: put { starting functions on its own line List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0849d876b1ac414e55643e408464be63bc9b1a71 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0849d876b1ac414e55643e408464be63bc9b1a71 commit 0849d876b1ac414e55643e408464be63bc9b1a71 Author: Warner Losh AuthorDate: 2025-07-08 16:01:56 +0000 Commit: Warner Losh CommitDate: 2025-07-08 22:52:04 +0000 cam/mmc: style(9) pass: put { starting functions on its own line Sponsored by: Netflix --- sys/cam/mmc/mmc_da.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/sys/cam/mmc/mmc_da.c b/sys/cam/mmc/mmc_da.c index 3815561898bd..f7c478076144 100644 --- a/sys/cam/mmc/mmc_da.c +++ b/sys/cam/mmc/mmc_da.c @@ -789,7 +789,8 @@ sddaregister(struct cam_periph *periph, void *arg) static int mmc_exec_app_cmd(struct cam_periph *periph, union ccb *ccb, - struct mmc_command *cmd) { + struct mmc_command *cmd) +{ int err; /* Send APP_CMD first */ @@ -843,7 +844,8 @@ mmc_exec_app_cmd(struct cam_periph *periph, union ccb *ccb, } static int -mmc_app_get_scr(struct cam_periph *periph, union ccb *ccb, uint32_t *rawscr) { +mmc_app_get_scr(struct cam_periph *periph, union ccb *ccb, uint32_t *rawscr) +{ int err; struct mmc_command cmd; struct mmc_data d; @@ -869,7 +871,8 @@ mmc_app_get_scr(struct cam_periph *periph, union ccb *ccb, uint32_t *rawscr) { static int mmc_send_ext_csd(struct cam_periph *periph, union ccb *ccb, - uint8_t *rawextcsd, size_t buf_len) { + uint8_t *rawextcsd, size_t buf_len) +{ int err; struct mmc_data d; @@ -966,14 +969,16 @@ mmc_switch(struct cam_periph *periph, union ccb *ccb, } static uint32_t -mmc_get_spec_vers(struct cam_periph *periph) { +mmc_get_spec_vers(struct cam_periph *periph) +{ struct sdda_softc *softc = (struct sdda_softc *)periph->softc; return (softc->csd.spec_vers); } static uint64_t -mmc_get_media_size(struct cam_periph *periph) { +mmc_get_media_size(struct cam_periph *periph) +{ struct sdda_softc *softc = (struct sdda_softc *)periph->softc; return (softc->mediasize); @@ -992,7 +997,8 @@ mmc_get_cmd6_timeout(struct cam_periph *periph) static int mmc_sd_switch(struct cam_periph *periph, union ccb *ccb, uint8_t mode, uint8_t grp, uint8_t value, - uint8_t *res) { + uint8_t *res) +{ struct mmc_data mmc_d; uint32_t arg; int err; @@ -1069,7 +1075,8 @@ mmc_set_timing(struct cam_periph *periph, } static void -sdda_start_init_task(void *context, int pending) { +sdda_start_init_task(void *context, int pending) +{ union ccb *new_ccb; struct cam_periph *periph; @@ -1088,7 +1095,8 @@ sdda_start_init_task(void *context, int pending) { } static void -sdda_set_bus_width(struct cam_periph *periph, union ccb *ccb, int width) { +sdda_set_bus_width(struct cam_periph *periph, union ccb *ccb, int width) +{ struct sdda_softc *softc = (struct sdda_softc *)periph->softc; struct mmc_params *mmcp = &periph->path->device->mmc_ident_data; int err;