From patchwork Wed Aug 29 17:00:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 10580661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3792C175A for ; Wed, 29 Aug 2018 17:00:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 252602B682 for ; Wed, 29 Aug 2018 17:00:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 193102B6B7; Wed, 29 Aug 2018 17:00:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDBD62B6FD for ; Wed, 29 Aug 2018 17:00:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728341AbeH2U6K (ORCPT ); Wed, 29 Aug 2018 16:58:10 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:43454 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727293AbeH2U6J (ORCPT ); Wed, 29 Aug 2018 16:58:09 -0400 Received: by mail-lf1-f67.google.com with SMTP id h64-v6so4855346lfi.10 for ; Wed, 29 Aug 2018 10:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=crQrWW2IG8U9p4rb69T7T4R17Th6b6d/bEWWUKQF8Es=; b=aXfDnpHhYQliPMBRfWkndq1vB45gIoyiDq0jUJcpXjuGJKY09DHcH1M/QE+sLlNp4Z 0H2QA5GnKyN5Qs7pGZefbgd4uWZnnkHyjzPECmXqcTDxWi7UHSBPA6RN3ThjwIhKuQfE s2DCOykpP+xxry8LdGTyHck2k+7jYEsz/4Iqs= 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:in-reply-to :references; bh=crQrWW2IG8U9p4rb69T7T4R17Th6b6d/bEWWUKQF8Es=; b=bNuP4pA+dJwSj+j0Hx/6KnBMRLBHy1wJ1AbroZGRjh8AG66frdMyw1nxbxN7rDDHF8 UskXiDFDQNkHxK4/qmjUeoMb6FLCMKXSrmqZfr9ENUlV7yLtP5ZpmLYmw6+1nt6ylaKx 24zcc26Jadow5kOCvlmrCIKi8NQ5Uw9lGp2EuqplZR9t+7PZ7mSp3d9X2cN6c5oE6pbz aVKTep5GdBREGZ35dUHK4DEHpAMtlgYvv0XL2Cy2PmG0+B73LgPjCWyFyBwaLx6KcO4S t2CEVF9CEKYVxCh+AHHNN3IqaVF0SmVyZ+pCr3TXMKhjmDOgzIkScGRiN/HOPmQ2ECfR CyRA== X-Gm-Message-State: APzg51Dz8hMfzqjyoSpbRsTABcxaB78aMr8BdVx7aJA9wRzA2DVfUOjo AR82z3r7SsItIxrMu7LNklb9yA== X-Google-Smtp-Source: ANB0VdahyGZFw95ZKTG3qrtCMxLX5ZUvuLD5R2v+qmydClCO4fCMxzPTX+GWI5Bo77PMqySUTD8TSA== X-Received: by 2002:a19:b24e:: with SMTP id b75-v6mr4834796lff.138.1535562018934; Wed, 29 Aug 2018 10:00:18 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id p65-v6sm800220lja.44.2018.08.29.10.00.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Aug 2018 10:00:18 -0700 (PDT) From: Sam Protsenko To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, codalist@coda.cs.cmu.edu, coda@cs.cmu.edu Cc: Jan Harkes , "James E.J. Bottomley" , "Martin K. Petersen" , Praneeth Bajjuri , Paul Sokolovsky , Miklos Szeredi , Sumit Semwal , Ruslan Bilovol , Andy Shevchenko , Christoph Hellwig Subject: [PATCH v2 1/2] codafs: Fix build using bare-metal toolchain Date: Wed, 29 Aug 2018 20:00:14 +0300 Message-Id: <20180829170015.7729-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180829170015.7729-1-semen.protsenko@linaro.org> References: <20180829170015.7729-1-semen.protsenko@linaro.org> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Sam Protsenko --- 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