Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2940028pxa; Tue, 18 Aug 2020 02:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLOicCZDi6YyN1wUDeUewwSYDfWOSYSuRmfVLFURIZQcmLXExMVr1DOR+g8eN422Z48R0b X-Received: by 2002:a17:906:ad99:: with SMTP id la25mr18240761ejb.63.1597741439402; Tue, 18 Aug 2020 02:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597741439; cv=none; d=google.com; s=arc-20160816; b=NvvGVsSE23TXqdgaZ5QqPiXjaw0L95ETdSJQZO2Sxg2a0O5Jsz74CnZk3qRLGfw1ka 0Z502gajUKwekJ0AKscE9B1TMDVsexM9ZxhHNQBLNJzlShgUaNHFHcvUDzLgbsDNwEo7 xZdfuXR+b2eLVKGr+/kFMYyNeGPFDVe2O7X5E+wiHBEsjB2en1LV872FPqUUdN4N8gH6 RRxXwFSzqVctMvMz7TdqCNz4jSu2IPx62YmvayR9i5NePw54FN0dUyWlaNwi5X6Ca36Q dyxDxXCooa5CZmjzRocvN9ABBlgciJZI0Q2kmscOMv+P1QJ5m6wSqxaDbsjZFYEEWTES IRQA== 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=h4wqRwdS6S/rMMZ0V1KXv9qTHVRSZDZYPTwkqnmIat4=; b=ifQB486WcCXKKwjK82vbgaVDrgT5TtzancRmUPcpTPhLTv6vV4bEIwmYhCVuO/rR+n myIG0yL5qMNFay0QWv+ckvLZC0tMhujyoQ6EfBLo6gz/6Zuq1ztE8fyYkaXtMJAuI0oF hzKfydCNNqi0QlcSJW4VT9iqww/81vWb9AYBXsRaptkpGdAYeJUeJtyFsn7MsXL7ZSZF qGZl5i7yvk/b8oz29ty0PaBBX5vrK2KK8OE1Lvb30gR2BtR8GZ6DnlnHRTMzzNjcuYRd lX+A8WwHgFehGa+xpm4VaARTXgACp37P165sIOOiiI/pUlmknUO3zy4TfSLZovTe1a8k EwUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=kSkjdapH; 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 n20si13863145eda.329.2020.08.18.02.03.36; Tue, 18 Aug 2020 02:03:59 -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=kSkjdapH; 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 S1726514AbgHRJCz (ORCPT + 99 others); Tue, 18 Aug 2020 05:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgHRJCz (ORCPT ); Tue, 18 Aug 2020 05:02:55 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE3DC061389; Tue, 18 Aug 2020 02:02:54 -0700 (PDT) Date: Tue, 18 Aug 2020 09:02:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597741369; 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=h4wqRwdS6S/rMMZ0V1KXv9qTHVRSZDZYPTwkqnmIat4=; b=kSkjdapHvC0769w0zlx2uC3jx9xWvonSDAIOsFl9IhsDU+THtGQ5EKfKXsADL1gBbc08IY udvtbao8maovqmZXgswgaNA6TcWpGkmvv9pKsFEDCpCOXtYiSnldsahhbyV777XmWKuSsS GcjFyOM8ZWiupaF7qIY42vuFaGEko2BLyzEWd4wiqdw6spBoVvdCpkfDxcK8mHdmnZLjnE B240UkOx1+SftlOeJN+pFd5ZQtnN2xxr4wBbYQ0eVGnA5ei0q6alhpzBJI6tkwUywOVWPR XgDGUrdMkiHh6113/oC5rTOO1OtkmaddXzxqGOYl13oK8o9FbyRWcRWLJNElTw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597741369; 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=h4wqRwdS6S/rMMZ0V1KXv9qTHVRSZDZYPTwkqnmIat4=; b=p+ULuIdx2GXIZl/GxUWp4CyMDoGT5AsGCgQmNGVwvNBsNhiTcV6KNFItDs87Qaav5TTaAx 8g2m0ExI7os0czAg== 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: <159774136801.3192.8560665046309043144.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: 71aefb9a89d4ad751726ff5b902896c35c7df5b9 Gitweb: https://git.kernel.org/tip/71aefb9a89d4ad751726ff5b902896c35c7df5b9 Author: Luca Stefani AuthorDate: Wed, 05 Aug 2020 11:57:08 +02:00 Committer: Borislav Petkov CommitterDate: Tue, 18 Aug 2020 10:50:07 +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: 9554bfe403nd ("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);