From nobody Tue Feb 07 22:53:14 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 4PBJLy70w9z3npxJ; Tue, 7 Feb 2023 22:53:14 +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 4PBJLy5Hm6z3n9v; Tue, 7 Feb 2023 22:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675810394; 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=G/3cGfIVI4w/V8z2h0xfWTDG4O/6mhMO5siTS8kdeSk=; b=wgf5W3T9jvRv/jyJ2eKZSY8eVXxDyt92La3VItHUZv2Gm+5lhOToNEifjgAf5KVYOisZrW UzFM7Jd+lBbv/kccpLKWS/rijjHrDvFrFjywPCOnCCkC5K21AF+5PsJulIz5OMplHu+xRb iQltkPPbeqF/CLOBt+cMFmjQxMkg6l8+dcD8RfJEQoUz0i47poG5vihGf79UV+/uQJmawI XyoyweF6DZERK7OkStnFk3I8Wpcaqa8NrCKdGQMVgwqnqGEiG7s9yqrDu9Q9vu56bHZ+nS ZjFxhtd+ErDwvzi3g4eqWekP75MUewboefHOmR0Fzgp9xdDjnYloazeC2HxXaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675810394; 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=G/3cGfIVI4w/V8z2h0xfWTDG4O/6mhMO5siTS8kdeSk=; b=ZW+pVNnrJBys3Co844rpjqBgQHiIBgQUHnHVhgEShRhiNl1/MtecQD4j1B0EO49OFtX2Kq VdU8CDzaXbaqAC53EKXEnb0lUBDMXjX7kUqEdq69KxPryG1GA33IJo/CUrdIPLy04geowE 657nnSNYRgwwxDB521+sScxcpuyBpyETklR1ak8uN9tHcsAkgVreKHnMXI4EcVLQH9JSa/ +bcXLDEvbNFkKJon0mIsmLoUom2TlTzQZ80WrYBlpcawKcO1sH57WraqI2hbaMoQd+h25t Wlg1uSjBOCTK57834bz2GQ/gflFGQfYAXOU+5yocM/625shXQTijUOPLNVxZkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675810394; a=rsa-sha256; cv=none; b=XiTClKiCdf0M+Qb4rV5FyaVo0VYxTPNo9fgjJky+FQgY4YkHprtzXl9exmhlvvKcdts8XW cHi8jmT7Yk2Ua6Ngq4nbb6i6hS8BbP1UH4JegLQHGRN8YS2P0wCpvyvZYUqvokE6kaBgPO 6HRk4F920sM7EyU2wLfXJzeFJgd1YOHGRUfirRsHcVwaPqkYB3nk0YYOnE+sX+N4B3i0jU VuIS9jGuMGuce7diWJ5c2pIzpm4UrIKE74Vv6mXqQoBd4PUaP+9yvC8IzKlur0jlK6nKM3 /D7CQOUqkR9J74M5jtKmnvea5+PvQaGdto4KnlQQfcenfqts+ESTGKBPScHF4A== 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 4PBJLy4Ll5zZBH; Tue, 7 Feb 2023 22:53:14 +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 317MrE9d065744; Tue, 7 Feb 2023 22:53:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 317MrEHR065743; Tue, 7 Feb 2023 22:53:14 GMT (envelope-from git) Date: Tue, 7 Feb 2023 22:53:14 GMT Message-Id: <202302072253.317MrEHR065743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: b2c68dc6d9b3 - main - 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2c68dc6d9b31de853664ac9277816678d2c9181 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b2c68dc6d9b31de853664ac9277816678d2c9181 commit b2c68dc6d9b31de853664ac9277816678d2c9181 Author: Mateusz Guzik AuthorDate: 2023-02-07 22:52:06 +0000 Commit: Mateusz Guzik CommitDate: 2023-02-07 22:52:06 +0000 amd64: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") --- 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 a14c3e408541..f33f2c6509f0 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -220,8 +220,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; @@ -584,9 +583,7 @@ DB_SHOW_COMMAND_FLAGS(dbregs, db_show_dbregs, DB_CMD_MEMSAFE) #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; @@ -600,9 +597,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; @@ -618,9 +613,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 05c90f57ec6c..a3716a354448 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; @@ -447,9 +445,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;