Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3830527imd; Mon, 29 Oct 2018 13:05:12 -0700 (PDT) X-Google-Smtp-Source: AJdET5diWoDrCqJcdGk2PkTklH5XZWzft0ZaxjvqtvhIseujtNdHX6H9dhIdIUwJm25oeXRhL9Co X-Received: by 2002:a62:34c5:: with SMTP id b188-v6mr17117914pfa.65.1540843512885; Mon, 29 Oct 2018 13:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540843512; cv=none; d=google.com; s=arc-20160816; b=zAHfmSnTRHxYdnoAhc6C93VxRraspW71LiIqR/SV+xCX0iCesuw1+/NKUWL8MpjoS8 c02D0JRc2SOqCXeYlHgPKQ8+6WbGr/qO1Anyt6m1dZeENR27F1bXul64h4z7JUVF3NpX YvmN9x9pSG1w+tBXCJbonNTbBTMdjCe7fzSG3Ubp33Z5PrNk/AUwPdNA8csN0lRYaAIj 6irf0OAX1zjFfKtwtutrB6g5o36WEw8UdBH/OQ1yYpWxB6p5qb78OLLYXOuqygAr85EA 4zibeQnZWlALxXwJ05lhgplezXwycqsp8DgzHN8/VlgCSjR6P1SDCCsB/mtw6wAQxXMG y9Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PE9axsRjosjJ3T7nxoPev2GfqHe3Uv/m+p22kVrDbkc=; b=kN+VXwjt2Ibh4JAO8HZcdK8v6kQeDrdEvbxXsa1m1qsjjXvK722X5HPQr0igXIne3t xMt9VPOVYC6jNiExiRSfk6ih3oH5jbI+kCWklo1IUXKTARP7MzqLv1yvLB4449PLitHc tla7qv/YLhmuJS5pSdcY6ZIxPssUCFswxQAUjgxHUrkt3ZjT/NlPgrDR8qdPE+Cjhr9s GR7OjwS9LnEVUBkRRLDCrgj4FBBUVvf1xFV9u8iSlpQlgfB7IeBYognR+mva25FV7MoS HXdrX0TpY72OpYc+9QbI8OgyuWEL98w/7fO3iR65JfUuZtIv+DZj4OHS3rwXoW6E5gy6 fbgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dYBf/sIT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5-v6si16130621pgi.27.2018.10.29.13.04.56; Mon, 29 Oct 2018 13:05:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dYBf/sIT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbeJ3Ex0 (ORCPT + 99 others); Tue, 30 Oct 2018 00:53:26 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35828 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbeJ3Ex0 (ORCPT ); Tue, 30 Oct 2018 00:53:26 -0400 Received: by mail-lj1-f194.google.com with SMTP id x85-v6so4887185ljb.2 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=aIcyyVFIX5Ihqym7+1ZuQO4HFtN+6gEaV33oWA7xplx65i11lK0THIRw9zC8JkUsEc L3550wfQ2x0/HehhJItPKNaWp2WJxliogEP+BduA0b8P5FT+ZjubY/FVRbnbvAom/q3h cAdOeAZsqqYPMgeOHpEiTG9D+5kv4i+yIrYAFUvnXePNaYjw03vyUhK4Sr2OYiPVcc9B WhN4PUmA4LOsL0QuvQ+LA80jfLTrffpVmU54QjGn4McCXNL4Tt4pjD2cWXLf5hZjpYGu xrPZ6ZNCK1ovXM6yMGJyb93aQQgmZAmZjMkN7VH7FcMfztMwEWWEYGtDbEwQGUTybXdp XmFg== X-Gm-Message-State: AGRZ1gJ0T4GN07NXgr8QrR2kpWc+cQUx1+7DMkU/5y0TEzaqevt7Y4yK oFGuny4HSM93DamsWrzhk+qhcA== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.19.1