Received: by 10.192.165.156 with SMTP id m28csp1099554imm; Wed, 11 Apr 2018 12:23:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx49cEQoZNMC58ucnIym5usesUcVLE8wi9iY5Go7KIQ0dpAHIrWxD0EBB9egBpG8QIszvn2YC X-Received: by 2002:a17:902:64cf:: with SMTP id y15-v6mr6526622pli.49.1523474623852; Wed, 11 Apr 2018 12:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523474623; cv=none; d=google.com; s=arc-20160816; b=TWFM7Zg0Nb2XPIerpQO6HPDkTBO1299CXTEqIrzd9qUAzjI8hE9WAIRbSyWEgrfx73 6GQKdBKgUQ4fuXED9eEiSCfOLinuoP/whEqqnJrTo0U7Lh2DZJ68X0Xn8hzH09712B6h UniaIW95I+9AAB8a8idpZIUPJdbLn7TyInctiuCLEhLT5Btro2MusMqNPyfTOkxem746 r/Uf/6WlXkVpCnremeWwqXSID1QWJuBsxgoEKYbysuc2oXYPm8jr4QEX+MU70r508Zd4 obwSxHikQae7EtMZIe04x4aNFFzQ8rB0mGkEVUtM8eEBFbgOJOPWpb3fvYcp8g3XcbLG maAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=POKcc4qeYNfBSH0DwfKJaxkMjhXJfbO6CMJI0oHMoks=; b=PDqk4N9cZ5A5S0MmND9GgLdcWtx0vBEUJls/LS1wtS8qVn3MlIDRFvBJ0jJasZRaYN RyuQTL8E/QNGm7ZwHO2kvWvDiSQShGouaCsCOr68Ad/8YWG45+fFuH0DU3PlOLyUvmw8 JmGMjJA7eXxVRMFHrV2eLDua5XYTOnCQ3g3yr4cCZdgaJ+N9jB429h/H57Wh2lbKSwW8 xXoQZ5AdNg/BgwEl0tWZTkzL9wpZDHDnWmOmUo+GN3ULvvC6bo38HQpHaM7BVh516BE/ 8q++tP2XpFsAvQeWvT4eNW4Gq3M1lR+CZ2CFfsn6HPD4CNdp1yqxuaT07mkTjXQJYrNo ntww== 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 e17si1151447pgr.475.2018.04.11.12.23.06; Wed, 11 Apr 2018 12:23:43 -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 S935119AbeDKTSp (ORCPT + 99 others); Wed, 11 Apr 2018 15:18:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40050 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934902AbeDKTEs (ORCPT ); Wed, 11 Apr 2018 15:04:48 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 17F785B1; Wed, 11 Apr 2018 19:04:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dana Myers , Lv Zheng , Bob Moore , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.9 249/310] ACPICA: OSL: Add support to exclude stdarg.h Date: Wed, 11 Apr 2018 20:36:28 +0200 Message-Id: <20180411183633.163823212@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- include/acpi/platform/acgcc.h | 10 ++++++++++ include/acpi/platform/acintel.h | 2 ++ 2 files changed, 12 insertions(+) --- 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 #define ACPI_INLINE __inline__ --- 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 /* Configuration specific to Intel 64-bit C compiler */