Received: by 10.192.165.156 with SMTP id m28csp848203imm; Thu, 19 Apr 2018 08:31:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/MFFMpALiulJaxrdVoJZIW+PRb4GO9JkTjd40n3kgBPAI+A/GA7HqMXu/NuwPKJJ9j4+cW X-Received: by 10.101.100.144 with SMTP id e16mr5472307pgv.407.1524151871292; Thu, 19 Apr 2018 08:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524151871; cv=none; d=google.com; s=arc-20160816; b=mDVjvCqD9QsKNbwvZYiH+FWxK8ChiK1fqHVf2ZjafEEhAdSGSRKyLk6bom5cYS76Cy hiF6a4sHmTeHN7WxrSl1nF+nKqNESZIvKLjEFC+1mzGDYzwwH8C0Hz0HYRbFs8kdYpFh R5a7wUEcV0L+gLHx3YoW3WjIW0PpFjVk+RNdl8lHjUBmwczLdjEEZBXKYcYr6xencOjm M0Xo0M17ZpGLkiqFdDia6tRDUb+e4QTSi/+XpN5UIlxd9aZWq6NUFESurfyagKtvphlb aX2zf81VxxPOyIzULNgbtt80wIlHA7LCjFI3xxkLF1enkPCFsLCXgoOWI+9i4EPatnMK Z5jw== 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=Dwr7T/peE//VXKDSg91Tv/3haDbmFKPg1+3Z6QYYYmI=; b=oKmit/RX3LLp4+tZBat2R7vdv3hJsMAdeep5PktXcval1kOmdp0DG8ybb1GNrgW6MA +z7NVhW52sfi+ytC5llKp4HV+pM4G0E/QDJkCkimSQ2gywXrTYd826HxOOqY7rhnWzTt /51HRRHTHBycRugoTOi8VU1EHK3hgUiow5KIy0wBwZ8mgqtoeLSDcnsE1JSyr0Ub3SHL p1fxaRcdm/beP2WQJBCdByNUD14RGshhh/ytJpFVedVVatL72zdKoj+1yY95c4kUnqW1 puNeejelVGvdxwL132tkk7awL44SVWODWwA/3xwWQP7RBGjNjA8+1CuoqmkMoZGG0wlE TYJQ== 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 g33-v6si1557708plb.297.2018.04.19.08.30.57; Thu, 19 Apr 2018 08:31:11 -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 S1753190AbeDSP34 (ORCPT + 99 others); Thu, 19 Apr 2018 11:29:56 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35906 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752831AbeDSP3y (ORCPT ); Thu, 19 Apr 2018 11:29:54 -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 0gQMIDGym3bt; Thu, 19 Apr 2018 17:29:36 +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 8FF691EC02C8; Thu, 19 Apr 2018 17:29:36 +0200 (CEST) Date: Thu, 19 Apr 2018 17:29:33 +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: <20180419152933.GD3600@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8f467611-16a1-8fe7-ea12-e2e29023e4e8@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:57:08AM -0500, Alex G. wrote: > And that was the motivation behind my splitting it in this patch. By "split" I don't mean add a function pointer which gets selected and then called - if the function becomes too long, you simply split the function body properly. > You don't need the entire GHES structure -- wide context. Individual > handlers should not be able to access the entire ghes. But you remove the @ghes argument in patch 1. So what are we even talking about? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.