From nobody Thu Jul 21 19:06:05 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 4Lphqd6bTJz4XJnL; Thu, 21 Jul 2022 19:06:05 +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 4Lphqd60lbz3VcY; Thu, 21 Jul 2022 19:06:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658430365; 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=WkH5ePRosNdOWGb9r1fe6zVDo7YwcmNdEbezdrTMXEw=; b=WiRU0wdTttpvse7lyOjG91DjB5piqlyIL25biLs7opVlPq1jZonFpU7GTj7YwxO35145m0 iJFGpF76IxB0dsgAQ2DHNV8HMhPgltvd6IvWLHxs2bfptdWQMtwf41WDkM2hOjxE9L/fMA 6HKWWytmhPOh4z1fKOHpeZEEbk9N+aHUpKHJDN2hLQe8j90DGPAjafE7g8iOyuIADeg0RC 3FUDzQvycnXXu1PtqIvATcZc+8vhrTnUgQZXNNvMeNfiZwK2Cjgchjlrsmbm8sdEqXkVqo sVP4bPZtYu3z0YMwhj45q5tQXS622u4IZLFknIImGlmJluSz4J7JCJTFIZibMQ== 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 4Lphqd4r7nzYMX; Thu, 21 Jul 2022 19:06:05 +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 26LJ65FD038064; Thu, 21 Jul 2022 19:06:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJ65VB038063; Thu, 21 Jul 2022 19:06:05 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:06:05 GMT Message-Id: <202207211906.26LJ65VB038063@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: dc0cde7a21a6 - main - Adjust pcm_md_initialize() definition 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc0cde7a21a6aab0a5e876d8f890764e32718932 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658430365; 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=WkH5ePRosNdOWGb9r1fe6zVDo7YwcmNdEbezdrTMXEw=; b=G69GdXqN5XguIQ+PCD4f+6wBTSUK8/iQvgR3X92fFNkBaNOKuk6Xfbc71A6tIrtmk6DLk/ YNDNdErISz8pF5ip+cTbHLR9jhGMh1HvpPINRYe7h9rbBLQl6a5maf0i1D8LGnZhZxokdJ JvzamMd3fX5u99V0h3VkRLOHDzw9xrXsYYOGIhsirgVsGnHgi3eP9ZWIJr63NbRw38AnFf krOh3iVzDhe+Ql1gyYBznztzzuctJDZocipm8qr8ez5H8dxnJ/HR6rZYkBOybDxB6MDNqW 8aC126f/0Hg3H7p3lJ+eRuJ8jo4jBiwdw7+Tu67f8Md4d1kpN8gnrbAdqTkdCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658430365; a=rsa-sha256; cv=none; b=IQtFAPpDmkOXlzyf5lwVuWIhj9csiW6A1OKYcXKVgiQz1bckACaV3VsCWUxqAwqwmi3hDj Mew34Ib/rT0yjQMkWCGN6jmKWNmWkLVMEwQrTyqPctJFSfNCnS2gWSeVPPz/G0226fBvF7 G3vpGQI7h93epkTCGpdSDcIKJ3B9FRcMZj0yzknCzLtbbV93x7foTM0GG0ns9HTGsptXsO NGCluxteZSOS1mYwzHh+3FrJKH/NngwoWdaTHXC3/DObJMRtBKHMDMe1MrtYZAcPhPNubA /dGKE9B991VGcgA7GSkYYgX9v7TG9vZ+2koF+bRxkcyqoBkdXY4HAVwpSB1EoA== 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=dc0cde7a21a6aab0a5e876d8f890764e32718932 commit dc0cde7a21a6aab0a5e876d8f890764e32718932 Author: Dimitry Andric AuthorDate: 2022-07-21 18:23:19 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:05:50 +0000 Adjust pcm_md_initialize() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/hwpmc/hwpmc_x86.c:245:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pcm_md_initialize() ^ void This is because pcm_md_initialize() 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/dev/hwpmc/hwpmc_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hwpmc/hwpmc_x86.c b/sys/dev/hwpmc/hwpmc_x86.c index 426f820b8a96..6c39210d7f8f 100644 --- a/sys/dev/hwpmc/hwpmc_x86.c +++ b/sys/dev/hwpmc/hwpmc_x86.c @@ -242,7 +242,7 @@ pmc_save_kernel_callchain(uintptr_t *cc, int nframes, struct trapframe *tf) */ struct pmc_mdep * -pmc_md_initialize() +pmc_md_initialize(void) { int i; struct pmc_mdep *md;