Received: by 10.192.165.156 with SMTP id m28csp785150imm; Thu, 19 Apr 2018 07:32:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx491Kk1jTqV5nP3Ii9XWyfHqYG/BbYnjU3cEOaTCP7Mfm8LoyTwjZFPeV/DXJr2EG4UbclyB X-Received: by 2002:a17:902:bf41:: with SMTP id u1-v6mr1817806pls.257.1524148336569; Thu, 19 Apr 2018 07:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524148336; cv=none; d=google.com; s=arc-20160816; b=X54cr1SpaM4gRlXURKEyO7G0Za908zkj1JVUDFZuaUAmpgEpcQKHqUP3PyDtoqO7ew ZTvXmuO5aYma8cgSHED59AyG/MuTEQ8GGfmM6/qkVys02RJ42DbppPIvKO+VxNMgldLT 87y3oYqczLkQZNq9UsLbPR/g916IPx21PhaclMDbDut94xmzT1EI02fTP1gRl5UiDYsx XlW7beiyTDO6qhY9o8itTaaM3bWblQXGc71c9fpWAmCaYfuci0Qsmz0NVSo0688KB1Zk 8TdEqdq+7Z86wcN9otDyj9UPlJxcDYGbZnEenIJxPo59DKSSI1PoCH1VFBIaEQ89UfP8 G/BQ== 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=+Cf+JiIfaMUVTu4HPSlAFPTs/gFrnKf4RZVp7pkMhiU=; b=roIaDHaFMhrA53Cpn6VLlufY/Zw5mHhIClTbDS3Nm4sjed9LnS2N2zWXBZ137kz/fg B8K+/jmDWG9BPPSErro/BLS7hFIlKeryQSMUGgNH60EJrB0HXIm8kjx4YR8/uzq5OBTU 62C5iEuVRLWtzW7LKqfx1AngU6qLQTuexGVkhFxLuiCdJaTJV39Y+5aeEeEViUjIAuKZ 6HW2HKpF+sRRCRicLAvA5PSmmfb7kCamfbroOMyaP/mHy3dT+n8NwkoAWTau+LsUZzLZ u0rZddy7FH0Xe0KLKDNJhVbSkRksEZU8QQpNrF2PMJxZGKLQ+1iUaM5jWIRyXB+F7zzU v9lw== 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 h6-v6si3389242pll.40.2018.04.19.07.32.01; Thu, 19 Apr 2018 07:32:16 -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 S1752640AbeDSOal (ORCPT + 99 others); Thu, 19 Apr 2018 10:30:41 -0400 Received: from mail.skyhub.de ([5.9.137.197]:33064 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbeDSOaj (ORCPT ); Thu, 19 Apr 2018 10:30:39 -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 qlfoTNIlZLF6; Thu, 19 Apr 2018 16:30:22 +0200 (CEST) Received: from pd.tnic (p200300EC2BCA860048F6EE183CD5DF96.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:8600:48f6:ee18:3cd5:df96]) (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 D50C91EC0136; Thu, 19 Apr 2018 16:30:21 +0200 (CEST) Date: Thu, 19 Apr 2018 16:30:19 +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: <20180419143018.GC3600@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5f26275c-5896-c552-69c4-78e5aaaa6558@gmail.com> 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 09:19:03AM -0500, Alex G. wrote: > On the other side, you lose readability as soon as you get a few more > handlers and the function becomes too long. No you don't - you split it properly. > And more importantly, you lose generality: it's not obvious that > there's ghes_edac_report_mem_error() which too wide a context. I don't understand what that means. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.