Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4131505ybi; Mon, 29 Jul 2019 19:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRRsT2kr8bq3R6ZnNMRINUTSNXnVzSboU8A21y+A+yDhr+fEz0S3CG6sPwDZamb4pHGYMO X-Received: by 2002:a63:778a:: with SMTP id s132mr104365987pgc.242.1564455455402; Mon, 29 Jul 2019 19:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564455455; cv=none; d=google.com; s=arc-20160816; b=QWFUj8BX2FFm3RTSq0WZErnDKTSUbFnsFHjkC10JCborECkl70U4Q6tvwJ6wQtapRi YGHRwpNi43SScbfCnK2oJ+itv32jqTEkp4wrqqty3YKRqtLJ0XsQ8MzN8z/jNke1mwol 0ZFVZmQ7bjPx6Lz0XPucANv1yNd0SFwBjt/T5Fe6XqPwM7Zj/rm9SnAafwwGvDR+V30w iH6Mp1pvHRITo/fJEOmMOpsNtlwlU0QgnMT/RuZsE3V9DLr2RTBVgwytjMULX8T9WS3H fMmqcRdeJd2kr6gRMvYj+cjGl/R+vM5NPKpSPefeCctukia2pLC7AaJCa9xGiB/EvaxE BsVQ== 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=Uz1A4+3gj4Dm/Rf+UL9WSRWMUVg2W1rk095ii3/phF0=; b=FlUrXRamyMh3YNAE+oFArNd+vSf3AQ9y4cEaLmxKEj6GFcqzP42FFB6JitRsycmlHp lwHB9Szbku/8YKXmeW2LWK0rcndq3IP/y+390DVuJMyGzeV+RBLpxanKRXymYyDqkFIb 28T5aMXtLDwj/Ki4cED0TDyxKj+pfPe00JV1WEsk959AMUiia0hkAuAlMSPxy+dwCIpF 7+3o7joxbRas5p9vU9LX6I2Kila3M+eRHRTYOBn6UK9cHEDcFZyjVreFZ1Jj9xm8N2Wh 2ifGGzw/+vhTvTHLzKs0y6FaWPJhDmwKi+l6WFChXVsdBMLtZZkBfyABh8VnRmSSN6yl RxZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iLt/LC/q"; 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 l1si27589652pgt.137.2019.07.29.19.56.48; Mon, 29 Jul 2019 19:57:35 -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=pass header.i=@kernel.org header.s=default header.b="iLt/LC/q"; 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 S2390547AbfG2Tta (ORCPT + 99 others); Mon, 29 Jul 2019 15:49:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:40000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390324AbfG2Tt3 (ORCPT ); Mon, 29 Jul 2019 15:49:29 -0400 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 992E621655; Mon, 29 Jul 2019 19:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429768; bh=UKG81nHbOs5b5H96t8JY12N6peRn2i/jtp95vtWKP2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iLt/LC/qKkQrjAm8pUw4Hl3qksKN8zyR7oiR7z1fLTwNSUg4XzmOS0OWItllFxy93 iqUZtQBSSgNod1s2ovk7k0mdDzDVwITszZYmfQh4kwOL/mDemqgC2jTgUvCUh2MYpE Ft/YE2AYm71wvd18IB4oPLujOOh9TQ0j5EQ1BViw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qian Cai , Michael Ellerman , Sasha Levin Subject: [PATCH 5.2 090/215] powerpc/cacheflush: fix variable set but not used Date: Mon, 29 Jul 2019 21:21:26 +0200 Message-Id: <20190729190754.981741824@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@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 [ Upstream commit 04db3ede40ae4fc23a5c4237254c4a53bbe4c1f2 ] The powerpc's flush_cache_vmap() is defined as a macro and never use both of its arguments, so it will generate a compilation warning, lib/ioremap.c: In function 'ioremap_page_range': lib/ioremap.c:203:16: warning: variable 'start' set but not used [-Wunused-but-set-variable] Fix it by making it an inline function. Signed-off-by: Qian Cai Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/include/asm/cacheflush.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/cacheflush.h b/arch/powerpc/include/asm/cacheflush.h index 74d60cfe8ce5..fd318f7c3eed 100644 --- a/arch/powerpc/include/asm/cacheflush.h +++ b/arch/powerpc/include/asm/cacheflush.h @@ -29,9 +29,12 @@ * not expect this type of fault. flush_cache_vmap is not exactly the right * place to put this, but it seems to work well enough. */ -#define flush_cache_vmap(start, end) do { asm volatile("ptesync" ::: "memory"); } while (0) +static inline void flush_cache_vmap(unsigned long start, unsigned long end) +{ + asm volatile("ptesync" ::: "memory"); +} #else -#define flush_cache_vmap(start, end) do { } while (0) +static inline void flush_cache_vmap(unsigned long start, unsigned long end) { } #endif #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 -- 2.20.1