From nobody Tue Apr 16 20:12:26 2024 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 4VJwF64Y3Tz5HT4x; Tue, 16 Apr 2024 20:12:26 +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 4VJwF62Yncz4s5T; Tue, 16 Apr 2024 20:12:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713298346; 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=/gHciSVMwP/RQt2MhjgXTkyQQiaXqMMJJ90vOQnY9x4=; b=yQNx+9SA6GhUelMwGpvNDnv3HD+ZtwFBMHoi4EYXzHc/wrOI59ifbWPhwrWxSy7Wbbwt17 FhTaD+NTEUd+4f2OIsPdBiG06kgaRBdfAn2tqcZl6QHu2IYKpE2psGQODC9g1a9rKvGNIN B2nS7Odl0cJsRbsOLLs2mw0nd9Y/PLW8xv8Mrv4AFVMFizJg4b3kpjMrrUwSM9TDPLQPYH bisLOzr+UluG2QxKgdi7uEpiGm0v/xFioK84FZ1klcG6jSdmzzBUcN0aoLdehF6nYFN/VE Iaf1YHkAWf0aXiAR7IaA1vRi8q8hXMHgNHY5QxasdKbb29OQxDPE+9y0Z3lm5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713298346; a=rsa-sha256; cv=none; b=FcUcHHJTUXTeBt387yfTx8QC6jPjOuOngBQ2yDYd0qKvnoHXrtfKSVnvnS4lJZ+tnwekAc Bo23GacEzZkWuIMklAeShsWCecZNbTvcusz6z9RQ9P02FmuPKDUSu7/TJd67+a2klB7x5P VfagHuzEISGeaMWLQyuQ0VSTpDQAxztJt+8qhSSR9ONzVh3FZA5Be3uTEO+6doN/qAHiKI WdkZRUv6oIlO+jx+OCqc+9ToplKV8t8hH+BGmCqMz4iM4z9M7cvlKV0Mb7ctdJd6o/Hsx/ +tyBk/i6ocGxPsZOF2qiEYOYKIpK+imBKUL0elCUE3bBzeBWZcBftCcCwlgNUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713298346; 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=/gHciSVMwP/RQt2MhjgXTkyQQiaXqMMJJ90vOQnY9x4=; b=iynRJguJMyGIxBMj4h8JEjHQvnS2ke5G4+KCK9w4Hbb1L7vZ00wYfwkVvnBPtPH0q3wue/ ZDzX49CXHC9pleaa+1Ju7TqyGs6wvPuU0qk+cnSYd2O6Vj5TY4iu23LE4LPcqB5qBdsUB8 1a/pUucBNB+MFqazNfcRm8e0s0AuooLN9eGpzEEwC57Z2BbK5/wyDct8tVDzDehxIKBy5/ SVK/Y/cBnzNoMH4T+E4stJZwhLpW86LVq0d3kq8oDNIuv/l+XM08IyQxR0Ln6wCIvcR7SM DCiSF2RU2XbR6vg4D8gd+kn2RuF2ksPGgIqn8KqyFsjGg06CegNwjVgO9cGAOQ== 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 4VJwF629G2zxPK; Tue, 16 Apr 2024 20:12:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43GKCQ5c036936; Tue, 16 Apr 2024 20:12:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43GKCQUT036933; Tue, 16 Apr 2024 20:12:26 GMT (envelope-from git) Date: Tue, 16 Apr 2024 20:12:26 GMT Message-Id: <202404162012.43GKCQUT036933@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: fcd477ea594f - stable/14 - stand: Use modern function definitions 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: fcd477ea594f8eeb528641c7a91db7da86c4ec4b Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=fcd477ea594f8eeb528641c7a91db7da86c4ec4b commit fcd477ea594f8eeb528641c7a91db7da86c4ec4b Author: Warner Losh AuthorDate: 2024-01-28 18:36:21 +0000 Commit: Warner Losh CommitDate: 2024-04-16 19:54:21 +0000 stand: Use modern function definitions Use modern function definitions for functions with no args. Sponsored by: Netflix (cherry picked from commit dcc20bced51583df83e49af269ff7be5fb48dbf8) --- stand/common/boot.c | 2 +- stand/efi/libefi/efinet.c | 2 +- stand/fdt/fdt_loader_cmd.c | 6 +++--- stand/libofw/ofw_console.c | 4 ++-- stand/libofw/openfirm.c | 8 ++++---- stand/libsa/bzipfs.c | 2 +- stand/libsa/powerpc/syncicache.c | 2 +- stand/uboot/main.c | 2 +- stand/uboot/net.c | 2 +- stand/uboot/uboot_console.c | 4 ++-- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/stand/common/boot.c b/stand/common/boot.c index db4bb4fc2ea8..658da097b9a9 100644 --- a/stand/common/boot.c +++ b/stand/common/boot.c @@ -160,7 +160,7 @@ command_autoboot(int argc, char *argv[]) * we haven't tried already, try now. */ void -autoboot_maybe() +autoboot_maybe(void) { char *cp; diff --git a/stand/efi/libefi/efinet.c b/stand/efi/libefi/efinet.c index 62fc203c83b5..97890c9d9b43 100644 --- a/stand/efi/libefi/efinet.c +++ b/stand/efi/libefi/efinet.c @@ -352,7 +352,7 @@ struct devsw efinet_dev = { }; static int -efinet_dev_init() +efinet_dev_init(void) { struct netif_dif *dif; struct netif_stats *stats; diff --git a/stand/fdt/fdt_loader_cmd.c b/stand/fdt/fdt_loader_cmd.c index a27ac53cb13b..eb152ae1949c 100644 --- a/stand/fdt/fdt_loader_cmd.c +++ b/stand/fdt/fdt_loader_cmd.c @@ -111,7 +111,7 @@ static const struct cmdtab commands[] = { static char cwd[FDT_CWD_LEN] = "/"; static vm_offset_t -fdt_find_static_dtb() +fdt_find_static_dtb(void) { Elf_Ehdr *ehdr; Elf_Shdr *shdr; @@ -428,7 +428,7 @@ fdt_check_overlay_compatible(void *base_fdt, void *overlay_fdt) * Returns the number of overlays successfully applied */ int -fdt_apply_overlays() +fdt_apply_overlays(void) { struct preloaded_file *fp; size_t max_overlay_size, next_fdtp_size; @@ -551,7 +551,7 @@ fdt_is_setup(void) } int -fdt_setup_fdtp() +fdt_setup_fdtp(void) { struct preloaded_file *bfp; vm_offset_t va; diff --git a/stand/libofw/ofw_console.c b/stand/libofw/ofw_console.c index 42ff045e8831..b0ead0aba198 100644 --- a/stand/libofw/ofw_console.c +++ b/stand/libofw/ofw_console.c @@ -83,7 +83,7 @@ ofw_cons_putchar(int c) static int saved_char = -1; int -ofw_cons_getchar() +ofw_cons_getchar(void) { unsigned char ch = '\0'; int l; @@ -105,7 +105,7 @@ ofw_cons_getchar() } int -ofw_cons_poll() +ofw_cons_poll(void) { unsigned char ch; diff --git a/stand/libofw/openfirm.c b/stand/libofw/openfirm.c index 211722c08e10..da0f589faa67 100644 --- a/stand/libofw/openfirm.c +++ b/stand/libofw/openfirm.c @@ -135,7 +135,7 @@ OF_test(char *name) /* Return firmware millisecond count. */ int -OF_milliseconds() +OF_milliseconds(void) { static struct { cell_t name; @@ -693,7 +693,7 @@ OF_boot(char *bootspec) /* Suspend and drop back to the Open Firmware interface. */ void -OF_enter() +OF_enter(void) { static struct { cell_t name; @@ -708,7 +708,7 @@ OF_enter() /* Shut down and drop back to the Open Firmware interface. */ void -OF_exit() +OF_exit(void) { static struct { cell_t name; @@ -723,7 +723,7 @@ OF_exit() } void -OF_quiesce() +OF_quiesce(void) { static struct { cell_t name; diff --git a/stand/libsa/bzipfs.c b/stand/libsa/bzipfs.c index 9a14380bae51..ad51e934ed9c 100644 --- a/stand/libsa/bzipfs.c +++ b/stand/libsa/bzipfs.c @@ -366,7 +366,7 @@ bz_internal_error(int errorcode) #ifdef REGRESSION /* Small test case, open and decompress test.bz2 */ -int main() +int main(void) { struct open_file f; char buf[1024]; diff --git a/stand/libsa/powerpc/syncicache.c b/stand/libsa/powerpc/syncicache.c index 0fcb1914a0da..1f99007dcdae 100644 --- a/stand/libsa/powerpc/syncicache.c +++ b/stand/libsa/powerpc/syncicache.c @@ -54,7 +54,7 @@ int cacheline_size = 0; static void getcachelinesize(void); static void -getcachelinesize() +getcachelinesize(void) { static int cachemib[] = { CTL_MACHDEP, CPU_CACHELINE }; int clen; diff --git a/stand/uboot/main.c b/stand/uboot/main.c index 6147757ced71..5a896959122e 100644 --- a/stand/uboot/main.c +++ b/stand/uboot/main.c @@ -339,7 +339,7 @@ get_load_device(int *type, int *unit, int *slice, int *partition) } static void -print_disk_probe_info() +print_disk_probe_info(void) { char slice[32]; char partition[32]; diff --git a/stand/uboot/net.c b/stand/uboot/net.c index 969724ea02df..392dd1ca45c2 100644 --- a/stand/uboot/net.c +++ b/stand/uboot/net.c @@ -100,7 +100,7 @@ static struct uboot_softc uboot_softc; * to obtain all this info again. */ static void -get_env_net_params() +get_env_net_params(void) { char *envstr; in_addr_t rootaddr, serveraddr; diff --git a/stand/uboot/uboot_console.c b/stand/uboot/uboot_console.c index d8819b8193e2..f6656309be6c 100644 --- a/stand/uboot/uboot_console.c +++ b/stand/uboot/uboot_console.c @@ -73,14 +73,14 @@ uboot_cons_putchar(int c) } static int -uboot_cons_getchar() +uboot_cons_getchar(void) { return (ub_getc()); } static int -uboot_cons_poll() +uboot_cons_poll(void) { return (ub_tstc());