From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 4E9123DD533 for ; Fri, 17 Jul 2026 07:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784272903; cv=none; b=HNAteoLcvX0SvQA65TAU2NK1IcNXifnV0VDBRb9aGQbeKa2743BNcR5oqgTW0CQIrqGPDMt3fbrlHgR8mqVzv5FOTtGgAsQM6m2Wmu7Cm1O2/bPvuUh4wd7DV7EWiGxicNatDeq1CpimrkHKtBpLiYc1gP9/xjIV5fwSPB0x0pM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784272903; c=relaxed/simple; bh=Rr6bYltoymLmmWPESpilDaL9AJ/AequE2SIdDMvJxFY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N15YgIPuwvv3UKEZuZPdXq1fRhb5hevuraCIfGXjczWlUMN1+IXPTfTISYBXPmacO5UxGjdKoaiG5egSxxugXtJrTojFsALi6/hmElnIYCvPDHFg0JuPWo/DT+BTR3ox+U1y5vJLQQkQwn0FK+rrcYugGFpzKDg6Dbv4nQsbpyI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=hcKnqy7N; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="hcKnqy7N" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784272893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=d+Tkj7zV4PZ2cdVzzSUp4ijJxsddWqia3LSrbVC+6B8=; b=hcKnqy7NN9SjSmlK8KHRx2dS/HNwGT5WZEf+dHaJqZjkciqsMVoDfhvAY/pizJ6BCcelRk elMlyvwg3VquJ+j8hkGLRlC3PJG0Xx4rSh3zKPuEX5Rs/QmBgijjh4nS8b6Kka7OazW+Bc h0+aiACf0CXVAYrD0hKSkZJObeamIEU= From: Hongfu Li To: akpm@linux-foundation.org, david@kernel.org, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, hongfu.li@linux.dev, Hongfu Li Subject: [PATCH] mm/folio-compat: Drop superfluous return statements in void compat wrappers Date: Fri, 17 Jul 2026 15:20:54 +0800 Message-ID: <20260717072054.74260-1-hongfu.li@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Hongfu Li unlock_page(), end_page_writeback() and wait_on_page_writeback() are void wrappers forwarding to folio-based functions which also return void. Explicit return statements here are syntactically valid but unnecessary, and inconsistent with other nearby compat helpers such as mark_page_accessed() and set_page_writeback(). Drop all these superfluous return keywords. Signed-off-by: Hongfu Li --- mm/folio-compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/folio-compat.c b/mm/folio-compat.c index a02179a0bded..8eb3e7fe4c91 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -13,19 +13,19 @@ void unlock_page(struct page *page) { - return folio_unlock(page_folio(page)); + folio_unlock(page_folio(page)); } EXPORT_SYMBOL(unlock_page); void end_page_writeback(struct page *page) { - return folio_end_writeback(page_folio(page)); + folio_end_writeback(page_folio(page)); } EXPORT_SYMBOL(end_page_writeback); void wait_on_page_writeback(struct page *page) { - return folio_wait_writeback(page_folio(page)); + folio_wait_writeback(page_folio(page)); } EXPORT_SYMBOL_GPL(wait_on_page_writeback); -- 2.54.0