From nobody Sun Aug 21 11:29:11 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 4M9YD75n9xz4ZYhl; Sun, 21 Aug 2022 11:29:11 +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 4M9YD75F8Fz3x5k; Sun, 21 Aug 2022 11:29:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081351; 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=fQ2pK63p3MCGMWoCJ9wu/jIZWcbV3xrRrCGY1gx2Ie4=; b=x7HRMAhx03i6CFc7jDJUWdoXnc5dNRJHUCSW9cjRpaLWGAj2KQhjJhqVx0jefUVrReyVNn IbanDGalY0AdoH/dezJtcvA3ekzSubvomtHc32BO8FDCK3XuRDOR9qWVzZayCaHaHy5ZFB vzojE15RuKbRVJpADiZj1QVoZZqcr0F8iOx2ykC6iP2dmzGXqyAQFzDl2jG4QI+FCiJwvS BoEYYmZV7Q0L3zlZJ0BzET4IgHIgXYWx+0zzudeJKo20ArqEAyqrFRv0P/SZJ/cW/2AWLn ZzvCFVbdKOn5MUCkP3b4z3YygbIUsxFl7xGE8XUl7kcmtz3oqdB7uLSgsWfb/A== 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 4M9YD74DYLz18Bw; Sun, 21 Aug 2022 11:29:11 +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 27LBTB5a004468; Sun, 21 Aug 2022 11:29:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTBns004467; Sun, 21 Aug 2022 11:29:11 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:11 GMT Message-Id: <202208211129.27LBTBns004467@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 9bd70da49a98 - stable/13 - Adjust function definition in aim_machdep.c 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 9bd70da49a981e6fd6fb5bafed6b114e934604e8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081351; 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=fQ2pK63p3MCGMWoCJ9wu/jIZWcbV3xrRrCGY1gx2Ie4=; b=BjtHMFk+tz8bBMFSXuvnoTXruKE71+cXCIc/ynJA1og4eaOVQxfsZU1sCpbwTj3yYXHxGs Cut1Q58u8VyAcaRnRZ9nWhQL90/NufayyAUGL0DAwOKWXpx0wVanzdRO+HqNL37cSc4BYB WYyOtTnXCIai/LWfu8TjJZsOH5HHFn0Ckw7gGWihbu9j+7qkdchXQQN14kKsqm00FLCAN0 ABVZVtBF/jGUOBrD/pJUXko5IswCyRkZ1J3/Pltk0tx6PgL4AyKLMUmVHQxW2Ga1V3D2rp PRw6YwBEsn51rc6q471LMsQh6R5Us+S3NTEEtvp/Bme0lBQmU7XGazI4p2gagw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081351; a=rsa-sha256; cv=none; b=lK8d8K/2ckAL25XrAb1q1UITDn3/lqw6UwnLrmDXtLucFEDUg4OrG5w/ly6ACIrL6lRfXi pcn6vZwot6YUNU5pjyp7aV5kz7nPEuBGq0mb7JHVXHzR/p8/VPh11F9ro9FPbBo+uBiOun hfnExodMAJ4PlyrxX6u9W7uDMl1ck/jGhRsEXEywcRVvxz/HIEGyZIf4QIKbq35jcJWI+P I9UYQ6YNys85ILIStoaEJKIBUcbrd9t15IPI+TVtZEph6mJ8fGXKdStnKfLrKB42t3NBkb TkcMPqcwH0qZRdFSNtmoVQYtf4eaY/81NkX6SiSBmg3MMpfA/eH22b5hZai85g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9bd70da49a981e6fd6fb5bafed6b114e934604e8 commit 9bd70da49a981e6fd6fb5bafed6b114e934604e8 Author: Dimitry Andric AuthorDate: 2022-08-15 18:27:56 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:13:32 +0000 Adjust function definition in aim_machdep.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/powerpc/aim/aim_machdep.c:750:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] mpc745x_sleep() ^ void This is because mpc745x_sleep() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit 06fce030e79ecce57365bc537e38ee0f25861d70) --- sys/powerpc/aim/aim_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c index 914296440104..8600c1387e16 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -746,7 +746,7 @@ flush_disable_caches(void) #ifndef __powerpc64__ void -mpc745x_sleep() +mpc745x_sleep(void) { static u_quad_t timebase = 0; static register_t sprgs[4];