From nobody Fri Jul 29 18:47:37 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 4Lvc2d5NZSz4Y1lX; Fri, 29 Jul 2022 18:47:37 +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 4Lvc2d4tbcz3psq; Fri, 29 Jul 2022 18:47:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120457; 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=bndCIwXTT9wURIJPtk4KTFkqjrLykKTfLPNhFkazrkc=; b=KwTtq1iqqr9odQNYo3bVva85bSd13B3l7i1eSxE/RkPU/OvEMHT+36CbXfFmJg4mLJefk0 p3M2rR0QlZJ3a2zTUKCIF6RsHFBcDZW0S/ctD2WYG2S4CCvKTExLIl4tlBk1bQ1oNsS898 6lzDFClKJD1bSheJfRH3fD7pYzavsQeRBHTy0A8fbyb30Q7J59vL5LR+itrfT4h+aX/36i UogQIZmB+5rczA9DsvvLuRCsiVNf5Lrk+0Y2LWtaaSUBSDD0gGLbDrV6jlDnMmx81Z5U6w WqZmpqkd1Qdsk1SL5JILksSknlMXneDsWiutQu6RmGurSSBaNEYm1Y39V0jqpg== 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 4Lvc2d3yM3zlRZ; Fri, 29 Jul 2022 18:47:37 +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 26TIlbcv024344; Fri, 29 Jul 2022 18:47:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlbo0024343; Fri, 29 Jul 2022 18:47:37 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:37 GMT Message-Id: <202207291847.26TIlbo0024343@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: 5278592355a2 - stable/13 - Adjust function definitions in kern_cons.c to avoid clang 15 warnings 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: 5278592355a28b4b0b4f3b07701b6312a5562f0e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120457; 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=bndCIwXTT9wURIJPtk4KTFkqjrLykKTfLPNhFkazrkc=; b=w55i1bjXgrxiUI4DGRZljx9SQbGJQghfbfkmUetBEYFGLOzozhz2CuD7svd58e1NEGhCFJ zk9O+W9gq11YUsczxw48U8Y+e+lieRZzOru3bDGmObsGmd5OZw4qouwHz8SwVnEpOoUUQe cgxAkL6G2U+Lx4jJP9oVtlKr3DD6NOKwwwR56WLQ3cEs90T1f6T8SseUL1QOS5j9y4xgPy D1RqIcbeNPekgJiC+ccRU1gp3as/bP740OoqdG26PlGCO3SThC+ZQEksk6tDg/N7Bl7baX MmsrQ5Q0QqbD/3Z4+Sg/RVQwTRZftKwxF80A69tL4XyIqK5lafjzVsmGo1DUVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120457; a=rsa-sha256; cv=none; b=tXy6+V58Q6IbGNFBuU8Zer3hsjC8yknYbA2sXNSBMam1rqlu0oGO/dUTQHbNbdZEzc5e2W 8Gwu4BYs1ZhEsN4DVn7xbpvaXsyoqVIEQCm0H44ycMPsla3vmpMmLUW+FqOaV1JNrwJRAZ juSRd9G5dJ+kbQffGqez/U3xSra2352kVhhL3W6Md0U6Xb9XQpaRI/8uehaQBV60emB/FY CHknVLtBESA6x9PT6baJ4/d2vJJ743q1SCetgdwzsz+/FqBthGpxlCfxYefHG1NlQSH14F JDjY/WyZzBwkUlHm2G9tHHf8bXn2aoC2l+OL9r+d/CiECzyZLB0EvH3oXwczag== 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=5278592355a28b4b0b4f3b07701b6312a5562f0e commit 5278592355a28b4b0b4f3b07701b6312a5562f0e Author: Dimitry Andric AuthorDate: 2022-07-26 14:03:35 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:30:00 +0000 Adjust function definitions in kern_cons.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/kern/kern_cons.c:201:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cninit_finish() ^ void sys/kern/kern_cons.c:376:7: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cngrab() ^ void sys/kern/kern_cons.c:389:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cnungrab() ^ void sys/kern/kern_cons.c:402:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cnresume() ^ void This is because cninit_finish(), cngrab(), cnungrab(), and cnresume() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit 9806e82a23924f32dc5976bc8687fbbe293a140b) --- sys/kern/kern_cons.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c index d33811f1e3c8..acb45c7de2e1 100644 --- a/sys/kern/kern_cons.c +++ b/sys/kern/kern_cons.c @@ -198,7 +198,7 @@ cninit(void) } void -cninit_finish() +cninit_finish(void) { console_pausing = 0; } @@ -372,7 +372,7 @@ SYSCTL_PROC(_kern, OID_AUTO, console, "Console device control"); void -cngrab() +cngrab(void) { struct cn_device *cnd; struct consdev *cn; @@ -385,7 +385,7 @@ cngrab() } void -cnungrab() +cnungrab(void) { struct cn_device *cnd; struct consdev *cn; @@ -398,7 +398,7 @@ cnungrab() } void -cnresume() +cnresume(void) { struct cn_device *cnd; struct consdev *cn;