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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 09041C0650F for ; Mon, 5 Aug 2019 13:22:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1A86216B7 for ; Mon, 5 Aug 2019 13:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011351; bh=njhFZQxy19PcglwTow94+N5gzFX0PX+0iAdPg690j6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Q3JoQR8kSiA+DZTA6LNoNkRVHRblU8nMKXuNg3jrXX4Il0sPG3oJwV57w7NgEOBjx biLfG4C6LW6+fQfkCmDzB5l1G9iyVU8uk1DEJ/6QR4pR2kJi3jgzt5FJjuBAZVzJJH Mtr6WPyTYUt020e7GE3ofPp6u55vTo7vCFwu2HI0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730697AbfHENW3 (ORCPT ); Mon, 5 Aug 2019 09:22:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:58840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730679AbfHENWZ (ORCPT ); Mon, 5 Aug 2019 09:22:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 140D02067D; Mon, 5 Aug 2019 13:22:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011344; bh=njhFZQxy19PcglwTow94+N5gzFX0PX+0iAdPg690j6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gm2YWdTUXVGtM/uQ0HM39xoekg1c9ZDWzIAMnV7HCWxVRjiMWYCMMTePKiEtVqsoI b5XcYNYZxJY/w4v7tYeGhw28A1J1Etb/wUp6Wyl5V/3QlHE++FbRctVm8xo+Bh48Jo oqNAF7I+tErcU8X6BdhmGexxHxwO48G2crU1pZKo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, 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 Subject: [PATCH 5.2 058/131] coda: fix build using bare-metal toolchain Date: Mon, 5 Aug 2019 15:02:25 +0200 Message-Id: <20190805124955.317098267@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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 d30209b9cef81..0ca0c83fdb1c4 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