From patchwork Mon Jul 27 02:27:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1336586 X-Patchwork-Delegate: trini@ti.com Return-Path: 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=) 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=NKvWFvZN; 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 4BFNyC0XWBz9sRR for ; Mon, 27 Jul 2020 12:28:02 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CFB88822C7; Mon, 27 Jul 2020 04:27:55 +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="NKvWFvZN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 08B9D822C1; Mon, 27 Jul 2020 04:27:52 +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.0 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-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) (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 DB76D822B8 for ; Mon, 27 Jul 2020 04:27:47 +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-ot1-x343.google.com with SMTP id h1so11197359otq.12 for ; Sun, 26 Jul 2020 19:27:47 -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:mime-version :content-transfer-encoding; bh=hv9koqcZ/Xi0m4Ei6Jtjbc3Q7A8pvX44usBCcHllo2k=; b=NKvWFvZN1gGjYzN/9ts5SbS00i56+GBPj+z8+XEUFzKG47LYQLVpV6yf26J/YsXBjU Vx7FIPX9TnzMRe/KgsLBO30s+oOnHOxlLXujS+fuj2YAlqaMIGlNyWjlV26zOBffLUlJ ARzoQwR+BnovM+tuX244gEeYmG20JKyzTK6Ok= 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:mime-version :content-transfer-encoding; bh=hv9koqcZ/Xi0m4Ei6Jtjbc3Q7A8pvX44usBCcHllo2k=; b=ly1AtesFVUhUOdj0kXEdh/aGoFwpSsZ5TlQkD7tkrGhAgrus1KHaF8KPTSXIQcuj8M F46alvCjyT/niLYLW09nGo0rramYnwn6dsXdc7DLQxnGFt75EITKSjJSJhtj9Cgt4UNA /PoESfWf/rH9rY8DM4D/ZEk7ZJB4bBGcJLQeL4z5/aT33In5ZGgyRt3WL5Iaw/IXlMr+ qWLEURqeWwt+M4qU79YV6wn0YirGvt9+YrjMEj8WdCymsXJVT0A7NmnKXt9S/RYFD0Wp ArDNkP8klXBID7umv0ekGzdkVCp4s04gYzNCzpNFOLUECG3wSN2EBIX5Nmq4o2tTkGYe Zicw== X-Gm-Message-State: AOAM531n7+Q2mO49+42WjkHT4cHjoqW6+z40Bs2heZkiBmC8N8bStkBt E8jbtJZa5E07mWS/vLnvLaf3SYKRPZIOtQ== X-Google-Smtp-Source: ABdhPJzRbGZBtLvzQrk+DB9cDqGqrA1afZYP+wiiV3Y9sCkeTTg1QKmkvED3IqIHhE/NXDb+VWBPsg== X-Received: by 2002:a05:6830:198:: with SMTP id q24mr18457637ota.202.1595816865915; Sun, 26 Jul 2020 19:27:45 -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 c16sm3076042otn.12.2020.07.26.19.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 19:27:45 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Grygorii Strashko , Lokesh Vutla , Vignesh Raghavendra Subject: [PATCH] Add an assembly guard around linux/bitops.h Date: Sun, 26 Jul 2020 20:27:43 -0600 Message-Id: <20200726202740.1.I982d295cd4d9f3b870a9e9693cbe4675ab8a1dea@changeid> X-Mailer: git-send-email 2.28.0.rc0.142.g3c755180ce-goog MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This file can be included by any header but it include C code. Guard it to avoid errors when compiling ASL, etc. Signed-off-by: Simon Glass --- include/linux/bitops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 6b509dce58..16f28993f5 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 #include @@ -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