Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6735175yba; Wed, 1 May 2019 19:22:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYe0nqufwJe2eEizCwc0rk7dCqUJO64lyXpnPWQBp7H++YzPE9bJbKN8CTyDgXJFCdZe/6 X-Received: by 2002:aa7:93bb:: with SMTP id x27mr1295888pff.104.1556763739665; Wed, 01 May 2019 19:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556763739; cv=none; d=google.com; s=arc-20160816; b=ynfs6VZeUgB2WV5WHIJiz+JteYL+Mct96phg9WokA4SzKeC1grGMFusAf3v2q509g2 xhkcR1GzlGgNGIm5M+oPgMPlbmwTNFBRZkvXjOylUiSt6dcLoTH9eYz8izVaIFcxPdt7 Cg1BSs5pKsQeaejqfdS2irJi7HwZvuLDyEX4ZuK9jvHyvZlSvBcRkDaz/qBieBp+0YZg FcNWdBAszhCBdtptlzT8v8oqgeDoCPLpx7aArZ1LtlcfoRFqW+hXTbwpWio+LIf7K19Z KfvjiSUJ2QSY5F7jdDIdk9FzDslvIYkiOb3uHbs+J4sLioGtVRkdGZpDIBWXA4HnEBtq 0UUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=1grwRNg1rL6fWWwwY9b01aFhIjRlWDX1p/iSHRpIX2M=; b=DpTjZnIXnMMftRg0ABvWjr1q826cC+4Ha7lrhbCk/FUSLuXBMaLAQt6ar8wpBGFOX6 j0Vc8LkLxLCBVLHldlanaartWVSGBbbfgPvnCHIU35faGtSBBlhnrtC2QbuvJqylOMC+ HUnm5nINnlxAgrQLVz3YwAz+MtDVJxjhTwK9POplLaZUd3cCXImryFf6pLAngO9Me/9U GZLfUdNecTnGrip0FNtt0/iZ36AfO5MllEW9LE28K8aUMyQ2awmSwYtVfd9KXI8tFQJ8 UTTVXn6u7p67Zv4KDTnuH1r+eVnGNSrIPUYJrN1mkHyJJMOauvmPY3bSmeK0QbW/c1ej 7LlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Yr9ISyKB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si43314575pfc.278.2019.05.01.19.22.04; Wed, 01 May 2019 19:22:19 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Yr9ISyKB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbfEBCTk (ORCPT + 99 others); Wed, 1 May 2019 22:19:40 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57666 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfEBCTi (ORCPT ); Wed, 1 May 2019 22:19:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=1grwRNg1rL6fWWwwY9b01aFhIjRlWDX1p/iSHRpIX2M=; b=Yr9ISyKB5G54 mnCOy3hKifVuQiBTblOnEWujwqpIv0cwGsxLW8c3mTOU1uSoWSpwj2HwSm+PnKiU/YfiVSd5ocKyh wKr4tMLmvJemYOQXwPqOj7urdyez9DlIWmKT8kMc/XyTVxCvbxnyNf21OjjZiy7KrtZNRh/B2+FVe ulKbg=; Received: from [211.55.52.15] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hM1Jv-0005xk-8k; Thu, 02 May 2019 02:19:35 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id E2A78441D3C; Thu, 2 May 2019 03:19:26 +0100 (BST) From: Mark Brown To: YueHaibing Cc: broonie@kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown , naga.sureshkumar.relli@xilinx.com Subject: Applied "spi: spi-mem: Fix build error without CONFIG_SPI_MEM" to the spi tree In-Reply-To: <20190408143949.10688-1-yuehaibing@huawei.com> X-Patchwork-Hint: ignore Message-Id: <20190502021926.E2A78441D3C@finisterre.ee.mobilebroadband> Date: Thu, 2 May 2019 03:19:26 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: spi-mem: Fix build error without CONFIG_SPI_MEM has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 72e6841608b9ce7e04515ed43693b2878936c93a Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Mon, 8 Apr 2019 22:39:49 +0800 Subject: [PATCH] spi: spi-mem: Fix build error without CONFIG_SPI_MEM When building with CONFIG_SPI_MEM is not set gc warns this: drivers/spi/spi-zynq-qspi.o: In function `zynq_qspi_supports_op': spi-zynq-qspi.c:(.text+0x1da): undefined reference to `spi_mem_default_supports_op' Fixes: 67dca5e580f1 ("spi: spi-mem: Add support for Zynq QSPI controller") Signed-off-by: YueHaibing Signed-off-by: Mark Brown --- include/linux/spi/spi-mem.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h index c845cd6e22ba..1941b845aa15 100644 --- a/include/linux/spi/spi-mem.h +++ b/include/linux/spi/spi-mem.h @@ -295,6 +295,10 @@ int spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr, void spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr, const struct spi_mem_op *op, struct sg_table *sg); + +bool spi_mem_default_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op); + #else static inline int spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr, @@ -310,6 +314,13 @@ spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr, struct sg_table *sg) { } + +bool spi_mem_default_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op) +{ + return false; +} + #endif /* CONFIG_SPI_MEM */ int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op); @@ -341,9 +352,6 @@ int spi_mem_driver_register_with_owner(struct spi_mem_driver *drv, void spi_mem_driver_unregister(struct spi_mem_driver *drv); -bool spi_mem_default_supports_op(struct spi_mem *mem, - const struct spi_mem_op *op); - #define spi_mem_driver_register(__drv) \ spi_mem_driver_register_with_owner(__drv, THIS_MODULE) -- 2.20.1