Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753167AbaDVCCH (ORCPT ); Mon, 21 Apr 2014 22:02:07 -0400 Received: from mga01.intel.com ([192.55.52.88]:25423 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbaDVCCF (ORCPT ); Mon, 21 Apr 2014 22:02:05 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,900,1389772800"; d="scan'208";a="524583856" From: "Zheng, Lv" To: "Rafael J. Wysocki" CC: "Wysocki, Rafael J" , "Brown, Len" , Lv Zheng , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" Subject: RE: [PATCH 1/4] ACPICA: Add to remove mis-ordered inclusion of from . Thread-Topic: [PATCH 1/4] ACPICA: Add to remove mis-ordered inclusion of from . Thread-Index: AQHPXaI9lV/jhfK5X0Sgd13es7oQhpsc3PXg Date: Tue, 22 Apr 2014 02:01:57 +0000 Message-ID: <1AE640813FDE7649BE1B193DEA596E8802556F33@SHSMSX101.ccr.corp.intel.com> References: <330810301fa94a244fe1a755e99246a2a5778153.1396930406.git.lv.zheng@intel.com> <3086544.JUcChlMM9C@vostro.rjw.lan> In-Reply-To: <3086544.JUcChlMM9C@vostro.rjw.lan> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id s3M22Hw9003300 Hi, > > +#define ACPI_NATIVE_INTERFACE_HEADER > > This is not good. > > We don't do things like this in the kernel, because they are confusing and hard > to debug if necessary, so please find a different way to make this work. I use this extra header file to collect: 1. static inline OSL functions 2. divergences of prototypes that haven't been back ported to ACPICA. This file is useful for ACPICA release automation. There are the following concerns that lead to the use of this solution: 1. for this extra header file itself A. The new header file is OSPM specific, thus it needn't be upstreamed to ACPICA; B. Since it needn't be upstreamed to ACPICA, ACPICA needn't determine the name of this extra header; C. It has to be the last file included by . 2. for the file that includes this extra header file A. Currently there is no OSPM specific code in . Thus I use a macro so that there is still no OSPM specific code in and the name of the extra header can be determined by OSPM. If you want another solution, is the following acceptable? 1. In #define ACPI_INCLUDE_EXTRA_NATIVE_HEADER 1 2. In <- this is an ACPICA header file, #ifdef ACPI_INCLUDE_EXTRA_NATIVE_HEADER #include #endif Note that in this solution, the name of the extra header file will be determined by ACPICA. > And the name aclinuxxf.h is not one of my favourite. Since this file needn't be upstreamed into ACPICA, could you help to determine it if the acextra.h was still not acceptable? Thanks and best regards -Lv > > Thanks! > > -- > I speak only for myself. > Rafael J. Wysocki, Intel Open Source Technology Center. ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?