From nobody Tue Feb 10 21:40:55 2026 Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D086346AE6 for ; Tue, 10 Feb 2026 10:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770717748; cv=none; b=F/VKXlLBNiWYnBr664oa2zMTk3Mv08sLL3MV1S3AAGn+f8nJIoVCedL/0YdROfFyle01pdJHqGIwAmjNdzk8b4xi7YI0gDOsn4Hewam+XoDSFzHOpyaAYL1WMi1Dfd3A5nuz3cCgCDGc/1DZ+shV3w3QbAxXiv9q9Gmu+TlGuWo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770717748; c=relaxed/simple; bh=D5zc+mEsKUNcL+dL8qQRS578P6ZdoxEsV5FPL4Q0XT0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=o6hjhAwxLnBmraLF52jvqWjHqfna3aVR1gvmdhicEQeKTJgYs3tNmF1apnXh2BsFST9xtii+33VMv4JYJz7YYZtu+tZ/dNrlozEg+xiWQLuZh6e1xKBVWDn2ca+OauAZRLuqhzdmVuoIQYNwqPt1rNd12gov0h3RixIE2T3zf2E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=w6rz.net; spf=pass smtp.mailfrom=w6rz.net; dkim=pass (2048-bit key) header.d=w6rz.net header.i=@w6rz.net header.b=m6wQLq+F; arc=none smtp.client-ip=35.89.44.39 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=w6rz.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=w6rz.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=w6rz.net header.i=@w6rz.net header.b="m6wQLq+F" Received: from eig-obgw-5002b.ext.cloudfilter.net ([10.0.29.226]) by cmsmtp with ESMTPS id pgn4vDoFNaPqLpkZdvhqpj; Tue, 10 Feb 2026 10:02:26 +0000 Received: from box5620.bluehost.com ([162.241.219.59]) by cmsmtp with ESMTPS id pkZcvS7RxN3K1pkZdvb7Xu; Tue, 10 Feb 2026 10:02:25 +0000 X-Authority-Analysis: v=2.4 cv=UdRRSLSN c=1 sm=1 tr=0 ts=698b0231 a=30941lsx5skRcbJ0JMGu9A==:117 a=30941lsx5skRcbJ0JMGu9A==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=7vwVE5O1G3EA:10 a=VwQbUJbxAAAA:8 a=h0uksLzaAAAA:8 a=HaFmDPmJAAAA:8 a=djn8nBB36KeQ6tMeFF8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=MSi_79tMYmZZG2gvAgS0:22 a=nmWuMzfKamIsx3l42hEX:22 a=L5EjiQpGQaFGZdqT14z7:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w6rz.net; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zzGhcwBQ0Ex+g2JcqOwHNtbJCaWlj3nGXCTugZPDWrw=; b=m6wQLq+FLvPgIaTsIrrt0cJ2yH jKSj1JhyXvD1rdqXsWXDSkIBui/QhDeK8/rp77PsPGvYNpsatLO/+3Cs4X9EREnbcbOcMB2q47rHt dKxJ9hgwVf7KD5ikn83DvbAF1XKps5yJbPA+V4f2ih6QYjBgi7ObeoWMxSFAb2yRkdkrCpyrVhIoL hpMFxTLkRp1qUTgr4wtX99r7s4Xx5UUkG45uZW8j6sBgkh9NUWDjZUGxOCOeVvOXxhd85tLJEFPb8 R7jkCWWc0MBjX5Rhb0B5MqapCU9bwSZA1sIlbH71of2abHNwTnCMinMAYEuY5Vwbd7k4Y2vFXikjn S7vswPkQ==; Received: from c-73-162-206-103.hsd1.ca.comcast.net ([73.162.206.103]:44804 helo=beavis.silicon) by box5620.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vpkZc-00000000nbw-2jNV; Tue, 10 Feb 2026 03:02:24 -0700 From: Ron Economos To: gregkh@linuxfoundation.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Palmer Dabbelt , Ron Economos Subject: [PATCH 5.15] riscv: Replace function-like macro by static inline function Date: Tue, 10 Feb 2026 02:01:48 -0800 Message-ID: <20260210100148.3674334-1-re@w6rz.net> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5620.bluehost.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - w6rz.net X-BWhitelist: no X-Source-IP: 73.162.206.103 X-Source-L: No X-Exim-ID: 1vpkZc-00000000nbw-2jNV X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-73-162-206-103.hsd1.ca.comcast.net (beavis.silicon) [73.162.206.103]:44804 X-Source-Auth: re@w6rz.net X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: d3NpeHJ6bmU7d3NpeHJ6bmU7Ym94NTYyMC5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfEEgXHJvID8TVGU96ibbNrED/O9msf9RklWZ24aLF1h7lyhZZpeBcW5lRquHdCfZgXp946P6iW4y8x9QD24VnVrPpVCxZcJ8wwdi/xvM/Fwdt649PFDR AwCV6/xdspT1oLvrIOwxG6tGVQiPmiKJAlMcajcOekhZzxBhD8RGSv3G7a1WrlQYL/6Jxd3WmrzunbY8/A3BW8OyxO+otKXi+DQ= From: Bj=C3=B6rn T=C3=B6pel commit 121f34341d396b666d8a90b24768b40e08ca0d61 upstream. The flush_icache_range() function is implemented as a "function-like macro with unused parameters", which can result in "unused variables" warnings. Replace the macro with a static inline function, as advised by Documentation/process/coding-style.rst. Fixes: 08f051eda33b ("RISC-V: Flush I$ when making a dirty page executable") Signed-off-by: Bj=C3=B6rn T=C3=B6pel Link: https://lore.kernel.org/r/20250419111402.1660267-1-bjorn@kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Ron Economos --- arch/riscv/include/asm/cacheflush.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/riscv/include/asm/cacheflush.h b/arch/riscv/include/asm/c= acheflush.h index 23ff70350992..f42d73573f3c 100644 --- a/arch/riscv/include/asm/cacheflush.h +++ b/arch/riscv/include/asm/cacheflush.h @@ -22,11 +22,6 @@ static inline void flush_dcache_page(struct page *page) } #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 =20 -/* - * RISC-V doesn't have an instruction to flush parts of the instruction ca= che, - * so instead we just flush the whole thing. - */ -#define flush_icache_range(start, end) flush_icache_all() #define flush_icache_user_page(vma, pg, addr, len) \ flush_icache_mm(vma->vm_mm, 0) =20 @@ -42,6 +37,16 @@ void flush_icache_mm(struct mm_struct *mm, bool local); =20 #endif /* CONFIG_SMP */ =20 +/* + * RISC-V doesn't have an instruction to flush parts of the instruction ca= che, + * so instead we just flush the whole thing. + */ +#define flush_icache_range flush_icache_range +static inline void flush_icache_range(unsigned long start, unsigned long e= nd) +{ + flush_icache_all(); +} + /* * Bits in sys_riscv_flush_icache()'s flags argument. */ --=20 2.43.0