From patchwork Tue Aug 28 14:24:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 10578627 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 8F38A920 for ; Tue, 28 Aug 2018 14:24:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8007229BD7 for ; Tue, 28 Aug 2018 14:24:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6804329DD6; Tue, 28 Aug 2018 14:24:27 +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 3FA4529BD7 for ; Tue, 28 Aug 2018 14:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbeH1SQT (ORCPT ); Tue, 28 Aug 2018 14:16:19 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40716 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1SQT (ORCPT ); Tue, 28 Aug 2018 14:16:19 -0400 Received: by mail-lj1-f195.google.com with SMTP id j19-v6so1581385ljc.7 for ; Tue, 28 Aug 2018 07:24:24 -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; bh=KcFzbcYOQ1xiLMaN/Eh0sKOGIuSv1gy9/LNssarYENM=; b=RBQT1Wl3bFurHVO5Ruk+fKm+zAVK02EKXodRYHFuZ1lzVO/GdcQkOHvCAukziVpfuH LdaKV8yyX7cQx2u/PZ5S2CCZdmDapX36VUPZNw1sGlBN/uzuZVs7zEqF8EIzrC/QHgrm kAqqshq3yAUWVEnk6QRgIWBz4QbwYWic6w9qw= 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; bh=KcFzbcYOQ1xiLMaN/Eh0sKOGIuSv1gy9/LNssarYENM=; b=rz0ctbtdhIMvYcEAMoH37ZZpCbSZkDDtQllCi/xM4Xbq58KL+Wnqo1OoR5cNTXP+A9 IdqbXC+9+2uiShbkJ/Yrh3f9HYW60wZDGE8emircgr0Vy5XQttL+X98iyFNn+AXssMwz Ctx4XSgXCDDMz3xuV84a4OdjBAZ3TkseCuQprsNV71z5TnFHx1bSAoN1yzPI7stHUZgk whiPYzlEn+lSoSBfFzHPLYB75Qlu3R32aHkG8oSskq8Q2YOut9tz6YjUlSdpkecdwZFu MxLE172iLkCghoHLfrtB0IFsVZGGhBas/bKFn2Mg4glPtl5Bu/5Cc8QwIEEgApLfLvxB doQg== X-Gm-Message-State: APzg51CskGN3x7RgWlD0Eph5aX+1qVmlM9MAQsIvh1zY1HoOFFz5pAR2 56HrXXWFp9GlUulCY3ahQEZA5w== X-Google-Smtp-Source: ANB0VdYL3Q8+oJXSsHeG19vSPbqRIMAO6cfVj3GpoBwBlAGmjHnF1Fune8jLicFLGIwDznEcE5QH3g== X-Received: by 2002:a2e:3005:: with SMTP id w5-v6mr1463002ljw.20.1535466263478; Tue, 28 Aug 2018 07:24:23 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id c5-v6sm229607lff.65.2018.08.28.07.24.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 07:24:22 -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 Subject: [PATCH 0/2] Fix allmodconfig build with bare-metal toolchain Date: Tue, 28 Aug 2018 17:24:19 +0300 Message-Id: <20180828142421.15335-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.18.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 Attempt to build allmodconfig (for ARM platforms) using bare-metal toolchain fails with errors related to __linux__ definition. It's only defined on Linux toolchains, but not defined on bare-metal toolchains. This patch series fixes that. Some similar patches (for different files) were applied previously: - commit 4c82456eeb4d ("fuse: fix type definitions in uapi header") - commit b6330548383c ("drm.h: Fix DRM compilation with bare-metal toolchain.") Sam Protsenko (2): codafs: Fix build using bare-metal toolchain scsi: aic7xxx: Fix build using bare-metal toolchain drivers/scsi/aic7xxx/aic7770.c | 2 +- drivers/scsi/aic7xxx/aic79xx.h | 4 ++-- drivers/scsi/aic7xxx/aic79xx_core.c | 12 ++++++------ drivers/scsi/aic7xxx/aic79xx_pci.c | 2 +- drivers/scsi/aic7xxx/aic7xxx.h | 4 ++-- drivers/scsi/aic7xxx/aic7xxx_93cx6.c | 2 +- drivers/scsi/aic7xxx/aic7xxx_core.c | 12 ++++++------ drivers/scsi/aic7xxx/aic7xxx_pci.c | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm.h | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm_gram.y | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.y | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm_macro_scan.l | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm_scan.l | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h | 2 +- include/uapi/linux/coda.h | 5 +++++ 16 files changed, 32 insertions(+), 27 deletions(-)