Received: by 10.192.165.156 with SMTP id m28csp943275imm; Thu, 19 Apr 2018 10:03:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+N4Vp629YiPGRwEpA5xLXOe5guNOmSDoQPvbLUJ04ooehMKxL2qxmJGWLwt9rqiTJxvdRI X-Received: by 10.101.69.1 with SMTP id n1mr5655886pgq.175.1524157382110; Thu, 19 Apr 2018 10:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524157382; cv=none; d=google.com; s=arc-20160816; b=wQyItahNLJJVwGntowSWi9ulXm0kYT1f6o9z2aQAiy9Cm476areChK+pdrCXGzr2Wm Iq3iUgPYr3BhDHNBawJj9cnKai7X31nwSu7OFBQYxKHMoptbIfcabbfzEpIo1YIAEvYH gUfTIZ0DyB7uCCkqeiCfSs5pxuVhp60ZIMMSecbOZ9F0bi3E9FPas4vw7/1UuA6+zmug 3AwWW/eGIRtcasmrOYD22oYG8rZgxMyQiB6gsVKtYGGcZwtJOgZ2VuQ4TJ/3yoFhLXur lWnInxsxjZ6Tk0E9swv9oT72FmO21sM/fjPejm+7Rkv5nNPhgsvPb7bGPSVTMQykBY2S UsJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=LLQvtTsi1j08pJ/i3ZRPIxruHbgKbeVLe48RtB9tMRw=; b=0Y2zy4VP72DWriXw+AaewS+SBFjhVI5qOk73c+ijbzOQsZBLOHHI2fPemrDk5bslpn Ve1eWAnkMiXhqBBB30MFhWMZKCYwZHxBp1YUUKjvJbVCeWxgAVW67+IH0JqIxVSFa4p4 N7Cnw4OYd8fk3/RhQi2+fef6+0clrXr97Cj9yFYde8remxkXisWa26NHHcR+ZLE65GRP XZPWsZdROjx3U2VwOh+Ji1uFcmAcy+K7sML94RPeeldjp/ajYkSOgtzALg+58Q0eEgcj ZHUajTB3OZW3nSAUoX2fw7SkNz5ZmaMZwnyAnF6BqkgkrceEhDt9dSsVuNxLdmdJ+B3o jj8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d19si3044657pgn.379.2018.04.19.10.02.33; Thu, 19 Apr 2018 10:03:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754165AbeDSQlD (ORCPT + 99 others); Thu, 19 Apr 2018 12:41:03 -0400 Received: from mail.skyhub.de ([5.9.137.197]:38930 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753790AbeDSQlB (ORCPT ); Thu, 19 Apr 2018 12:41:01 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oH68zETX8qbD; Thu, 19 Apr 2018 18:40:44 +0200 (CEST) Received: from pd.tnic (p200300EC2BCA860039E42A6993E906A9.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:8600:39e4:2a69:93e9:6a9]) (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 70A821EC023A; Thu, 19 Apr 2018 18:40:44 +0200 (CEST) Date: Thu, 19 Apr 2018 18:40:43 +0200 From: Borislav Petkov To: "Alex G." Cc: linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org, rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, tbaicar@codeaurora.org, will.deacon@arm.com, james.morse@arm.com, shiju.jose@huawei.com, zjzhang@codeaurora.org, gengdongjiu@huawei.com, linux-kernel@vger.kernel.org, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, devel@acpica.org, mchehab@kernel.org, robert.moore@intel.com, erik.schmauss@intel.com Subject: Re: [RFC PATCH v2 2/4] acpi: apei: Split GHES handlers outside of ghes_do_proc Message-ID: <20180419164043.GC5635@pd.tnic> References: <20180416215903.7318-1-mr.nuke.me@gmail.com> <20180416215903.7318-3-mr.nuke.me@gmail.com> <20180418175201.GI4795@pd.tnic> <5f26275c-5896-c552-69c4-78e5aaaa6558@gmail.com> <20180419143018.GC3600@pd.tnic> <8f467611-16a1-8fe7-ea12-e2e29023e4e8@gmail.com> <20180419152933.GD3600@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 10:46:15AM -0500, Alex G. wrote: > The bulk of the function is the if/else mapping from UUID to error > handler. I don't see how that can be easily split up, hence why I > originally resorted to the mapping. As you said, we'll keep it simple at > first. So that function is 43 lines now. Why are we even talking about this?! Just add your UUID check to the if-else statement and be done with it already. No handlers no nothing. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.