Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp775015ybc; Sat, 16 Nov 2019 08:28:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyxI+hQn1NL7ruMsdEWt3HJwAXj2++vVUH5uRiakDwe5ztwA26bEWyar41AZD8RQTwcwaAO X-Received: by 2002:a17:906:a38d:: with SMTP id k13mr10798339ejz.213.1573921688717; Sat, 16 Nov 2019 08:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921688; cv=none; d=google.com; s=arc-20160816; b=mAu9O/GvFOBDOemqVx0p/4VJCHZNwEJuHVFytyqk+GFPWNq01zrsoPcUy9ccQeK2+n W/7cEFHjnaXINgrqn8U9/L+qGfMqOf9cmI6AYjl+GjhHU55+ofWUSQ+LNF/Ow9zPSZGN M0G3t6mzB8+RUYR0H34vS9EcZgrhyXCXI+xs0UgLUmI5gcFeSZCVTTr1WUrcg9gGL0Rs mzpyvsLJqDkU5g9HEKbX5az2+Ag2wKDfRd0aPN6KDxhrmxXcJrXkIxJ5Hs7p6rP9yp7W oJbs4nOqjbsJYb0IzTPrv+WtLL9FXdVlIY3C92yB+9srmgJhgoHFTtiV0qK8FwehGvgV 0yxw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2z2TSVTASWwcU4PLAaY0A3l73eBKoHFgx1EoLInCkWk=; b=qZ2V3ERDzkPMJUV25D0UftwQxy18oQiuPbcDCHeIv+hIKyIsQRjqNEvq67PLqkdS6f M4uk+3E63ZDTquftXdFgbRMPJ/u/sXQL9msUN8jKImZuYFOZBfg4ZxeF3wkC4LO1I7Cn ijqeQ2OhgIR85PpQtnHdwxvpU36yEvQMST948qf0UD6+15t7Bph6t4+ha7qTkbev1CEN Q4B59QdJPtq0rUwnYF/sW1lJkpatJP+S54A1j0ok1FFNl2wfzEdUfEbWl7fhU3z9mpA0 M0hzHQw/2Cbl9d3GtZ052y5Q494p4eqen3uSmU9xz9HH4dRmPgrkRAKsWh+RzGnl5n9+ GDGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oXNhpDwg; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si9634813edb.303.2019.11.16.08.27.42; Sat, 16 Nov 2019 08:28:08 -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=oXNhpDwg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729657AbfKPQXS (ORCPT + 99 others); Sat, 16 Nov 2019 11:23:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:46840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728541AbfKPPnA (ORCPT ); Sat, 16 Nov 2019 10:43:00 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1E43A20740; Sat, 16 Nov 2019 15:43:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918980; bh=G198HjGEWxt/kMMfYKLq7qrRGUBrAdqtBeP+Wdaj69s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oXNhpDwgx3UL4wDz2980pDVItD/GYB6h4PBDkb35bGLIQNQneDVyO8lnxsxIwhhyB rqBwQb1u5BafU+BNCL+oz0g34fG/umJVUYCHKG8jNK76bLEmsJN6j2qrMy4EDy+1KV eYqCOvMy052R7WrbupgI2GYGaJ4Qw4GOVmrdm664= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "David S. Miller" , Sasha Levin , sparclinux@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 089/237] sparc: Fix parport build warnings. Date: Sat, 16 Nov 2019 10:38:44 -0500 Message-Id: <20191116154113.7417-89-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore 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