From nobody Sun Apr 09 21:35:37 2023 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 4PvllF5lYGz44JVG; Sun, 9 Apr 2023 21:35:37 +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 4PvllF3RQjz4Mv8; Sun, 9 Apr 2023 21:35:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076137; 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=7AOBekUoDF6tGbBn87EOOaAWDzTYeBHb7W9en2vd50k=; b=MkzQhQtgjje6iZjGOwA2tlQMMG7coYUinZupkmW1mncMPzzp35iIwfbtLEYUQ2zcSYbyN4 UOx2ktOahDT2gAAVm0AIh3zgWdGjqjVLAa3oS8tNHqIuE7ThGSbCMs8rEYBiTXBPPwn7Zt kIUMjvVV7BPoKVO79q6TyRHGEu6YdrWpCieMzGheSknUUDPy1qjNm9MlzLvS8XbLW0c+fr Ha2kMrPitTV8JGyQT5habL4ZkZsfJAgdkVdgluIZpsJ387XCtECsefSvoXo26+N9r5gi8f PJoHfZrTdI6DsxYVlexOOLG/YbELHSqsIptUs+3X7MQwjrtYiq0LoiwEGcDxNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076137; 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=7AOBekUoDF6tGbBn87EOOaAWDzTYeBHb7W9en2vd50k=; b=Yg3yyvKp3PVkvXkF0l9QkOm9mgiTZivsBC0K8vD7jRnKjF+AGQlr1viziyCoGAk8qCyqdj Ax9vO9Kjiy4Q/HiMoX7omBKRz6A+p41nt35YTer74dfKTVBSR8Lh4EHLRamXRJF7SL9A3r tduGRprIbnqwW4eKbzHEEI6iAVpFoa2CQ8s6trP2qW3rwl7Hh4uC0IU5td3+ccEHU7mYby azkOtu15GQ9MuJBKE+OE5tPFXBkqCX0zFspsEBwWZkp+1rfSaI/XBxiIR4gFAvU2CXX8Rd bSgyA+dPgwIHvqJBWRejtGHrrgdihR85qR9eRINpvslaRe/s7FvA5+tKnkyu9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681076137; a=rsa-sha256; cv=none; b=aN4zX+bFhxRNTnhkete1WO4iVtFdZ2PwKofod3DoBh3r5/QU5cO7O7z5t9BVTqHg7gqmjF AeBWu7C2iKkUYjsnIysqjHYoYglUQ0xjEqTLOR/zyg1TS0IBLfj3dHDFfshSvuoiXrG7dn 9Lso3gz7cmedByIw8wk14fd0voWTf7ltbIXzZUmEZQAtHA8MbB5KFM3B01zDbXUsaQWNTW cyyOKZhP2FKYDn8Cvah9VImxiqe4DovKk+e1LNnVM3Nhvy/t6ExO44CvAH/Rhinea4cLvq ja6qm1znd1Z9ULnVZvt7sV1mK8PDw3GMFc3jEAX2Srk0PmQ2YoBBJOl1PslHrQ== 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 4PvllF1SCczPcR; Sun, 9 Apr 2023 21:35:37 +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 339LZbTv081920; Sun, 9 Apr 2023 21:35:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339LZbdG081919; Sun, 9 Apr 2023 21:35:37 GMT (envelope-from git) Date: Sun, 9 Apr 2023 21:35:37 GMT Message-Id: <202304092135.339LZbdG081919@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 884bcc57c2f3 - stable/13 - amd64: ansify 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 884bcc57c2f336dee66b05bba5d9ec96ea952f65 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=884bcc57c2f336dee66b05bba5d9ec96ea952f65 commit 884bcc57c2f336dee66b05bba5d9ec96ea952f65 Author: Mateusz Guzik AuthorDate: 2023-02-07 22:52:06 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 15:37:09 +0000 amd64: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit b2c68dc6d9b31de853664ac9277816678d2c9181) --- sys/amd64/amd64/db_disasm.c | 23 +++++------------------ sys/amd64/amd64/machdep.c | 15 ++++----------- sys/amd64/amd64/sys_machdep.c | 8 ++------ 3 files changed, 11 insertions(+), 35 deletions(-) diff --git a/sys/amd64/amd64/db_disasm.c b/sys/amd64/amd64/db_disasm.c index ac71d7e06609..54f7beda1169 100644 --- a/sys/amd64/amd64/db_disasm.c +++ b/sys/amd64/amd64/db_disasm.c @@ -1045,12 +1045,8 @@ static db_addr_t * Read address at location and return updated location. */ static db_addr_t -db_read_address(loc, short_addr, rex, regmodrm, addrp) - db_addr_t loc; - int short_addr; - int rex; - int regmodrm; - struct i_addr * addrp; /* out */ +db_read_address(db_addr_t loc, int short_addr, int rex, int regmodrm, + struct i_addr *addrp) { int mod, rm, sib, index, disp, size, have_sib; @@ -1113,11 +1109,7 @@ db_read_address(loc, short_addr, rex, regmodrm, addrp) } static void -db_print_address(seg, size, rex, addrp) - const char * seg; - int size; - int rex; - struct i_addr * addrp; +db_print_address(const char *seg, int size, int rex, struct i_addr *addrp) { if (addrp->is_reg) { db_printf("%s", db_reg[rex != 0 ? 1 : 0][(size == LONG && (rex & REX_W)) ? QUAD : size][addrp->disp]); @@ -1145,13 +1137,8 @@ db_print_address(seg, size, rex, addrp) * and return updated location. */ static db_addr_t -db_disasm_esc(loc, inst, rex, short_addr, size, seg) - db_addr_t loc; - int inst; - int rex; - int short_addr; - int size; - const char * seg; +db_disasm_esc(db_addr_t loc, int inst, int rex, int short_addr, int size, + const char *seg) { int regmodrm; const struct finst * fp; diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 3c365b5d6e62..c27e15c7e1a4 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -227,8 +227,7 @@ void (*vmm_resume_p)(void); bool efi_boot; static void -cpu_startup(dummy) - void *dummy; +cpu_startup(void *dummy) { uintmax_t memsize; char *sysenv; @@ -591,9 +590,7 @@ DB_SHOW_COMMAND(dbregs, db_show_dbregs) #endif void -sdtossd(sd, ssd) - struct user_segment_descriptor *sd; - struct soft_segment_descriptor *ssd; +sdtossd(struct user_segment_descriptor *sd, struct soft_segment_descriptor *ssd) { ssd->ssd_base = (sd->sd_hibase << 24) | sd->sd_lobase; @@ -607,9 +604,7 @@ sdtossd(sd, ssd) } void -ssdtosd(ssd, sd) - struct soft_segment_descriptor *ssd; - struct user_segment_descriptor *sd; +ssdtosd(struct soft_segment_descriptor *ssd, struct user_segment_descriptor *sd) { sd->sd_lobase = (ssd->ssd_base) & 0xffffff; @@ -625,9 +620,7 @@ ssdtosd(ssd, sd) } void -ssdtosyssd(ssd, sd) - struct soft_segment_descriptor *ssd; - struct system_segment_descriptor *sd; +ssdtosyssd(struct soft_segment_descriptor *ssd, struct system_segment_descriptor *sd) { sd->sd_lobase = (ssd->ssd_base) & 0xffffff; diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c index c10b15896132..9a577e3e0817 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -391,9 +391,7 @@ sysarch(struct thread *td, struct sysarch_args *uap) } int -amd64_set_ioperm(td, uap) - struct thread *td; - struct i386_ioperm_args *uap; +amd64_set_ioperm(struct thread *td, struct i386_ioperm_args *uap) { char *iomap; struct amd64tss *tssp; @@ -448,9 +446,7 @@ amd64_set_ioperm(td, uap) } int -amd64_get_ioperm(td, uap) - struct thread *td; - struct i386_ioperm_args *uap; +amd64_get_ioperm(struct thread *td, struct i386_ioperm_args *uap) { int i, state; char *iomap;