Message ID | 20200927222538.1.I982d295cd4d9f3b870a9e9693cbe4675ab8a1dea@changeid |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=X00k/oQH; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C08bw6smhz9sSn for <incoming@patchwork.ozlabs.org>; Mon, 28 Sep 2020 14:26:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 90F568238F; Mon, 28 Sep 2020 06:26:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="X00k/oQH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 47BB282353; Mon, 28 Sep 2020 06:26:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B7E0F82338 for <u-boot@lists.denx.de>; Mon, 28 Sep 2020 06:26:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x243.google.com with SMTP id w16so10245077oia.2 for <u-boot@lists.denx.de>; Sun, 27 Sep 2020 21:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PyRavHuHLL0YDdFxkkEePsvM6hf7IoCF48lSmNh7zRQ=; b=X00k/oQHFPzsPOoYhtlizF9YOPZJvHRb/3r4qnPMjE1Lo+YesY5U8h3UUQN63Y0AN3 Ned7T4F/+bHfVbdMKoZB0BRz5IeTY6u+AWA+yWCuC+Ig62V9eX6SZdVovlw5u/2XSBTk hAetovVpeTXHfzM7uJHJuhxYrMz1bj5mW8xcM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PyRavHuHLL0YDdFxkkEePsvM6hf7IoCF48lSmNh7zRQ=; b=pvMa4dpNN+rVqNebyBrTYkZrh94ZUx3mu8gf1wvB452ssPBHrXvkUmADUR/mc2ynE1 sM8oQg3srerRukfBaWXBK2PPwnsLOfxuzhMkvPsVfPd4cY1rMBevv1SpfiLmi6y1QSLJ J1pn3VpwZTY9tntDq6c3pKpCaphqxnOorvQlUV8CMS5mV+9MlEOvGxwoVNiqF0qEobZ7 LwztZzDn4zFGvWF/ugeAjMgXZVlkL6Rb5bqu3qJR1sxi94UH3z96+gwO1j25VHapPl73 eWojrSGaKls681SOyPntdHTRnWGJT6YZLPkhsV0t0pMQwssb9MYWFpIHH7y6OYcmU7kO DszA== X-Gm-Message-State: AOAM53189NmpbEu09Uct5euPndZ4u4U4ZsL8Tnrp7K+wmkxeCN0Q7+2G kK8hWmsTmsLe/3zkzJAHXKAo5k0XJKI4CiDW X-Google-Smtp-Source: ABdhPJw1SuRv5q1C+Tu//hBZYonZUM/Yp4JFEyRSyleg6GRh0yyA5GR8JydwXzxw67KjdgFWMHgOWA== X-Received: by 2002:a05:6808:914:: with SMTP id w20mr5126321oih.72.1601267178229; Sun, 27 Sep 2020 21:26:18 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id k51sm2620579otc.46.2020.09.27.21.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 21:26:17 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>, Wolfgang Wallner <wolfgang.wallner@br-automation.com>, Walter Lozano <walter.lozano@collabora.com>, Simon Glass <sjg@chromium.org>, Grygorii Strashko <grygorii.strashko@ti.com>, Lokesh Vutla <lokeshvutla@ti.com>, Vignesh Raghavendra <vigneshr@ti.com> Subject: [PATCH 01/32] Add an assembly guard around linux/bitops.h Date: Sun, 27 Sep 2020 22:25:40 -0600 Message-Id: <20200927222538.1.I982d295cd4d9f3b870a9e9693cbe4675ab8a1dea@changeid> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200928042611.1696178-1-sjg@chromium.org> References: <20200928042611.1696178-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Allow Coral to boot into Chrome OS
|
expand
|
On Mon, Sep 28, 2020 at 12:26 PM Simon Glass <sjg@chromium.org> wrote: > > This file can be included by any header but it includes C code. Guard it > to avoid errors when compiling ASL, etc. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > include/linux/bitops.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 6b509dce58a..16f28993f5e 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -1,7 +1,7 @@ #ifndef _LINUX_BITOPS_H #define _LINUX_BITOPS_H -#ifndef USE_HOSTCC +#if !defined(USE_HOSTCC) && !defined(__ASSEMBLY__) #include <asm/types.h> #include <asm-generic/bitsperlong.h> @@ -218,6 +218,6 @@ static inline void generic_clear_bit(int nr, volatile unsigned long *addr) *p &= ~mask; } -#endif /* !USE_HOSTCC */ +#endif /* !USE_HOSTCC && !__ASSEMBLY__ */ #endif
This file can be included by any header but it includes C code. Guard it to avoid errors when compiling ASL, etc. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/linux/bitops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)