From nobody Sun Apr 09 21:35:49 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 4PvllW4G1Tz44JmF; Sun, 9 Apr 2023 21:35:51 +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 4PvllV62wSz4N33; Sun, 9 Apr 2023 21:35:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076151; 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=v8/AJdDDipHWw0HhFV1If8bufDo/U2cdFtotVML+0GI=; b=wa+GFbxdk295fkCzNYjvFdlBPTJ6MkYEkcsgoi4PD34GnV3/7Kinq6Rq4bgr3z81eWUm6P NQ6F/tHiN9p/myG4Ehs9kFvHDk4CbqdJsR69NZXmSIZRZzwcXJ1SkFvtJRxl8BY6z2eI1p Q/9L74xmoBJz1WlwPttEUVnZ8BvfcOdV21BIp2tZby09ft2E1wmCFZ0hAAGl7ZQ4K2U5mQ pMY192BkXpGcIh87OLpoaVV+cU5AEEU/EiY7X3uSXMB0JkKhcp2KGHkykZbSG86qAwMGsw Oq6WoG7Zw2pCdsnT1MzL0s2krtoqm+GD/fB73iA++fsZNrhpaBMhg7KCt6VJJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076151; 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=v8/AJdDDipHWw0HhFV1If8bufDo/U2cdFtotVML+0GI=; b=rwEkfZZizBT4am3AY62DDzg/3k9lCAiuoE/OXA6FI9q5OyefTN/0nL37tFRie6tZVFqjhH HcJV7WLNK1pDHe9apQKRq7GHT/q95EzgMfrlsRMqCrs+LALILekCdIEsq9ugnrhC9E6T+f tmGaiAgrde+nsgNVlRwUkm6dTG4rqpkcaH7dxhEa3EUrpVzYa7C0f81DBtuNRSllxOGTwr +V/VQIq9g6BpC3p7PAus28Wuy293tXoBhax3xH1sTNkKG9qPkzPLdAL+TsAfHnZCrAEj1b Htyl4cRM2dyDYgdunugRhQzwMXEHsTAmM6tZ0BN8VrUrrD+7jI7heoptTBA/Jg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681076151; a=rsa-sha256; cv=none; b=Z3uAz8ToDDRObIUHPkKq6TeG/ouTXRdPaYnChIJN6ztuWG0wKmOv8pWStstcTcO1eQ19au MJMGwjUwURfji9OuRY200MKw7WMYcJSebuZu2st1E/clp+y6v4xmtVYQJ0sIQ4RLX+wSDQ uBK5CI1pvJ7WWvNqWkn1bXCgVAdr4bCnNAKNOp54/ryxbQxx8Qh3xP8eklJ6tvvzdr3D0f Ep54etyP3lBuUz9I1IH1i32lACTzVHLxbw+20Zk7YO+cNpqAC16pImf58j78NxKA/deJpn YuwqNw+XC3wAR2sHrMze+p9SWBPyvkI6+hA+dalOed2WIt+cBE7qpSo0npNf5w== 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 4PvllT4zrQzPhL; Sun, 9 Apr 2023 21:35:49 +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 339LZnR5082144; Sun, 9 Apr 2023 21:35:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339LZnqd082143; Sun, 9 Apr 2023 21:35:49 GMT (envelope-from git) Date: Sun, 9 Apr 2023 21:35:49 GMT Message-Id: <202304092135.339LZnqd082143@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: e581f57b6ada - stable/13 - i386: 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: e581f57b6ada649744fbb8d9224b099f5aadb282 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e581f57b6ada649744fbb8d9224b099f5aadb282 commit e581f57b6ada649744fbb8d9224b099f5aadb282 Author: Dmitry Chagin AuthorDate: 2023-03-25 20:21:03 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 15:48:07 +0000 i386: ansify Reported by: clang 15 (cherry picked from commit f0fe68a965a2f0b42c296fef2c756f168a57b326) --- sys/i386/i386/db_disasm.c | 20 +++++--------------- sys/i386/i386/db_trace.c | 12 +++--------- sys/i386/i386/in_cksum_machdep.c | 5 +---- sys/i386/i386/machdep.c | 7 ++----- sys/i386/i386/sys_machdep.c | 8 ++------ 5 files changed, 13 insertions(+), 39 deletions(-) diff --git a/sys/i386/i386/db_disasm.c b/sys/i386/i386/db_disasm.c index 2d5a65fe31d3..46b0a1b8a895 100644 --- a/sys/i386/i386/db_disasm.c +++ b/sys/i386/i386/db_disasm.c @@ -938,11 +938,8 @@ static db_addr_t * Read address at location and return updated location. */ static db_addr_t -db_read_address(loc, short_addr, regmodrm, addrp) - db_addr_t loc; - int short_addr; - int regmodrm; - struct i_addr * addrp; /* out */ +db_read_address(db_addr_t loc, int short_addr, int regmodrm, + struct i_addr *addrp) { int mod, rm, sib, index, disp; @@ -1026,10 +1023,7 @@ db_read_address(loc, short_addr, regmodrm, addrp) } static void -db_print_address(seg, size, addrp) - const char * seg; - int size; - struct i_addr * addrp; +db_print_address(const char *seg, int size, struct i_addr *addrp) { if (addrp->is_reg) { db_printf("%s", db_reg[size][addrp->disp]); @@ -1059,12 +1053,8 @@ db_print_address(seg, size, addrp) * and return updated location. */ static db_addr_t -db_disasm_esc(loc, inst, short_addr, size, seg) - db_addr_t loc; - int inst; - int short_addr; - int size; - const char * seg; +db_disasm_esc(db_addr_t loc, int inst, int short_addr, int size, + const char *seg) { int regmodrm; const struct finst * fp; diff --git a/sys/i386/i386/db_trace.c b/sys/i386/i386/db_trace.c index 47057906fa58..cc386cb88a8c 100644 --- a/sys/i386/i386/db_trace.c +++ b/sys/i386/i386/db_trace.c @@ -200,8 +200,7 @@ static void db_print_stack_entry(const char *, int, char **, int *, db_addr_t, * Figure out how many arguments were passed into the frame at "fp". */ static int -db_numargs(fp) - struct i386_frame *fp; +db_numargs(struct i386_frame *fp) { char *argp; int inst; @@ -232,13 +231,8 @@ retry: } static void -db_print_stack_entry(name, narg, argnp, argp, callpc, frame) - const char *name; - int narg; - char **argnp; - int *argp; - db_addr_t callpc; - void *frame; +db_print_stack_entry(const char *name, int narg, char **argnp, int *argp, + db_addr_t callpc, void *frame) { int n = narg >= 0 ? narg : 5; diff --git a/sys/i386/i386/in_cksum_machdep.c b/sys/i386/i386/in_cksum_machdep.c index ec8b35e8afe8..833bd1609092 100644 --- a/sys/i386/i386/in_cksum_machdep.c +++ b/sys/i386/i386/in_cksum_machdep.c @@ -260,10 +260,7 @@ u_int in_cksum_hdr(const struct ip *ip) * other calculations. */ u_short -in_cksum_skip(m, len, skip) - struct mbuf *m; - int len; - int skip; +in_cksum_skip(struct mbuf *m, int len, int skip) { u_short *w; unsigned sum = 0; diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 27a323bce62a..97b095337852 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -215,8 +215,7 @@ i386_clock_source_init(void) } static void -cpu_startup(dummy) - void *dummy; +cpu_startup(void *dummy) { uintmax_t memsize; char *sysenv; @@ -746,9 +745,7 @@ DB_SHOW_COMMAND(frame, db_show_frame) #endif void -sdtossd(sd, ssd) - struct segment_descriptor *sd; - struct soft_segment_descriptor *ssd; +sdtossd(struct segment_descriptor *sd, struct soft_segment_descriptor *ssd) { ssd->ssd_base = (sd->sd_hibase << 24) | sd->sd_lobase; ssd->ssd_limit = (sd->sd_hilimit << 16) | sd->sd_lolimit; diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index a0a1c273f467..eeff4b280696 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/sys_machdep.c @@ -334,9 +334,7 @@ i386_extend_pcb(struct thread *td) } int -i386_set_ioperm(td, uap) - struct thread *td; - struct i386_ioperm_args *uap; +i386_set_ioperm(struct thread *td, struct i386_ioperm_args *uap) { char *iomap; u_int i; @@ -372,9 +370,7 @@ i386_set_ioperm(td, uap) } int -i386_get_ioperm(td, uap) - struct thread *td; - struct i386_ioperm_args *uap; +i386_get_ioperm(struct thread *td, struct i386_ioperm_args *uap) { int i, state; char *iomap;