From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F4D2C25B0C for ; Thu, 11 Aug 2022 07:40:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234352AbiHKHkr (ORCPT ); Thu, 11 Aug 2022 03:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231336AbiHKHkq (ORCPT ); Thu, 11 Aug 2022 03:40:46 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AFD37B7B9; Thu, 11 Aug 2022 00:40:42 -0700 (PDT) Received: from zn.tnic (p200300ea971b9870329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:9870:329c:23ff:fea6:a903]) (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 0FCA51EC04DF; Thu, 11 Aug 2022 09:40:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1660203637; 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=IpisQAcpLwKm5/YV4D7g0u8+6Gpd+NBEfNOOTqDSHYU=; b=Qeu3PX9QILrc+fCZi2MaaQdWTcEGfGbw7TikaXiXd90Hoy9taNA0ZkFZ0HPsap/Chwc3xS KXIIgmNXX97gW1Sfw/BXDyOnGTcXyAwAjo2lYtT3ucne3Y0N/pPafwr+IAdg53kVrJZklx 984VT/vKwSvuKMH6/43gsPCH+BoTTQg= Date: Thu, 11 Aug 2022 09:40:32 +0200 From: Borislav Petkov To: Justin He Cc: "Kani, Toshi" , "Rafael J. Wysocki" , Len Brown , James Morse , Tony Luck , Mauro Carvalho Chehab , Robert Richter , Shuai Xue , Jarkko Sakkinen , ACPI Devel Maling List , Linux Kernel Mailing List , "open list:EDAC-CORE" , nd Subject: Re: =?utf-8?B?5Zue5aSNOiBbUEFUQ0hdIEFDUEk=?= =?utf-8?Q?=3A?= APEI: move edac_init ahead of ghes platform drv register Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thu, Aug 11, 2022 at 12:39:10AM +0000, Justin He wrote: > > +static int __init ghes_edac_init(void) > > +{ > > + struct ghes *g, *g_tmp; > > + > > + ghes_devs = ghes_get_devices(force_load); > > + if (ghes_devs) > Should it be changed to if(!ghes_devs) ? > Otherwise, this ghes_edac_init() on Arm will always return with ENODEV > because ! ghes_get_devices(). Yes, of course, sorry about that. I mean, for a lack of a better idea, it returns a list of devices... ;-\ Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette