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 3D2ACC433FF for ; Mon, 5 Aug 2019 13:07:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0FF2521738 for ; Mon, 5 Aug 2019 13:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010451; bh=njhFZQxy19PcglwTow94+N5gzFX0PX+0iAdPg690j6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HRqTtyFgYvjaA2RCFVGQ2MIYk6D7uV0CUHuaOuYaepIluz9wM9g5MljxP7dhMmXgA nyR7ydCu8LiGfYvW6OQOuRXEDoSldmc3O6864m8yCJgZXSdIGfkzW0CVvp26G3OZ5Y Jwx4xUkba/1YIG2dKKadnYp9ViHFv5LAkwY/AMyg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729798AbfHENH0 (ORCPT ); Mon, 5 Aug 2019 09:07:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:44810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729777AbfHENHV (ORCPT ); Mon, 5 Aug 2019 09:07:21 -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 0B66F216B7; Mon, 5 Aug 2019 13:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010440; bh=njhFZQxy19PcglwTow94+N5gzFX0PX+0iAdPg690j6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=itJdKXjE/j/pPzpV4ZaHz0GkUp3L8Vq2yTOAYSH92NVBqnW6F/QR79Fd3eYeiWp+O WSeerrr/T6wXkfYCql7afrHgGU4yegvcAWJ3ymtDIDzVB3ay92vihYVL+zOafE1fZv xlDQd0Z2GEIZmdtw/HYLHW0n3wkZq6aRc4O4C4ww= 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 4.14 24/53] coda: fix build using bare-metal toolchain Date: Mon, 5 Aug 2019 15:02:49 +0200 Message-Id: <20190805124930.725959344@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124927.973499541@linuxfoundation.org> References: <20190805124927.973499541@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