From nobody Wed Nov 24 16:25:58 2021 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 C50C2189A392; Wed, 24 Nov 2021 16:26:01 +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 4HzmbC4Xtkz3tGF; Wed, 24 Nov 2021 16:25:59 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 240E9541D; Wed, 24 Nov 2021 16:25:59 +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 1AOGPw8H019712; Wed, 24 Nov 2021 16:25:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AOGPwuA019711; Wed, 24 Nov 2021 16:25:58 GMT (envelope-from git) Date: Wed, 24 Nov 2021 16:25:58 GMT Message-Id: <202111241625.1AOGPwuA019711@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: ab9d2f02a098 - main - amd_ecc_inject: return an error instead of ignoring it in tsc_modevent 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ab9d2f02a098aad38bb2e04edb22a33294c18ac0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637771160; 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=7bVQ0jxLITtDsvLoE6YTr7XEPXvvzyqLah0/FG+9YB4=; b=vkQFJ2UTLg+ZY+am7mUjSwV8g4qvyv/3DMlOH815aGqdp5548fvJh7l2IC3sNWL8oFb+18 PIGYuww+QElB8aTq1imBvO0VwlAGu5/4ES5TdqtGJkOMsHbZxX5VDncaDH0kl0ztQ0hSvy BD8BjiJkmFfpo1E2w2KTSUZt/rBX28+NN0VUyUi7OWb6lPKCfE2pPEQQRij9KuJs92Nn35 D7IzrNsvR8nZv2FCq3GkYAbWzkO0vZdLPJYGxwD8k6dhqiC+oklpM94rn6T62oeE1Ixq+P GpwDepGWe/8Agg2++Ao/U9uNayUHmNVgiT1oD8NPHykVmgxhF4kiI+fsRPHwog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637771160; a=rsa-sha256; cv=none; b=q1AIZilqGUWwvd6wMweX6P7OFkfixg7pZQD0KfiOjNf14iwrlr636uklNblHSxKeRENk2t HZDloej9wmgeAmhdmyIMzLzVGJussC6xM7KVCKOFgFwb4HDhQJtx5TW3MWF1WTn49Bd7oF kEMvSQ45SOy6RrVQhdCdbKKVbj/0eBHlZV0Cgkoi6XV9qAYC/kFvbO+LtMsP4tT0FA3ORI wFIiS7xMET3+jMPgJnyNgMX/7uWVWmV6+vIqu/d+q3DTyq0z7yNKK8nmjVIZWmEUksfILf FuCJi9i01wGwlhUy7BFH0VuL92qrZUjgDP6zgDfbqXX83FpYfLzBr3dnaKnhWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=ab9d2f02a098aad38bb2e04edb22a33294c18ac0 commit ab9d2f02a098aad38bb2e04edb22a33294c18ac0 Author: Mateusz Guzik AuthorDate: 2021-11-24 16:22:56 +0000 Commit: Mateusz Guzik CommitDate: 2021-11-24 16:25:50 +0000 amd_ecc_inject: return an error instead of ignoring it in tsc_modevent Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/amd_ecc_inject/ecc_inject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/amd_ecc_inject/ecc_inject.c b/sys/dev/amd_ecc_inject/ecc_inject.c index c0f3c142a3c8..657e10407dbc 100644 --- a/sys/dev/amd_ecc_inject/ecc_inject.c +++ b/sys/dev/amd_ecc_inject/ecc_inject.c @@ -237,9 +237,9 @@ tsc_modevent(module_t mod __unused, int type, void *data __unused) case MOD_SHUTDOWN: break; default: - return (EOPNOTSUPP); + error = EOPNOTSUPP; } - return (0); + return (error); } DEV_MODULE(tsc, tsc_modevent, NULL);