From nobody Mon Feb 9 04:04:13 2026 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB76F139579 for ; Sat, 17 Jan 2026 02:49:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768618157; cv=none; b=IrFxSbecFe5BBtH7JeYP4UF5VsThMoDmMvOJnRQPynz9pqADbEVMbTGQnoJCAV0SPmIUub2+8JiHI5XgjGTgSz3NGeibJqOQW0yS1trJ+ftojaz5SSORF9qGmxm2sk6vizW/TgSZPE15OqWcQ5OtmuYW+6o/Ts83jubamnLcx1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768618157; c=relaxed/simple; bh=kgkNzpXjTlp9865fgvObwVoaZinNtGqlKh574pXwbb4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ba3UV2BlfK/NqfDHuKEl/w7Iao2mN+GKZNeafePoBxmhJRWD8ZMC3A/HCreMTUvpHvAH2ZaRBLp8cg1Q4wIHodTpzI4PppaJyytk8D1GVEY8qqbp2nHY6acrgou2mWZDsqtypzdTfl+TSBejyBrPOqPgONem2s1XJpV3GYAB82w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=WR2EFjOE; arc=none smtp.client-ip=209.85.215.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="WR2EFjOE" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-ba599137cf8so979047a12.0 for ; Fri, 16 Jan 2026 18:49:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1768618155; x=1769222955; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ltCImzVsYOrvhYk1oTG8nKP6i8CBZtCNaMyQqLS/sX8=; b=WR2EFjOEd/9VB+ws6V8/wbhOeo4DFw5dEkVWgLR3tEn069Sxh7q5hLBf6aodisoHGd f67WboXHd/als/R5Y3R+4SBTL7n5tgsD8FLJAUGcsu25wf0wNZdR2uD+lPaRa7N8DNlr iXQCzkvJCeo4Ps2QBTN0Dmv4+GWQL6KAYMgRw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768618155; x=1769222955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ltCImzVsYOrvhYk1oTG8nKP6i8CBZtCNaMyQqLS/sX8=; b=JmUvq+76r7+5SlsoUmZyk5gVLoTBj1TERov8BxFj4jDKb3Mfi18lejpCRep/IZTPF8 O9wUJ3uRxtr3OH7W1CDXAjESbEsFzuwh9Ku4X5MHt8NdWGHs3xAL0DejJquvKWy+4A2m S9gJ+ApJnvYSEdwG5Y1HxYoX/rUCeLHHxsbjV0eB9JI6r+0mQU6c++msuutQq9BcEHZ9 C8ko6DS7yJh8WiDuWMriCxWhABmeyr1njxeevGNiEpy3ZytXj/b2PwkjJ5A+qBbEU4FK y3o58Qt+87o4EH88eWsUiLP6NEkvniLvb4Tc5PXZEKlHeJITz3+1DDcbpAY6wb0HFQik X6ZA== X-Gm-Message-State: AOJu0Ywp6VaPPOv3jdqRdwCJv/bCSLYtxHJMhxLG+/W5UbnjBPAi0xzo 4aky4onimBWX1EB/tkgwn6eZHSSpLMgWL+ypw8v+QHNVZNE+0sXBNz8FTotJhLFRzg== X-Gm-Gg: AY/fxX4L3qCZ/B37NYd3IjlrBnUwHiX/FpvIZl/sHZyKGjtq6P0Mklf5zXWf6UIi+LK EbFk1cpgT0bncMD6Gvv7iqYLuDWcR0ZtQGKNQR5KzcC1wHxeaD1wAzwDUVEF9cpdEXnnd/yY7Ho yacXUj5wLmNpBLi5DLEtRRZFvQERLzBiZHNyYZXyD4gI8hXBKMPU6HALI/WNgHPOuWmcYs4yVcL NplM4kDLasPZgE+j5UwT2V5FlQI/F6LO39nPvtTMnEV1kFEpPN5x5D1LDX3U/uViMA/ueiXnHTh hBixhepDwjrJeCF4FQqzczw6kBBzzEWGnIPddCNlkXeRc4nFpcxv30FclYcSGfRFOEG81C1pS72 uxZB0lKZ8Bd45Fy8Jot2seDAPlS27M+mcSY78YW5at/LrX0QymSb8pzk6oOasGdZDw1qVKT3jBr pbIT8uYRR1c2KINEDCzE1Mdn06yMGF+PStqzLq2UzlCSBm6mpvmiSXdTIBfFVpOu6ApXSdCzUPz g== X-Received: by 2002:a05:6a21:4d92:b0:35d:d477:a7f9 with SMTP id adf61e73a8af0-38dff28c08amr4379072637.12.1768618155119; Fri, 16 Jan 2026 18:49:15 -0800 (PST) Received: from tigerii.tok.corp.google.com ([2a00:79e0:2031:6:fb0f:ccef:d815:5581]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-352733adebfsm1587019a91.1.2026.01.16.18.49.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jan 2026 18:49:14 -0800 (PST) From: Sergey Senozhatsky To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sergey Senozhatsky Subject: [PATCH] zsmalloc: fixup zsmalloc-introduce-sg-list-based-object-read-api.patch Date: Sat, 17 Jan 2026 11:48:40 +0900 Message-ID: <20260117024900.792237-1-senozhatsky@chromium.org> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog In-Reply-To: <20260114001121.5B6ADC19421@smtp.kernel.org> References: <20260114001121.5B6ADC19421@smtp.kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" zs_obj_read_sg_begin() always returns 0, convert it to void (per Yosry). Signed-off-by: Sergey Senozhatsky --- include/linux/zsmalloc.h | 4 ++-- mm/zsmalloc.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/linux/zsmalloc.h b/include/linux/zsmalloc.h index 11e614663dd3..478410c880b1 100644 --- a/include/linux/zsmalloc.h +++ b/include/linux/zsmalloc.h @@ -44,8 +44,8 @@ void *zs_obj_read_begin(struct zs_pool *pool, unsigned lo= ng handle, size_t mem_len, void *local_copy); void zs_obj_read_end(struct zs_pool *pool, unsigned long handle, size_t mem_len, void *handle_mem); -int zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle, - struct scatterlist *sg, size_t mem_len); +void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle, + struct scatterlist *sg, size_t mem_len); void zs_obj_read_sg_end(struct zs_pool *pool, unsigned long handle); void zs_obj_write(struct zs_pool *pool, unsigned long handle, void *handle_mem, size_t mem_len); diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 5abb8bc0956a..5a68349403d5 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1147,8 +1147,8 @@ void zs_obj_read_end(struct zs_pool *pool, unsigned l= ong handle, } EXPORT_SYMBOL_GPL(zs_obj_read_end); =20 -int zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle, - struct scatterlist *sg, size_t mem_len) +void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle, + struct scatterlist *sg, size_t mem_len) { struct zspage *zspage; struct zpdesc *zpdesc; @@ -1191,8 +1191,6 @@ int zs_obj_read_sg_begin(struct zs_pool *pool, unsign= ed long handle, =20 sg_set_page(sg, zpdesc_page(zpdesc), sizes[1], 0); } - - return 0; } EXPORT_SYMBOL_GPL(zs_obj_read_sg_begin); =20 --=20 2.52.0.457.g6b5491de43-goog