From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB242C76190 for ; Fri, 26 Jul 2019 13:48:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C583522CE8 for ; Fri, 26 Jul 2019 13:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564148916; bh=2HAjsazSUtJXt2TTMq9ufkoer4YWsLVnedNBQy4W8XM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VfpN/89ZXoKtCUTdkfJrHkJdoZ5bkGGlpb+f0FRaFLYGWQqebJ6NHJR8+vh6O/6jK r81ZQO2MASSTyG4UsfyH0fzgj/SDaudA2pOUhtr0Yb3yh1vgfBoLO3ic67zhTimv/0 /M55i8c7fJZtiVjf8EhmP1HDtWaby8W2FBtMWYcY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbfGZNpI (ORCPT ); Fri, 26 Jul 2019 09:45:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:53754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728114AbfGZNpG (ORCPT ); Fri, 26 Jul 2019 09:45:06 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E82F22CD3; Fri, 26 Jul 2019 13:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564148705; bh=2HAjsazSUtJXt2TTMq9ufkoer4YWsLVnedNBQy4W8XM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lSkv+2dCRyTEyZBrl7Xkwv+sgRnO3vmejQLMdZZAlQ2qB+j3xOgDw8CXmu5y7wP9W zD3ja7KsKmDyF97n+aoCcrFaH4fofvEypgdOI6RFwAX6p+sj7o9nVpuR4ujbnr22Mk /AT79TBft8jENpL+bH6GPtwyRhinCNibXxEBPumI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sam Protsenko , Jan Harkes , Arnd Bergmann , Colin Ian King , Dan Carpenter , David Howells , Fabian Frederick , Mikko Rapeli , Yann Droneaud , Zhouyang Jia , Andrew Morton , Linus Torvalds , Sasha Levin , codalist@coda.cs.cmu.edu Subject: [PATCH AUTOSEL 4.9 21/30] coda: fix build using bare-metal toolchain Date: Fri, 26 Jul 2019 09:44:23 -0400 Message-Id: <20190726134432.12993-21-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190726134432.12993-1-sashal@kernel.org> References: <20190726134432.12993-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Sam Protsenko [ Upstream commit b2a57e334086602be56b74958d9f29b955cd157f ] The kernel is self-contained project and can be built with bare-metal toolchain. But bare-metal toolchain doesn't define __linux__. Because of this u_quad_t type is not defined when using bare-metal toolchain and codafs build fails. This patch fixes it by defining u_quad_t type unconditionally. Link: http://lkml.kernel.org/r/3cbb40b0a57b6f9923a9d67b53473c0b691a3eaa.1558117389.git.jaharkes@cs.cmu.edu Signed-off-by: Sam Protsenko Signed-off-by: Jan Harkes Cc: Arnd Bergmann Cc: Colin Ian King Cc: Dan Carpenter Cc: David Howells Cc: Fabian Frederick Cc: Mikko Rapeli Cc: Yann Droneaud Cc: Zhouyang Jia Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- include/linux/coda.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/coda.h b/include/linux/coda.h index d30209b9cef8..0ca0c83fdb1c 100644 --- a/include/linux/coda.h +++ b/include/linux/coda.h @@ -58,8 +58,7 @@ Mellon the rights to redistribute these changes without encumbrance. #ifndef _CODA_HEADER_ #define _CODA_HEADER_ -#if defined(__linux__) typedef unsigned long long u_quad_t; -#endif + #include #endif -- 2.20.1