Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5991775ybc; Wed, 27 Nov 2019 13:02:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyTmRVtA5ygFgrYqVLBhnt7jJfTd/eDH0xt2y5FlvybSzn4ActkiGKGW0H7+8MuGUKSKLHc X-Received: by 2002:a17:906:1ed7:: with SMTP id m23mr50588372ejj.326.1574888574660; Wed, 27 Nov 2019 13:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888574; cv=none; d=google.com; s=arc-20160816; b=fI2slDmPXaPXOsKS0YyR5TaIbclAYN7b52KTaG3nXUrAufvHJ8nOXMt52+HVoYTvMv MHJCCbsUgrMRxjHCuZFYoO4n9rp54dgpzkIMTkhQAuJlHbtfsiWclMM18e+xN1219DbP HCa2grNkpqFNzrIFFZ9oYMsaNBvt4+AhxeLDp5rMrOTCfxdd9sjoiHpuUSkif5l0Vb7R W5fycqSTVb4V35MCi3vnn+S23CmSL0HL1UQbVvTPiGDLXjelOSo7XhmVWPalcNdBZoM5 CgwnoU1k8eTPeoR9kaezkPfbmuQdiI1dRIch5a7L0FqAKEb+oKebLSXSmxdg76mVrTX1 21pA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vHLGaBBKwNqu0HDAkuAAia2xJEznhZeGxtJG1JjBMP4=; b=QI3ZIstPQD6tYq98PJDrZWZJk4hBuruKGDBRtDPRe8b/m+xPiuydpTaPO0T4VDXkhX vvGjf45gNMVUYvihztMO0FwMlEHlEcsz2/uayN68t3fya51RD+eRURzLk8mEFN/ZH3QG QO+oWoT529tuMjLAZ9OTvOwp+EDCD9q7qR956lE9VwOKBKXHJVQVnbLcK6Nj6hzXlq2F tI9hwXC0yLNOOzVgo3e+9YeCVzEDet7oThGcJ5mn1QMZNHrVjlUXzWjQn4nQh8M/F216 pgakjppkpyjKffzB4y70eWtv6n6lU35xO1PeBCwO8+niXjiZWWbYIuv47W1qmus8mqjZ Jsxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rUCvQDZW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y21si10149302ejb.75.2019.11.27.13.02.28; Wed, 27 Nov 2019 13:02:54 -0800 (PST) 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=@kernel.org header.s=default header.b=rUCvQDZW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731434AbfK0U7d (ORCPT + 99 others); Wed, 27 Nov 2019 15:59:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:51006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731426AbfK0U72 (ORCPT ); Wed, 27 Nov 2019 15:59:28 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3B5920678; Wed, 27 Nov 2019 20:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888368; bh=2KBB84b10gJqMmfdG4V8Z+ln6G26XwMY73MG7KwkykA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rUCvQDZWVva0jesI7JkOcVkK/vPea/D1ze5uus0MHcw5j8cGlp+U6deoUVojTYLPQ l8xSrQzc6/uGi12qyyoDvzECB4YvZFmRLBW06ys1TXeUSiKOluublvHq/vgNU50/H0 TFQxMGDgEfMrVq5XuUOVC6EcZUS/Dz5h/IJkfv/w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 108/306] sparc: Fix parport build warnings. Date: Wed, 27 Nov 2019 21:29:18 +0100 Message-Id: <20191127203123.170331436@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David S. Miller [ Upstream commit 46b8306480fb424abd525acc1763da1c63a27d8a ] If PARPORT_PC_FIFO is not enabled, do not provide the dma lock macros and lock definition. Otherwise: ./arch/sparc/include/asm/parport.h:24:24: warning: ‘dma_spin_lock’ defined but not used [-Wunused-variable] static DEFINE_SPINLOCK(dma_spin_lock); ^~~~~~~~~~~~~ ./include/linux/spinlock_types.h:81:39: note: in definition of macro ‘DEFINE_SPINLOCK’ #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x) Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- arch/sparc/include/asm/parport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sparc/include/asm/parport.h b/arch/sparc/include/asm/parport.h index 05df5f0430535..3c5a1c620f0f7 100644 --- a/arch/sparc/include/asm/parport.h +++ b/arch/sparc/include/asm/parport.h @@ -21,6 +21,7 @@ */ #define HAS_DMA +#ifdef CONFIG_PARPORT_PC_FIFO static DEFINE_SPINLOCK(dma_spin_lock); #define claim_dma_lock() \ @@ -31,6 +32,7 @@ static DEFINE_SPINLOCK(dma_spin_lock); #define release_dma_lock(__flags) \ spin_unlock_irqrestore(&dma_spin_lock, __flags); +#endif static struct sparc_ebus_info { struct ebus_dma_info info; -- 2.20.1