Received: by 10.213.65.68 with SMTP id h4csp2119861imn; Sun, 8 Apr 2018 20:11:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/VjgcLzB+i5NGB7HwEEqOkjudeDkEnM7zyJ1aGyfGxvINrK7ABf9USqfdbzheNCmKjmm1m X-Received: by 10.99.186.28 with SMTP id k28mr2685668pgf.351.1523243414388; Sun, 08 Apr 2018 20:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243414; cv=none; d=google.com; s=arc-20160816; b=e8ZZhklEdytHta7sfT9kbQcreGIij1ApblCbSl7ujMV6vWpfpnFc7NptZiPTa1ePdH b0YlITZKSE9XG82VQASMUNUpchqx/qrdTavzCswKsSYCbm+2dk92VYSesjhYBOBiS4F8 r9h83Kfp1QDuwWVdrW2/Usr0AODQdLv2zxfk7X4+6KC5mMvWfmRwYlAWlCa7fmlIXKrm BFKm8GkutG1fIIQ1ilFI/IU/ghrPewGUUFhtpUOoml2jdExrODFDY4KcfLIhS8rXah8F iHlRIoZgn6yGsVVSBHsgHDdNEURtmXaz5ld++2cvwxmcruhjlag0Kg4auB4CZhJ5dGi9 iCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=dC6dHuQxyv3Q0EsfaFHeHVDg/64BpEKCvGurMVI/gr0=; b=BMqLcg41MybMR6f+OyiI6Nd0a2lN+Nh++iRqCbEzHeVIBnPJ7TX9Fj/GtdZ4bqEUY0 0jjkcIz/D04jV+Wo5uoWBeys0NykYK0gZLKbdIbGmJbjC+NLP2vU8zYY/uG2L51Cl4mr MccI+pTLcHZRR37rD3VELkv+zGFcxhNR45xD6HjdZc53C/GelhOQkKAF/RoAte4mF04O ZP2P+IMjssi8lzxjjz//SBgev4pCWvbA5zC2M2a5PNLIuJzDfTObyX02+HcaxnZqbfRr BGTF3GVQ5eiqnYhjAecxVEJh+PPV7u4UvbMiThExoLeGdXaPTfiLNSD+cdWO5hd87GVu konA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=XkMy7EFk; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si11335943pfn.287.2018.04.08.20.09.37; Sun, 08 Apr 2018 20:10:14 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=XkMy7EFk; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758049AbeDICjM (ORCPT + 99 others); Sun, 8 Apr 2018 22:39:12 -0400 Received: from mail-cys01nam02on0094.outbound.protection.outlook.com ([104.47.37.94]:22752 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755569AbeDIA12 (ORCPT ); Sun, 8 Apr 2018 20:27:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dC6dHuQxyv3Q0EsfaFHeHVDg/64BpEKCvGurMVI/gr0=; b=XkMy7EFkDbGksuP9x2F5IIquFJDI4AtlSwdlrFgJVmWT3uJKDkMK1ACrKsXtQhCVDXplzU1A3p1tUu/hxFeo7GQLathMOpbSzBIqgApkQt4sqLFGNYgUZYhP0AZBhcH8wCIBUvM72R9NaaT5S2ngR2mYhezOofLOzWLz+aqBuL8= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1031.namprd21.prod.outlook.com (52.132.128.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:27:23 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:27:23 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Lv Zheng , Bob Moore , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 040/293] ACPICA: OSL: Add support to exclude stdarg.h Thread-Topic: [PATCH AUTOSEL for 4.9 040/293] ACPICA: OSL: Add support to exclude stdarg.h Thread-Index: AQHTz5j30d06Ra0ds0S/V7jcLhLB1A== Date: Mon, 9 Apr 2018 00:23:21 +0000 Message-ID: <20180409002239.163177-40-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1031;7:Ki+JJXdo0wW/2tB3hwBOo5raaqlwl8lObUfBgN33niJFxFvZyB3d6jV2i3YxeEi41MFOfXbWoq2Ig21vhNSJ+5bh9LxnpFSnvag5x6uAAV5aQcwlIImqLI8+GbxLll6RC0OKsXUacGpxS5imRjwO8foALKouY+P6ZhBBnWWHZ4cDKbjOI+Sd+/7axvDtsENPSALAbeAL8Nx7ibKuaOt8T9IRkNlIh5tGJLtUNL11hTfBN4dnLLtdZrGunaCy1BFS;20:G+J6s4AKMgfutIl/Zv7kHMkX6b2MacC1OuuLlRGB1HeWqLCVZ+7nMrp37BEu+/xons52OdCB+E/j1WWBYiw01+YXrCInrmvvWLttVYHTLWDqLF+YwgSYvt2v6x6nfjqn3jvxCo3VIig1wkRTLlX9cH5TIppyuVfYjmXZ4xzGGyo= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 8884fd0a-99c9-4734-9526-08d59db0a9d7 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1031; x-ms-traffictypediagnostic: DM5PR2101MB1031: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(166708455590820)(146099531331640)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1031;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1031; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(366004)(39380400002)(346002)(39860400002)(189003)(199004)(2900100001)(10290500003)(99286004)(76176011)(14454004)(966005)(7736002)(11346002)(26005)(86612001)(72206003)(478600001)(36756003)(106356001)(66066001)(2616005)(186003)(22452003)(86362001)(68736007)(305945005)(54906003)(102836004)(486006)(110136005)(316002)(6506007)(446003)(107886003)(53936002)(4326008)(105586002)(6306002)(6436002)(6486002)(476003)(6512007)(5660300001)(5250100002)(25786009)(3846002)(6116002)(1076002)(97736004)(3280700002)(2501003)(2906002)(81156014)(8676002)(10090500001)(81166006)(8936002)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1031;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /pemL6vf71y966lF1kh3Vou/GlD7uFPrnHbZlsY7AT/QPYRWUbkM4Pb2Dzzpa9zUSDRhIzlG1b5bTXSfC6kEzuM3UlVKm7bIQhIWlhShz5vyT+jrJZgi3ZkKSFmu5NHYUr865dgHLYmp5yAs/7GKkyGPrWXBqs816f8XjfhsKBEszrGlGqBE0MrcgFfHM9ViWS+zpOeKrm96WbYgvn15OqQH+2UwyhhO+KwOefdJoNT3EaME2WENJB2Ia2nl3EJzfn0CFFYk8LW3GjgmfpsKyIkuhWwgfMvJ/4qYH8bS8+Nayi4WGLX26GHFgfi58lSC6sEJxF/IPTshS80qDGUmX0M6YMoFwBQhevtLTb+aexkHeW05xs6x9JYL8MRJS721+pt0mlICIprJO1Bv/yUT/RkYQBOfejN1D5+cRyE0BI0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8884fd0a-99c9-4734-9526-08d59db0a9d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:21.1592 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lv Zheng [ Upstream commit 84676b87b27d8aefafb9f712a5b444938f284513 ] ACPICA commit e2df7455a9a4301b03668e4c9c02c7a564cc841c Some hosts may choose not to include stdarg.h, implementing a configurability in acgcc.h, allowing OSen like Solaris to exclude stdarg.h. This patch also fixes acintel.h accordingly without providing builtin support as Intel compiler is similar as GCC. Reported by Dana Myers, fixed by Lv Zheng. Link: https://github.com/acpica/acpica/commit/e2df7455 Reported-by: Dana Myers Signed-off-by: Lv Zheng Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- include/acpi/platform/acgcc.h | 10 ++++++++++ include/acpi/platform/acintel.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h index 8f66aaabadf7..9e3f7618593f 100644 --- a/include/acpi/platform/acgcc.h +++ b/include/acpi/platform/acgcc.h @@ -48,7 +48,17 @@ * Use compiler specific is a good practice for even when * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined. */ +#ifndef va_arg +#ifdef ACPI_USE_BUILTIN_STDARG +typedef __builtin_va_list va_list; +#define va_start(v, l) __builtin_va_start(v, l) +#define va_end(v) __builtin_va_end(v) +#define va_arg(v, l) __builtin_va_arg(v, l) +#define va_copy(d, s) __builtin_va_copy(d, s) +#else #include +#endif +#endif =20 #define ACPI_INLINE __inline__ =20 diff --git a/include/acpi/platform/acintel.h b/include/acpi/platform/acinte= l.h index 17bd3b7b4e5a..bdb6858e2458 100644 --- a/include/acpi/platform/acintel.h +++ b/include/acpi/platform/acintel.h @@ -48,7 +48,9 @@ * Use compiler specific is a good practice for even when * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined. */ +#ifndef va_arg #include +#endif =20 /* Configuration specific to Intel 64-bit C compiler */ =20 --=20 2.15.1