From patchwork Mon Oct 29 20:03:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 10660183 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 25B131751 for ; Mon, 29 Oct 2018 20:03:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C42B29EB4 for ; Mon, 29 Oct 2018 20:03:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3A4C29EBF; Mon, 29 Oct 2018 20:03:17 +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 9E61429EB4 for ; Mon, 29 Oct 2018 20:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729441AbeJ3Ex1 (ORCPT ); Tue, 30 Oct 2018 00:53:27 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44536 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbeJ3Ex0 (ORCPT ); Tue, 30 Oct 2018 00:53:26 -0400 Received: by mail-lj1-f195.google.com with SMTP id k19-v6so565544lji.11 for ; Mon, 29 Oct 2018 13:03:14 -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:mime-version :content-transfer-encoding; bh=PE9axsRjosjJ3T7nxoPev2GfqHe3Uv/m+p22kVrDbkc=; b=dYBf/sITMcZfMFpbBEUQf9AN9ogyJfhuDfI9mTJ/1oWQs45JloVTBj9OwLpv6npLft H9dfosfxforkSkAJJsTjzvp+iX5QgYVattsSo6txofdwRP0m7hcgpJqcFvsnNOv+3JG9 kUmIh5aB4uHkPUMjFviMViIsggI91Bxu79rUg= 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:mime-version :content-transfer-encoding; bh=PE9axsRjosjJ3T7nxoPev2GfqHe3Uv/m+p22kVrDbkc=; b=XUQI9xpt7vbutbrcZbHT9gCWn43gxidbJ8cbE8fhMQDJIa8jf6YA0sZPxb27kxRb6v HCjg8VAK0RqUA8XRRjQgUd2K1/Mdqn9OEoH/4YlZCWLwmCGXL4XKsAlPr5FawNL+/8Ni hIz/WqZ769a2fjtk2o6ASBpt0gzofTn7AIH7AvwKnD0EAIkPEk+9pxCCxhNtgGzWWz27 Iv/35Z/LDhc3a+/V8t8QGAM7zM56x3/PEHZvs7798983bCloYPOaiJjqouMQ3FkKJMPJ yaOqtZ2MoJv5/o/SURVLYlkAO1QpqwNbia56hy0PLzB0uoCUwL4kQqP7VB55TCcQBybo Oj4Q== X-Gm-Message-State: AGRZ1gIj8ng33DIupvj8FWESjqVmckDbcVUAmIocyauqoAb6uQZZcMtK XeLs9GqsLFgPpittFvdpdDUPPA== X-Google-Smtp-Source: AJdET5fStIYU91QUSccY8fOQLQfhwLV6Pux18sSgw5yvhGwjR9c9t6H6wZ2zsw6bKSMQ8Hw3j7QN+Q== X-Received: by 2002:a2e:760a:: with SMTP id r10-v6mr10286819ljc.97.1540843393276; Mon, 29 Oct 2018 13:03:13 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id g2-v6sm500969ljg.9.2018.10.29.13.03.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 13:03:12 -0700 (PDT) From: Sam Protsenko To: Greg KH Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, codalist@coda.cs.cmu.edu, coda@cs.cmu.edu, Andy Shevchenko , Praneeth Bajjuri Subject: [PATCH v2] codafs: Fix build using bare-metal toolchain Date: Mon, 29 Oct 2018 22:03:11 +0200 Message-Id: <20181029200311.16947-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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