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 A6503C0650F for ; Mon, 5 Aug 2019 13:10:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BAA72173B for ; Mon, 5 Aug 2019 13:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010601; bh=njhFZQxy19PcglwTow94+N5gzFX0PX+0iAdPg690j6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=0uIPItBq7mh0ITuYCzR0IKepxtiiATpdnSevWAz6TSOZIDqQTQ0937h9ViHPUleCl JPSsihP5K8aBJP5ddNux4BW6mcapdXxQ0MMZ5QH5RmpzqsiaiBxIAZcg4AIGWz57Qa bLkVvGo7gvNGsCW1LZjwr4hxiJaS8zuVi359b0Gc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729780AbfHENKA (ORCPT ); Mon, 5 Aug 2019 09:10:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:48682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729153AbfHENJ7 (ORCPT ); Mon, 5 Aug 2019 09:09:59 -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 6A7462075B; Mon, 5 Aug 2019 13:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010597; bh=njhFZQxy19PcglwTow94+N5gzFX0PX+0iAdPg690j6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0pDmwWS+OXPZFoTPX/1ed8iM+JM+88qc+FhzoosY8qcwo0aj/XhDSIk7KocWHfyYO iNorkJCXE3YeY9UFzqMJMgno9cKJ+vwEhsK42i46V1XOTobG18YrGInKtpSZi5H6+p culX0MjP43tzd7uClSqhURXbYQMw4/J/V8L8eRao= 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.19 32/74] coda: fix build using bare-metal toolchain Date: Mon, 5 Aug 2019 15:02:45 +0200 Message-Id: <20190805124938.374434965@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124935.819068648@linuxfoundation.org> References: <20190805124935.819068648@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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