Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp212089pxa; Tue, 4 Aug 2020 22:02:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyx5YoW+onFSNE96UNAoYlZ4L4SFg+DX/NUCnbbYCv6V7U4fCzdkPTzzd++icU664o36vD X-Received: by 2002:a17:906:a41:: with SMTP id x1mr1428054ejf.209.1596603753299; Tue, 04 Aug 2020 22:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596603753; cv=none; d=google.com; s=arc-20160816; b=X4gqBdi3W0tb1FlDeOpo1C5CxNqX2iq34qHjhIaDWzSmx2LUg7+DdHTKo7z0NBXU96 kTze1//ecXkh6/JsLwVCxhNfAviGOScx6nAS7kKml2XyYU5ITBkMtTpDAEsAtBR2j0KN ck8/jNDMjcUeF/Ofs7eF2hCe+ZOVsXvtWLmDfuUHvUVoiI656IkXY9P+IvV3pRq778s3 r2E4G29ktL1taxkm3x+AnOkg2wgGhYOGNPHXdeXURVoFjjhJIcq/5K1DDub8G2HWCZSP 4iGGvX9cdwKePUIXBzUlpelHVLuG8khksNlByajISQlWmc0VsQS1RPdrTBnD4INSZydp +lNQ== 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=M3haVkitNUiWuc7NCIim2ARWnDN/wpkJsTyk3+Ptaso=; b=ttVozEVTKWR0tQkEkEXP4qmI8B5e6kEP0bxbqkxIOhr8zU1fWYmeO7+2YOVY7GGlCG BazmuN/LJraARYrwVPbQA7ZnaP3cjBCp61iAYvJCK8aAGhDDuHKtGHXE8Zvc9b2of6qX 4EDxqIgSNp9KO3iNR9YxWgAhdSEgb4cRBbaoUrgdkkAM54QfQPR0GkfsUT7CEAVG3ss8 vVV9wZnRkGMUnc4nAZR6fVjYpJcsVfOkIgMS/zeBgIFU5eBKpwBcdzEApwgVs2WeoCzQ GLUEOGErvaBPrfYTZ1TMy47weuDOM0lMOLQBr55lIoMQ0F86fsy73iiNTcfmqhXa+YVu W1GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Hm+vhUbO; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si600356ejj.578.2020.08.04.22.02.10; Tue, 04 Aug 2020 22:02:33 -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=@alien8.de header.s=dkim header.b=Hm+vhUbO; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbgHEFAb (ORCPT + 99 others); Wed, 5 Aug 2020 01:00:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgHEFAb (ORCPT ); Wed, 5 Aug 2020 01:00:31 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F66BC06174A; Tue, 4 Aug 2020 22:00:31 -0700 (PDT) Received: from nazgul.tnic (unknown [78.130.214.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9267A1EC011B; Wed, 5 Aug 2020 07:00:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1596603626; h=from:from: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:in-reply-to:in-reply-to: references:references; bh=M3haVkitNUiWuc7NCIim2ARWnDN/wpkJsTyk3+Ptaso=; b=Hm+vhUbO75VtUiOsdn2m1nNHe8V07GnWzm6HS3yR8ekG4/FriMesY9AbCnqW3xGDueT/f/ fzNwWc5ECYygQ5Iikp0On0tyGy6cQ41kUkJoTiFgivsbTlFKlIr7ZHzWuvlbee6NJX98j9 mJGfFdkRggKXd8J2iDxJwX+zh1max8I= Date: Wed, 5 Aug 2020 06:59:55 +0200 From: Borislav Petkov To: Luca Stefani Cc: Tony Luck , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] RAS/CEC: Fix cec_init prototype Message-ID: <20200805045955.GB9127@nazgul.tnic> References: <20200804161847.825391-1-luca.stefani.ge1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200804161847.825391-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 On Tue, Aug 04, 2020 at 06:18:47PM +0200, Luca Stefani wrote: > * late_initcall expects a function to return an integer Please write a proper sentence for a commit message. > Signed-off-by: Luca Stefani > --- > 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..e048e0e3949a 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 0; Why 0? I'm thinking all the cases when the init doesn't succeed should return !0... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette