From nobody Mon Aug 22 09:12:16 2022 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 4MB67h5TgMz4Z5fl; Mon, 22 Aug 2022 09:12:16 +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 4MB67h4vDvz3fS3; Mon, 22 Aug 2022 09:12:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159536; 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=toiC4Y/KIhjfRvqssqMwR5KflKC5uA/FQ3QHSKminnI=; b=GpmaDOov66EpPgDMPZieqBo3UjNTLMMOHyPA44QlrgEU7m+0jDKEBWe4xvnKenO1LlhBED 9hm5gXqMUD0FZ0OaotTCjLFLZsgnA1c+4Z0vKfRw+X/0qAQqMUlM4Rvm+m85P+iCLQu694 pA86qFbAsJWLulWRuS8XcUgbx3KYYqBl6ElwwzUbMl2P9SuuX1NLEnDvOIJbgW7gPjzLx6 wtbTRaG1pjyufOrEF2DAd+rp9b5Wre+TnyADQKDMNxt5sQ9S6fRAuI1uvJ14iFVFSH5eGP QrwDVoQ0FJEAqKugRLx/9QRI8jd7FHJUg4atg9L1PO8lUj6OOmdPRDOG5/K9eg== 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 4MB67h416Zzl9y; Mon, 22 Aug 2022 09:12:16 +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 27M9CGxF046931; Mon, 22 Aug 2022 09:12:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M9CGXq046930; Mon, 22 Aug 2022 09:12:16 GMT (envelope-from git) Date: Mon, 22 Aug 2022 09:12:16 GMT Message-Id: <202208220912.27M9CGXq046930@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 1570048c5219 - stable/13 - Adjust function definition in hwpmc to avoid clang 15 warning 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1570048c521991f30421038f9b17546ee338b5c5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159536; 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=toiC4Y/KIhjfRvqssqMwR5KflKC5uA/FQ3QHSKminnI=; b=boqygwf1tTOwphuN/ciUXuz8CqhCzW1td5k2BLrBFPWMEM5k38q6M2Jr72AqyAhKruUqJL nYv417g+Bxc8u8hlW92x9RwxVCdMPbtyN+OQhiFK0Uw0DPmoUi/GhCKk6KEwwpaoJDUzbC xWXGYWIrI6M0hFosbN1BjXJ5lzIiDQsb/QvjBor5SvDUyUiAA2qAuhUwQVnIDJhua/vIBw 74CdDTZbca4E50nIwkXDH2TljHcxc6Dj2g+o68mnEShIqWXbPCloC6hNsEnlgB7K+Z6e4Z GyjHSLblDg77CArhfsgu7xiDioBKDeyLI7YfMGV0ra3XzfLiL32HG1+WcWXOlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661159536; a=rsa-sha256; cv=none; b=OggnRoJ4qOr5OAWosioOdYrBqnjaAjkpLldn0+CA9YYGzG571cWXb7ZIITPrpAmM2nFODv jvdZeCzMZZtVAkECl4MyE8RW56m806gKoFqj47ecFDxiJsTeH3VGi97MtHxKVHyfX0tipI LiFgwlhEJ56mK4ElyhrgsX5VwBT9OwqnNfzoWds58Ql03EjWVk+S4pE1m5JmZzLkllzI3G QSn8Ab7AHF6ZOHx2XB5N61bi4yRcvlL2HLn0e4l2+6lWV8k9M4Ng6mzYOKGC+UQ4b4l7vC OXyfl83Fqz1J2YEdNbcgFb+ptJpHmKdMyXwloWJsXYVzvLQ/uvifCY/lKYw/JQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=1570048c521991f30421038f9b17546ee338b5c5 commit 1570048c521991f30421038f9b17546ee338b5c5 Author: Andrew Turner AuthorDate: 2022-08-11 12:02:33 +0000 Commit: Andrew Turner CommitDate: 2022-08-22 09:11:29 +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 (cherry picked from commit 05cef74742154cf3c89be214a464d8fabddf8d7d) --- 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_powerpc.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_arm.c b/sys/dev/hwpmc/hwpmc_arm.c index e9e4aef7ec01..ad13ade9bfa5 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 988cd1744a07..17d383133bf3 100644 --- a/sys/dev/hwpmc/hwpmc_arm64.c +++ b/sys/dev/hwpmc/hwpmc_arm64.c @@ -521,7 +521,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 9037c4636b15..015bee227f89 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 090e4523102d..cd4761df46be 100644 --- a/sys/dev/hwpmc/hwpmc_armv7.c +++ b/sys/dev/hwpmc/hwpmc_armv7.c @@ -502,7 +502,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_powerpc.c b/sys/dev/hwpmc/hwpmc_powerpc.c index aa18d2659d7d..7c6df5825399 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;