From patchwork Tue Oct 30 20:27:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 10661497 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 EA7F113A4 for ; Tue, 30 Oct 2018 20:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D17912AA60 for ; Tue, 30 Oct 2018 20:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5B4F2AA7D; Tue, 30 Oct 2018 20:27:23 +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 590772AA60 for ; Tue, 30 Oct 2018 20:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726072AbeJaFWR (ORCPT ); Wed, 31 Oct 2018 01:22:17 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:32998 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbeJaFWP (ORCPT ); Wed, 31 Oct 2018 01:22:15 -0400 Received: by mail-lj1-f193.google.com with SMTP id z21-v6so12708357ljz.0 for ; Tue, 30 Oct 2018 13:27:16 -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=1BOhPRBeyyTugmq02tnr63je4AqDPCmKKAU4utoq3Js=; b=ECO3CHK4osbr1hJAnV5m8Ut57BFiZ83GOPSTcralvCEYPY1zLc1VH7laadGKEFA6zC JWzrJdjx5vIIwI1hjFgGa9EoK8nKyERX6u9TFrBI8P1NjA34ZmJ4g2skTiuzppM5pBK7 ndjdyaoXhCs5EJwIYwIrzeVVp9OOHj7Dp92uY= 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=1BOhPRBeyyTugmq02tnr63je4AqDPCmKKAU4utoq3Js=; b=boIawF07Se2oJ6TSdgWaPTjerCucloFnrcyyG7ktykr08BUdn8pmgINBghY64q97uk /vbYMHvNAsKg8PDuBSOU49pq7QsF3ddObGClzc3agrgll1BmgpjJmkQ6v1QllarY3ZOH Oj3BaInRYN7MFYksuYTmCkUbJWsndd79bbSHybZ7kiGPJvlqLOJQVCh+LWBgvzo9x+Vd FvXJ7TMwSI66W1kZ5FQj8oYvQSaT3iadjXiVWsHbtxKP39/goLWWucc5eOhT9baOUCz+ CZbrPMXk9t16f8DjV+UHLjyYcVT3PyQYXF5PSU8glEEEY+iGXVhrBUhhG2Zg+ZHzAqVF S7vg== X-Gm-Message-State: AGRZ1gJexXpUoWNi+3VbFXOy+HjwYGw9V74QSftDZ+NTzp2arErPFBPU FhKlCBPg6VOG0A+YrMT6aSW3FQ== X-Google-Smtp-Source: AJdET5fnMJULJGRooeRjDHudDs7rWPHdnfkS8B7AuGScHoNXJBxujtup+7EswROhM+Iu7Y2oedNPrA== X-Received: by 2002:a2e:1241:: with SMTP id t62-v6mr110414lje.81.1540931234956; Tue, 30 Oct 2018 13:27:14 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id z17-v6sm427925lfd.14.2018.10.30.13.27.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 13:27:14 -0700 (PDT) From: Sam Protsenko To: Andrew Morton , kernel-janitors@vger.kernel.org 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: Tue, 30 Oct 2018 22:27:13 +0200 Message-Id: <20181030202713.26203-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. Cc: Jan Harkes Cc: Christoph Hellwig Cc: Andy Shevchenko 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