Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1076521pxa; Thu, 20 Aug 2020 01:38:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDsVDp31OXluZXHNNDQQo5xTBlc0augN6F9h0s44RQWwKQm4MiyIW/1vfghrkPiDvJQdyr X-Received: by 2002:aa7:c246:: with SMTP id y6mr1930057edo.78.1597912704568; Thu, 20 Aug 2020 01:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597912704; cv=none; d=google.com; s=arc-20160816; b=0bOidnVSkM7TZ54vpHKIYHdxuQH5C4yLuGs+CIirmugjhDMGNI27MPa8oMHwPqQGaB 5GvM+xve1RnTjSRM8E/Sx8lFMDijOtHg0TidEdRnNDHIPk7fNL8K5ktQln41UGg2/zGi HxwrqnNnFJU3ytUAoboM4Y2iXaU5xy2SP5kN5o4mbe6QtYKrLU5xYIzctZx2oFFvDD3x VqUYC4WmOZlNmloEi5uYifgHlUIswHbhG+QD+naapJDon6HXPPVc06no1ys6DsWJ8mvu eEeZLu0v0F8ETYKgKbRVL1RnCx2nUw4Xs8cfkWgXhqU3w/orZTME5a2dGfcRvaRCWYtm 1n+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=WPQJ7JrZ5CqhutwMz/C3oOY0pZOyWqVbytGXXAMpzag=; b=h1OlLEzeRR0QnIuOlbY/lqnLEexdvtKfBdshnoz35KtRMG8gS1dkkMjUNffD7lvVQO oMOZa588o2HVkHFJKHOUk5V57BZXzqM9PGKbQGnrtRR6CmhpN5ZjGli/zhL0rm7x0i4c GqlZwfSLGGw1pVI/dJUxOvhn1+W7fUrS6FW0XNhl+h5OfICODct4b5haxgynudgt2FT1 9ItVmqRkfrYR7pzP1ldA2jk9UzAZcJOOpF+p9Wl59+K94AJ3oHyZkZcj/7dQIeQLIJRH tO9Yxq5HQxnU3osdsojJeamRDGlmjAVWQUVjObbTpPoMsvndgY0sqOnriahY3t2Y9dVd 7Qrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=QVTFmZER; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si791851ejv.502.2020.08.20.01.38.00; Thu, 20 Aug 2020 01:38:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=QVTFmZER; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbgHTIgw (ORCPT + 99 others); Thu, 20 Aug 2020 04:36:52 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:45566 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbgHTIgt (ORCPT ); Thu, 20 Aug 2020 04:36:49 -0400 Date: Thu, 20 Aug 2020 08:36:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597912607; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WPQJ7JrZ5CqhutwMz/C3oOY0pZOyWqVbytGXXAMpzag=; b=QVTFmZERZoCIU0TxvjF+Y8dooP3OYwR2l8gX1nlklLGhlDzaVoBv0xBwQgNhWQhvyPS8xt u+i+W89uJGWzYmWmHC2uQBQF+pS42ygAUK7bwPNzx1J/G888Jqata4pk17pFK/NLYcFQFN KxGBb9MbAqwGkIsjfhS2765bsw5nW1N/+ObuzoMykSROg6mOhaeSGcqVV37Mq+lYvQbscF 8WcJIZHhn1o6ErJzQCUu6R7GobkDHZnEI/EytekXPKeWlqHUj4YFQsXVCzDNZuDi0TWyJB krwJEFN7TMFo7y4iX5gCr9Zq8GA2KzywK7RQcADXukSv8FbWlZOz4tljyk7ZmA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597912607; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WPQJ7JrZ5CqhutwMz/C3oOY0pZOyWqVbytGXXAMpzag=; b=cyjiHUF9WBN1ClWM8l5G6XyCY3FAckUPYv/BqHwLSYDK3W7EbnhL/Cm3ITmj0VOS30D+zj IEs46C8cXKVLBnBw== From: "tip-bot2 for Luca Stefani" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] RAS/CEC: Fix cec_init() prototype Cc: Luca Stefani , Borislav Petkov , Sami Tolvanen , x86 , LKML In-Reply-To: <20200805095708.83939-1-luca.stefani.ge1@gmail.com> References: <20200805095708.83939-1-luca.stefani.ge1@gmail.com> MIME-Version: 1.0 Message-ID: <159791260687.3192.7735800847323223994.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the ras/core branch of tip: Commit-ID: 85e6084e0b436cabe9c909e679937998ffbf9c9d Gitweb: https://git.kernel.org/tip/85e6084e0b436cabe9c909e679937998ffbf9c9d Author: Luca Stefani AuthorDate: Wed, 05 Aug 2020 11:57:08 +02:00 Committer: Borislav Petkov CommitterDate: Thu, 20 Aug 2020 10:33:33 +02:00 RAS/CEC: Fix cec_init() prototype late_initcall() expects a function that returns an integer. Update the function signature to match. [ bp: Massage commit message into proper sentences. ] Fixes: 9554bfe403bd ("x86/mce: Convert the CEC to use the MCE notifier") Signed-off-by: Luca Stefani Signed-off-by: Borislav Petkov Reviewed-by: Sami Tolvanen Tested-by: Sami Tolvanen Link: https://lkml.kernel.org/r/20200805095708.83939-1-luca.stefani.ge1@gmail.com --- drivers/ras/cec.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 569d9ad..6939aa5 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c @@ -553,20 +553,20 @@ static struct notifier_block cec_nb = { .priority = MCE_PRIO_CEC, }; -static void __init cec_init(void) +static int __init cec_init(void) { if (ce_arr.disabled) - return; + return -ENODEV; ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL); if (!ce_arr.array) { pr_err("Error allocating CE array page!\n"); - return; + return -ENOMEM; } if (create_debugfs_nodes()) { free_page((unsigned long)ce_arr.array); - return; + return -ENOMEM; } INIT_DELAYED_WORK(&cec_work, cec_work_fn); @@ -575,6 +575,7 @@ static void __init cec_init(void) mce_register_decode_chain(&cec_nb); pr_info("Correctable Errors collector initialized.\n"); + return 0; } late_initcall(cec_init);