Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp703560imm; Wed, 29 Aug 2018 10:02:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZNko9y/rJh28FBZMmS+nmrar6siNEgL94i6PrMds9DX4rorebmbCd6w6bTXH4uweGzMnQ+ X-Received: by 2002:a17:902:47:: with SMTP id 65-v6mr6694078pla.35.1535562165404; Wed, 29 Aug 2018 10:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535562165; cv=none; d=google.com; s=arc-20160816; b=OvBkXVwioMijCttC7gEOq+0LiVE3txZleoXBYre7HvsBlxUghU+Tp9YBYdkMqTbCAU 9dodQ7atuUpoRrwosGh3dWj16/ZuN9UqZ9RNDYlxn/nerqZctxzTnXQ6hQS4MklCZUTb 3kYjP0OY1B9NfvHKUj3GgZAnD1wGiSkhOyTc/4bxgBQ3Js6hogQc/3HaNZwgWqJWiZQM /x8fFmX7tXu4E+TsRd+XTLhPrW7tJEb8mtTEF2VIIDNRZg/3n4s6DwqcYUpAfy3m6lco oqMbpQ58i2BaFczrEDUBaNmcqr4tKgD/7ta8S4AK9J0uTcc3dRIbotc/Glbz1RhIr6Ln jASg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=crQrWW2IG8U9p4rb69T7T4R17Th6b6d/bEWWUKQF8Es=; b=N4YdpTZ1AC7g2YcLcE3Vbw7TfkzYU7+o1lowqc1qcva2QBYGB9bX4zRVOv1aNGlZh/ 9mrd/xDIvlxBlseOSLFTm57qZ77ugFIY37vF5+hQLct8tv3oe+bE2VGiTA8RIwepi0vs ROYu0GmK8XzUOLRxSCNkEcpDuNKnKz7wF6WksOJcdCHRkgyqP5oOybdpb1ZttbzaI3QL 92TvwM2di6pzmvSoANjduDQdzMF3S3ADVhoA6cKsvssXy4ZENIdUfNO/kvClK69tDlhY OXAl07ASk7wfAx8gAh1kMCKr82XQFxIizthNq4HXMJIrmmJnpH6JpxeNoPAC+S7qRosH db8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aXfDnpHh; 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 u19-v6si4309753pgl.94.2018.08.29.10.02.30; Wed, 29 Aug 2018 10:02:45 -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=aXfDnpHh; 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 S1728375AbeH2U6K (ORCPT + 99 others); Wed, 29 Aug 2018 16:58:10 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37722 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbeH2U6K (ORCPT ); Wed, 29 Aug 2018 16:58:10 -0400 Received: by mail-lf1-f66.google.com with SMTP id j8-v6so4879454lfb.4 for ; Wed, 29 Aug 2018 10:00:20 -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=pm1IAQ+vjbHKck7/jWcCVsQ1cvJccWPW++oEXv6+wYwAplK6zDd6OgHzk6DveyThal Y7x+XkcrFpTEAaoQ3FRedPSQjYwEVzUEFwl06aQd2EjiCR4LQqb1lThVLm9nuSFcKAg6 NHzf0lMvvC9t9E2aoh5hCPDNVRTev2UFPYxoJboIMaxCL5orv6e9/L4MenEGlz8hPsIH osnya/sYKbUpHZAYk1Rt84fyX0LCfrjliaiDF3UedXF+K1FJHTZZZht9k9yIKL8U0mPa mW05zWY5fPUR9AFTqN1iem+M1+zCBMmuGMu78IWWO8j1gcPcE6FDzqbbjEkKDvTnqGRg lEPg== X-Gm-Message-State: APzg51CHgH/yaAWP8M2FEl8LFfdcGPu48SXLdETjzJ/QuHBm0dq4wB/A IE3rxd29yqDlKGoTLUrN38cHbUDFcZU= 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-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.18.0