Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp817036pxa; Wed, 12 Aug 2020 14:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNN773SoJkQY9CxKLpaEJsqSjxT1kpHGuqVYdNNUXdAY489bcmep+k4/vfKBcCBiOl2qh1 X-Received: by 2002:a05:6402:1bc5:: with SMTP id ch5mr1752549edb.364.1597266624959; Wed, 12 Aug 2020 14:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597266624; cv=none; d=google.com; s=arc-20160816; b=AR/yKrAKRT6tGjVgXKMl/NKX4INdFWGp7BC7GaIhTOwKzaoLr2f0tgnsIESSgWccnm Lm6hLjhrDX1O2AABYI2ecG0AXR6jojFXqAMrgvTzBNuAXClRt4YqiJcZ++Ony7QpMmFY TyRprF7wMepqfpe2QFsopSPCZdYp6XHugASUwK7c360zXIWa1Ur6NwfcS6k32aCndx4t XVV1ivRarNKqMJHdtukKriZf11+FUrlkIKkndAM+VFnZTAnn4bCOe6rZYbkli9JwJr6R c/Vw8wATI/IYgxTIbjN7aJTOTdSVx98naSqSuGOFUN9QQWxBSXkaGFDSPxZxd4UT6IAP 0obw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bAaQQ7e9aAoGDmzOJ51xKy0+RuDHeXB46TjNq9EcMXw=; b=RHJbg7ygb2hQM6/+RA+fPbzZOMsHmLAiKplxmD/68NiTS1fguPv4Dj/m3BGzoIqeNK SnYRXM988HhyEGUh8y6jNT/xcFyHCvcKYO1B2CKntbpJeMK8sbzcAUev5BH8kYEsU2NK bZ3EHJjmT5Hr3PNsLVjae+SlfKuJ9XfHe6N51mU54QS4ILNXUGbgAm3b7oopKECFc8kj rh3EYWXXkpMTHkc4gUMTKdXYBsMfofS2BkAsmUmIYgZwlqa30U98iD1sCtuj3iFRSPtf afcapTAepFAQ/20gHIeF90pBRVJVk1OVUUJHtw8ziRUZ5OzvtX1MdccjrwDLCANgQgBS cpyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JJyY3xwd; 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 b6si2135823ejb.68.2020.08.12.14.09.47; Wed, 12 Aug 2020 14:10: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=pass header.i=@google.com header.s=20161025 header.b=JJyY3xwd; 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 S1726531AbgHLVJS (ORCPT + 99 others); Wed, 12 Aug 2020 17:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbgHLVJR (ORCPT ); Wed, 12 Aug 2020 17:09:17 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992BBC061384 for ; Wed, 12 Aug 2020 14:09:17 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id f9so1733529pju.4 for ; Wed, 12 Aug 2020 14:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bAaQQ7e9aAoGDmzOJ51xKy0+RuDHeXB46TjNq9EcMXw=; b=JJyY3xwd5EgGKBxKKs4dXLXjk5wiLbg072kKzLvv50o9mgzTqqrQJL+xdDaimziA1c 8lAJxeWVFouTjEHC3p+FJBHv9MkkQXebphjhv/87vMA03btiQzyISXigPijA5x2KQoW5 nUw89h2rmkM9A/ksku0Eaj3hOHIgdGgwzjFhnjtQSgNPwpja4IRE5ffrLMK8bI+rSdPx zrd1zLC5Ud5n5igqgNzbn4hLLF+kvpQzPaA3G36KP5d616DBAw5ejnhDSpbZCyii00Ts 0nv+48h+3RkOCkQQ7zTOGGL8XFhl0NtwiI7rHihoXoga1nJQSXnDWdFxDtA0zFVtgo2u 58kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bAaQQ7e9aAoGDmzOJ51xKy0+RuDHeXB46TjNq9EcMXw=; b=H1V44ACisHHXf0Hn2Ec3AarnYrXAyyFvhTPCZMy4vyy1nj86lLIdX8o+X8DnVUoZqO YKABRGC9VT9+bOfBjWfUMdUNYiiwgc7Dipp0dt2atbyC7M7uc1myUAXk443SQcIPtFIQ q3+2CYfBX+yrxCcwu77cMcvb+363XMyrz9J2kzbUO6SW0PKhQoo9OnGy1wshELR0PGCj 8PkEfdFPtGUR24AffwKNO8B4aN/M2J9sKGc/n4xo8CXJv05G1lidoJMS1Zg4vEhJnGJ3 d8KhyxXU5WDebanOGbrGSWzPu9oHurBZS7YCEaQCnVyz7c0r814kYizslBYcui/tndb4 /sww== X-Gm-Message-State: AOAM530CmevVXzaVkQV9dzkAK/PmMcmI9BMUT8wgGX0GsgjFaC+270hR MIqnfeFgebh74VWcRXL3WfZRCg== X-Received: by 2002:a17:90a:2210:: with SMTP id c16mr1938422pje.65.1597266556824; Wed, 12 Aug 2020 14:09:16 -0700 (PDT) Received: from google.com ([2620:15c:201:2:f693:9fff:fef4:1b6d]) by smtp.gmail.com with ESMTPSA id n1sm3437625pfu.2.2020.08.12.14.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 14:09:16 -0700 (PDT) Date: Wed, 12 Aug 2020 14:09:09 -0700 From: Sami Tolvanen To: Luca Stefani Cc: Tony Luck , Borislav Petkov , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] RAS/CEC: Fix cec_init prototype Message-ID: <20200812210909.GA3283093@google.com> References: <20200805045955.GB9127@nazgul.tnic> <20200805095708.83939-1-luca.stefani.ge1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200805095708.83939-1-luca.stefani.ge1@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luca, On Wed, Aug 05, 2020 at 11:57:08AM +0200, Luca Stefani wrote: > * late_initcall expects a function that returns an integer > -> Update the function signature to match. > > Fixes: 9554bfe403nd ("x86/mce: Convert the CEC to use the MCE notifier") > Signed-off-by: Luca Stefani Thank you for fixing this! [Note that this v2 email never landed in my inbox, perhaps Gmail filtered it out due to a missing To: line?] > --- > 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); The type mismatch broke allyesconfig in my test tree and your patch fixes the issue. Please feel free to add: Reviewed-and-tested-by: Sami Tolvanen Sami