From nobody Sun Aug 14 19:27:51 2022 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 4M5S9h3wysz4YvLJ; Sun, 14 Aug 2022 19:27:52 +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 4M5S9h1DKNz3LZT; Sun, 14 Aug 2022 19:27:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505272; 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=Kuw6QjofxldB3jZxxbcZT80yYZcu2pSaXdERLRimR/Y=; b=Q13kjolu8C3bnydwrw26CmDwF/ZANWvmyQfdlr3ohV4P1IyvuVUURtYtanCiJXRTV784vm N52q1hISU+KgPSl7Jr1/ugc63IP1p07L5ElsjK7gnU/tQfK/9PGbiZp48EV3hWyTGQ7gf4 vQ1vlzfFRYsfLj7yBcqoR7L9omlNSAgCH9SEtHIhC6ky8k0gaPt85tn/a0MrynPdsFHMPf iDuqnyldYjgRZA61DhQo/92ZHKG1r1la+p+TKbFeUGTCMVBPOlXl3cs94COjte1H2yqZpO DicHSmKxAxZsrCeTAb+CXrTNa6xRE+rpzqTP+QUxUsaGwGmp6DRIEotxyEpbuQ== 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 4M5S9h0Kw6z129h; Sun, 14 Aug 2022 19:27:52 +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 27EJRpio044233; Sun, 14 Aug 2022 19:27:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRpTF044232; Sun, 14 Aug 2022 19:27:51 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:51 GMT Message-Id: <202208141927.27EJRpTF044232@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 7701f3015948 - main - Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 7701f3015948f4ff25d4d26586c64847289325b2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505272; 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=Kuw6QjofxldB3jZxxbcZT80yYZcu2pSaXdERLRimR/Y=; b=uT3kQCa8WLd/TcOVLIgLY5XF6j1UKjcHNXAK0OuyTmKTlKBEwLDDXyAlvM7avYGl6bRJsL js9MIZayg5gvRC308DUTDOoTtV4jYc463DsvJvjSFM1Xc3GA9aEsEUVFXj9VXJ2kOvDM/E szJLiCkNZbMeULYOfAsRmn0Y7Vb+LGWvmdx0+pFiIpy2iI+rjIkwZ+y5qZxZTynKqC1t8t e2rhtnjngzr2BP4lPHRQ/up9MJH17b4nO3R5X/2tIioJqdqXaqp16FnwoHbb1QQTjJoUvX MhSVEFN9ZbPtSst7Ci0tufVOFApDpnx+1XmLcEUTirGEz1p1FpSmXsmN8bnohg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505272; a=rsa-sha256; cv=none; b=MXupAdoVNJtdnXtKPbBCYQ/p55aZyisJ4wFU+1CUoMTXRdvSiD85GChToogMtzqcFfoDHE jq2nKxtxFbWNEsxHXJiw7zS3V5VgEewZQ5FOvm31DuImgjZR4ef+sgoiTKbMAVOkfsfjHP g88J518ZwaV9FggEa2OSTKO76A/wuM+v7MYWB45507bve+zFwT/vXSlEO2VNOL94OuSpsP GuOetR70qDr4mVL5m5St7vz21onB04AOKOg21Ahwbpcb8ye/izDaoVbHursN7GuHeqLpOE 7+nEFSW2qyzPyqeMzjYYpIHXMUyhXyyCVuwL7JCiVdmYAohMUj17l0AypyEKgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7701f3015948f4ff25d4d26586c64847289325b2 commit 7701f3015948f4ff25d4d26586c64847289325b2 Author: Dimitry Andric AuthorDate: 2022-08-14 18:57:59 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:34 +0000 Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/dtrace/powerpc/dtrace_subr.c:237:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtrace_gethrtime() ^ void This is because dtrace_gethrtime() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/cddl/dev/dtrace/powerpc/dtrace_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c b/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c index ed171f1135e9..0707a40aa22e 100644 --- a/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c @@ -234,7 +234,7 @@ SYSINIT(dtrace_gethrtime_init, SI_SUB_SMP, SI_ORDER_ANY, dtrace_gethrtime_init, * Returns nanoseconds since boot. */ uint64_t -dtrace_gethrtime() +dtrace_gethrtime(void) { uint64_t timebase; uint32_t lo;