Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4109087pxk; Tue, 29 Sep 2020 14:48:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOTcBXLCBjp+bSobpJzcV769nDyhNiuL4/HRwI+SZviDyHtv38UD6SCVXm3Y4Eu0hRIfjM X-Received: by 2002:a17:906:4e4a:: with SMTP id g10mr5793161ejw.274.1601416093178; Tue, 29 Sep 2020 14:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601416093; cv=none; d=google.com; s=arc-20160816; b=x+ULwSWgMH3c8ktJ1JQcJprO0cEBmp9HmO2Ahm4jlh+cZFpfoaZTpCHojx1C2qBiNW WLoYcz0bZiduXlOBNIfX7H4dOzfg7LQz0pQOZyp+zt9dSs0lzXcNO/YzZify953Opibd dtmFofs6kPvftchub8S9h7KyKl0k2OJmKb6ae6pmMyQAKKo19iH7EsKiM9GxQ5K3ocJF V5ARPwQFgdHQQlH0OaV5C/yXZBcGEG+Jtbf+U0jpXo3xuA8FhP2x0K05hXmGCqGkOzeQ TTNOghOj8iQlWOK7OOHq1kErMXM8x9LKl8fh+EHKGD7IZsuXl76VtpjNlAHIpWoHP51S MN1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=ldzGNGDZyBtUZ+HZEhFsle3HftCI7jj5VijuIes3XjE=; b=INDZhz5iISxVjT24dsXQCkA1exxoMCNAyL8AIyAeDraw/PsoUmTZOQzp0Cf7dDpBZ2 Rx+NZcUXym+sSslTxyuTBJQX9e6iTovDits1WS3Mor+cpOdegisekxKWBY33XN8ix8Uj /g/z+9TEq/Ll/+TxsQMqPybWuDs4/dLP5Y+LMnl8wvalrBd+0saIhyn74m3uB0nx8eS5 60699oSy6rpmp5ZtXbEp8zB+aSMo50uLeKBL0ZhbrryZupQBKFOuo+yKMhEZ+GoBaILQ VgYtkOUwSO3G/hshfNPhStW6mjhBUNambcrM3gDQOhlXN66EkYUysmdYmolPyauxON9N Esjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="A+2S/PVg"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si3339493ejd.647.2020.09.29.14.47.49; Tue, 29 Sep 2020 14:48:13 -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=pass header.i=@google.com header.s=20161025 header.b="A+2S/PVg"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728291AbgI2Vqj (ORCPT + 99 others); Tue, 29 Sep 2020 17:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728301AbgI2Vqg (ORCPT ); Tue, 29 Sep 2020 17:46:36 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD813C0613D2 for ; Tue, 29 Sep 2020 14:46:35 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id b8so6377897yba.10 for ; Tue, 29 Sep 2020 14:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=ldzGNGDZyBtUZ+HZEhFsle3HftCI7jj5VijuIes3XjE=; b=A+2S/PVgCIFIgqA1Y+x6xPf02q9T8t5ybB0PjXezPYyVniPZlLdcnNuT2gDH8pQxqt 4DLm3YscI15WD0HXcWi6zP7QdgI6QCeIg3Wwy7DNEd8iL5lAZ8voCtgTv/8Ph33fQX5R cCWSLAJg2dq3VlRuefEs9TYNxSH4LM7WAVyGPxSW12MYXC5swunyjdO/MTHwRwXmOpj6 zrw6Qc/V5h8ue6BziUtDKZMjN6MdmLK0e7IVaBoAq4UiLgXu2BjcDgz4VCICGb5V+2pt D7KNuJtao0SSq+uSZ5vw6TziaUeYi9eaMBYeiVf3XjvW5Jnms1loYQA94qhYeykro9EM +7kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ldzGNGDZyBtUZ+HZEhFsle3HftCI7jj5VijuIes3XjE=; b=IHhAxfykdwXFee0YXv/qteKYA9OMe9BtF2c+f9HPERUDaPayOkIEyic50Bi5doYx6K 19zdqU915Dnd+UEuivKOqo0uQdcA+a4UrF+9Rxe/RGwNLA/FP7W3R+L2BIo5ZyBN+miX 4tCaBaZzXVuP1QS4tQ/tJoHGdZyV3gjKrS9JLZq4ByxxOiVqdVwc1g+o+R65ZiwJ5lNM Gkah2DvwdO9fzc5smulqgJxiB3PoBbmwLs3Cd8XWKhimhA0GyVO2y13iM7/yZBWTZTuw t4+jbtdJ0rx/480sxJCfdt+FLD+pEBp6oVrHLq6oEgeYp+57A/P+MK9V7Q1IzNz5wUM/ y+4w== X-Gm-Message-State: AOAM530vgAXuN9GbTOTNdeo0LZiVOk0RdGFcAtfT6Btbps57iMj3pHPt xFJKeTnYHWrC4enCwRAyaQMphe77jt3oeZ1zMfE= Sender: "samitolvanen via sendgmr" X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:f693:9fff:fef4:1b6d]) (user=samitolvanen job=sendgmr) by 2002:a25:ad43:: with SMTP id l3mr8526653ybe.157.1601415995012; Tue, 29 Sep 2020 14:46:35 -0700 (PDT) Date: Tue, 29 Sep 2020 14:46:03 -0700 In-Reply-To: <20200929214631.3516445-1-samitolvanen@google.com> Message-Id: <20200929214631.3516445-2-samitolvanen@google.com> Mime-Version: 1.0 References: <20200929214631.3516445-1-samitolvanen@google.com> X-Mailer: git-send-email 2.28.0.709.gb0816b6eb0-goog Subject: [PATCH v4 01/29] RAS/CEC: Fix cec_init() prototype From: Sami Tolvanen To: Masahiro Yamada , Will Deacon , Steven Rostedt Cc: Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, Luca Stefani , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luca Stefani 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 569d9ad2c594..6939aa5b3dc7 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); -- 2.28.0.709.gb0816b6eb0-goog