From nobody Thu Aug 11 13:51:39 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 4M3Ss81Zzjz4Z3WM; Thu, 11 Aug 2022 13:51:40 +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 4M3Ss818Q2z3DT0; Thu, 11 Aug 2022 13:51:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660225900; 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=GoTE5jGuAUQIGtlmkb1bnUTlu8+q2gkdeqia+P6zlE0=; b=QYQQN+DG0axdJUFOeBtYKN6LFDUZJoefGskhjKH5DkcItZ8v+wTZ5ka4huPlbGfyyhO7yQ kNcqJVcV5wVdko2LmicTm3T+myVXQzbTFXDyDFQhrz2L/G7zLbOhsxyg+KN9FNDPfO5qE4 nR7zPCaupB4UWTKqZu9QiSvX73wbT89dcLvdVORtPu9/wdWjZRFo8gIO6L+7Nhrek/vv6X cNLamlvn+EmLKH6mrRS/DnFPZa90KI/KQxzK2BaSxRZM5QfJ7OBrXVLa/7d4oaWujFI8WE GUgLeodAKaTs1hrrmJTmu0zG5fDMYE8kSgy7cLc2IX/TSvLVx/CVGXNQMS8jMg== 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 4M3Ss80DD1ztBB; Thu, 11 Aug 2022 13:51:40 +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 27BDpdcC048668; Thu, 11 Aug 2022 13:51:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27BDpd1N048667; Thu, 11 Aug 2022 13:51:39 GMT (envelope-from git) Date: Thu, 11 Aug 2022 13:51:39 GMT Message-Id: <202208111351.27BDpd1N048667@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 05cef7474215 - main - Adjust function definition in hwpmc 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 05cef74742154cf3c89be214a464d8fabddf8d7d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660225900; 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=GoTE5jGuAUQIGtlmkb1bnUTlu8+q2gkdeqia+P6zlE0=; b=m6XlfIj8pUd4t/Rg3zIXqRZOKjc8G/zuVZDLdXREIZjE/MPTQiWsaJ0KsMSh1KpsAibIR5 PdrvIMYW6Bj1zWZDIScBcgSQi9VeDGERkUYiwq7TG1MFTRluu0EhtBeJ04dF86zeRlbcuf KKIZnIuoBEs97n7sWssPAEosetW4EnTxIdL7AlEkKMJt8ajnfuwgINE9apigXe+n4CNemf jOV9DJqF1SMIhczjPrCFDnxi5ioeCi9zVMLeaHjKgvsThsHUelqkNH09tBgXcY82eiX2N+ jXUsjQQDfj38Lr0LIIhqPcDPGLouyTn2LJh1zJyRocnOkLGVkYb1/snGe9XQ4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660225900; a=rsa-sha256; cv=none; b=QbX2ES7/2iWDT2TULUDIb9jyhkB20NlI1d0Es8yQQ+BdRt7EdZWVuqSm7avxrdCKK2rucn FAlSogyVsUxkmoj0x8mUEdCkS0gRZIHgmqfd8zD8oKx+OlyfG3JrcD9U9LjjO4gaTQgBcz 74k3mprj98O50ALrrHYKyuHugqsQX+BylS3yAKjpHXDRQ2t7dC0cHR0uUWbjeOz1NsxS+o M4+aNdxeMCKxOfYeVyIyTpks8Dq06HWzTZdoIxTIuEHi6Zx1I8g2cD4s3hGEmQ3qQKt7zp H6KVkwoQ+8TxJYmxydYRb8b1a0zyoHrtJY+WVJfk8nLEOLe40jIu6eF5H/bY2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=05cef74742154cf3c89be214a464d8fabddf8d7d commit 05cef74742154cf3c89be214a464d8fabddf8d7d Author: Andrew Turner AuthorDate: 2022-08-11 12:02:33 +0000 Commit: Andrew Turner CommitDate: 2022-08-11 13:30:32 +0000 Adjust function definition in hwpmc to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/hwpmc/hwpmc_arm64.c:530:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pmc_arm64_initialize() ^ void This is because many of the functions are declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. Sponsored by: The FreeBSD Foundation --- sys/dev/hwpmc/hwpmc_arm.c | 2 +- sys/dev/hwpmc/hwpmc_arm64.c | 2 +- sys/dev/hwpmc/hwpmc_arm64_md.c | 2 +- sys/dev/hwpmc/hwpmc_armv7.c | 2 +- sys/dev/hwpmc/hwpmc_cmn600.c | 4 ++-- sys/dev/hwpmc/hwpmc_dmc620.c | 2 +- sys/dev/hwpmc/hwpmc_powerpc.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_arm.c b/sys/dev/hwpmc/hwpmc_arm.c index 0e239f60eac0..c585a6cefd1e 100644 --- a/sys/dev/hwpmc/hwpmc_arm.c +++ b/sys/dev/hwpmc/hwpmc_arm.c @@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$"); #endif struct pmc_mdep * -pmc_md_initialize() +pmc_md_initialize(void) { #ifdef CPU_CORTEXA if (cpu_class == CPU_CLASS_CORTEXA) diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c index 9b530a7b2ddf..ca346f2ac4df 100644 --- a/sys/dev/hwpmc/hwpmc_arm64.c +++ b/sys/dev/hwpmc/hwpmc_arm64.c @@ -527,7 +527,7 @@ arm64_pcpu_fini(struct pmc_mdep *md, int cpu) } struct pmc_mdep * -pmc_arm64_initialize() +pmc_arm64_initialize(void) { struct pmc_mdep *pmc_mdep; struct pmc_classdep *pcd; diff --git a/sys/dev/hwpmc/hwpmc_arm64_md.c b/sys/dev/hwpmc/hwpmc_arm64_md.c index 4007b5840843..59d33ef34d06 100644 --- a/sys/dev/hwpmc/hwpmc_arm64_md.c +++ b/sys/dev/hwpmc/hwpmc_arm64_md.c @@ -45,7 +45,7 @@ __FBSDID("$FreeBSD$"); #include struct pmc_mdep * -pmc_md_initialize() +pmc_md_initialize(void) { return (pmc_arm64_initialize()); diff --git a/sys/dev/hwpmc/hwpmc_armv7.c b/sys/dev/hwpmc/hwpmc_armv7.c index b742fa4c3110..1ba1dbb6e695 100644 --- a/sys/dev/hwpmc/hwpmc_armv7.c +++ b/sys/dev/hwpmc/hwpmc_armv7.c @@ -497,7 +497,7 @@ armv7_pcpu_fini(struct pmc_mdep *md, int cpu) } struct pmc_mdep * -pmc_armv7_initialize() +pmc_armv7_initialize(void) { struct pmc_mdep *pmc_mdep; struct pmc_classdep *pcd; diff --git a/sys/dev/hwpmc/hwpmc_cmn600.c b/sys/dev/hwpmc/hwpmc_cmn600.c index 2e6ea41abff8..5e3ecb58c77c 100644 --- a/sys/dev/hwpmc/hwpmc_cmn600.c +++ b/sys/dev/hwpmc/hwpmc_cmn600.c @@ -711,7 +711,7 @@ cmn600_pmu_intr(struct trapframe *tf, int unit, int i) * Initialize ourselves. */ static int -cmn600_init_pmc_units() +cmn600_init_pmc_units(void) { int i; @@ -732,7 +732,7 @@ cmn600_init_pmc_units() } int -pmc_cmn600_nclasses() +pmc_cmn600_nclasses(void) { if (cmn600_pmc_nunits() > 0) diff --git a/sys/dev/hwpmc/hwpmc_dmc620.c b/sys/dev/hwpmc/hwpmc_dmc620.c index 653013e3f2ab..c340dbe69086 100644 --- a/sys/dev/hwpmc/hwpmc_dmc620.c +++ b/sys/dev/hwpmc/hwpmc_dmc620.c @@ -131,7 +131,7 @@ dmc620_pmc_unregister(int unit) } int -pmc_dmc620_nclasses() +pmc_dmc620_nclasses(void) { if (dmc620_npmcs > 0) diff --git a/sys/dev/hwpmc/hwpmc_powerpc.c b/sys/dev/hwpmc/hwpmc_powerpc.c index 86ec71f14e80..aeb7285ead2c 100644 --- a/sys/dev/hwpmc/hwpmc_powerpc.c +++ b/sys/dev/hwpmc/hwpmc_powerpc.c @@ -549,7 +549,7 @@ powerpc_pmc_intr(struct trapframe *tf) } struct pmc_mdep * -pmc_md_initialize() +pmc_md_initialize(void) { struct pmc_mdep *pmc_mdep; int error;