From nobody Mon Aug 15 18:49:28 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 4M63Gw5Rz0z4YXl2; Mon, 15 Aug 2022 18:49:28 +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 4M63Gw1vyBz3C3M; Mon, 15 Aug 2022 18:49:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589368; 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=2yEQ5+sRMcvB1lBkz5ZkokFjbUjFx5c1X0t3mjcaW1Q=; b=dSvgNORXQxQ1uWmemwfAVyx38nx6XgaqAQ9tgo2+NWXhErfQ07U3sda5MRJsEFJSz5JxiT RD+PZyzbTd7u4vW1NYhPQF6WhIz3LLzy1uYlHGbRaLBE3hYoEOxMhFw3VbM1lefPL4rLYi 9wmFxewvOgJfRB41nMulVqmrGmJZAy5SXUeF3N/vvoDru+pHHIqsGct1jZQnIVFa6I4ADB SXyBx9pyhwZOQYjuWV4da9HVG54/Fm11IA/AQLyxfoqcJkl3/5RnfFND7nzhHR//w6J8Z4 zR4fAvLflQyUvnDsIoVdCtVUxv0fOKqVONlhMxXfeSQaBqeA0EtoG8zPXPNGyg== 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 4M63Gw11rRzgQK; Mon, 15 Aug 2022 18:49:28 +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 27FInSGn027884; Mon, 15 Aug 2022 18:49:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FInS3g027883; Mon, 15 Aug 2022 18:49:28 GMT (envelope-from git) Date: Mon, 15 Aug 2022 18:49:28 GMT Message-Id: <202208151849.27FInS3g027883@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: 02dd51c9bcce - main - Adjust function definitions in mp_cpudep.c.c to avoid clang 15 warnings 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: 02dd51c9bccedc2fc8d98c3892986232f6bacdab Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589368; 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=2yEQ5+sRMcvB1lBkz5ZkokFjbUjFx5c1X0t3mjcaW1Q=; b=dLYGWycjqkSn6DRAbAY2R+LEXiNyxEc04pui6Y5h3w2togT2ZOY9f2qT46fXVySyHHpkB0 PKTDG4RxjQesHDt4+VV2hSPzgaiexnDH76rClbx1YVY5RPkiXK03eLB33ZTtxDjZNuVg8M Ve7ZSyzFPtXs2iB7XsKD3R5pQR9rtb7aKab/wTcggh8lLx1nZEo0a+1Ab15fFtoR1UHlNw QT7IyzLYzICv0sYE6f+GWKMRhbNcOc2G2CnxTkvLj9SfwxMvs1eEsfujsqC9IWQlY00wOw tZ0iXlictLxiDBtUlp4+JcNaA9D0GN3PbVK4Fg0G4vVDbheJ685P6oiq7wBYyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589368; a=rsa-sha256; cv=none; b=RXAv+bgF+tW8PAs7DwmIF2RRhRsUQuwrce8agmmepD1L7wkFV9UNbpNE4V3W6QKtZfDbN4 1Bsuh31N/HLn6Z6hhdgy3kk4MSz9e4BBoGskVveo7XEhJA7iGt/Q54Ub0pjYS7fYCE8g4m pb/KJQSMBsT9BmZJp49D6L4JhL8fH1+3EUoZM+IiqGJBnJkimrFstD5+hi/7zYqy1XsDw6 YoPHULViwnqt3q/wi3n2dzzzZ5CavC2CcSLB7Hs28NdkDYS9GqqQ/ZLv0B9QZx80DQzZ7a BN5/wAMcMjync3ABlf1t5Qa9Pwavq8+NSc5vnTpO6r4BX2/c1ZTsbvYww1rb5w== 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=02dd51c9bccedc2fc8d98c3892986232f6bacdab commit 02dd51c9bccedc2fc8d98c3892986232f6bacdab Author: Dimitry Andric AuthorDate: 2022-08-15 18:46:44 +0000 Commit: Dimitry Andric CommitDate: 2022-08-15 18:48:35 +0000 Adjust function definitions in mp_cpudep.c.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/powerpc/booke/mp_cpudep.c:54:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cpudep_ap_bootstrap() ^ void sys/powerpc/booke/mp_cpudep.c:97:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cpudep_ap_setup() ^ void This is because cpudep_ap_bootstrap() and cpudep_ap_setup() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/powerpc/booke/mp_cpudep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/booke/mp_cpudep.c b/sys/powerpc/booke/mp_cpudep.c index 709578d8e1b4..b8b939a785ed 100644 --- a/sys/powerpc/booke/mp_cpudep.c +++ b/sys/powerpc/booke/mp_cpudep.c @@ -51,7 +51,7 @@ extern void icache_inval(void); volatile void *ap_pcpu; uintptr_t -cpudep_ap_bootstrap() +cpudep_ap_bootstrap(void) { uint32_t msr, csr; uintptr_t sp; @@ -94,6 +94,6 @@ cpudep_ap_bootstrap() } void -cpudep_ap_setup() +cpudep_ap_setup(void) { }