From nobody Sat Feb 7 15:10:14 2026 Received: from mail-vk1-f227.google.com (mail-vk1-f227.google.com [209.85.221.227]) (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 96A20214A9B for ; Tue, 6 Jan 2026 00:58:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.227 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767661092; cv=none; b=MHc7oV19JaGhSXVDCNfMUk3Rw8cGYhMzHG2MWWM+UQGrIT8XX+0iN9DcygFQhC99m3tJTKh9ujwPs5zlPqI0ICOg4Bp/YU3aeMTyE1F3i77n1xUGRD5JdwTSC1oOICZjGEB7Wpy494OmikYc1Sz5geX9ai8llk3azib7wy0C0+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767661092; c=relaxed/simple; bh=MFrMgizmK5MaIPV+Gko7o6kSYnpBboKUcVmDmAwyHCk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W08AI0nSe+WIhP1pcTlL9Ghv2KU783VLzCNl1YoL0fJW74fu4CdFOZ0qT+HCSYVq8UaRhPQG57Np5RT9CoMiDVTsQnBYsDLkfm9karK2f3ZiBTQSlSIVGfttx8SuCzX64Ogvm/q2a+quL1c+9T9f/algvBXUkAnv+Rv/sFES35k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=PMp2pu3A; arc=none smtp.client-ip=209.85.221.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="PMp2pu3A" Received: by mail-vk1-f227.google.com with SMTP id 71dfb90a1353d-55fc4cad35fso17390e0c.3 for ; Mon, 05 Jan 2026 16:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1767661089; x=1768265889; 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=MNQyNIuF0YsgyAJSwbc/xgpZYuEtibH5Z0ga5IDU7gw=; b=PMp2pu3ACjn1sCwdWRqazeoN7KrK1cWNvEYCk9mzn0Tk3UeXs/U72J7hmmcA4aYTTK iMJL8SMCA8YWRT2PWb5eb6vk/bHU1pbF4tIaZ6oCkBtSUMuwGM/75s4/UPWy8MWpTUi8 ay+lqlQ8HpLX1ztZt/lKlRpBvvnSbs1vQBml6paaGrBWR9Q1L7SkZXtfR7AOKTOcAWka HgH1SCSbBHyyxshYB+4jqCZLb3Pf7Ha789aPHzyGD+Y2w8KcxxDgf4CelhWT57SwqRjl HM8DH2n047Z1JfVKzi4Ihbp78fJokt9oJ79+DbhC/p2iHOO7tIu+7Y/mBi14CN3kIZ0o Gjgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767661089; x=1768265889; 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=MNQyNIuF0YsgyAJSwbc/xgpZYuEtibH5Z0ga5IDU7gw=; b=Pv416zq0bOE3pfGv70TlElfk1A9tzivxn4CMzCD58QSzR4osyI1iLZbiQoNAvkxsrk 8KDE0E/jXhCcKJ9TDQghGLgHEFjANNqDm6dfoB1tzXvnjIk/MplK7v4h9gHX5SGXuDGO JfbRUycRHJ/Q+PtulYabrP1pWcWHTglwR0VedtNdplLPDlj3mxAm+LB/arLQHik52X4B qgLIX+jfy5FyVR5ujkvKrG4N9bdwl7x2StUKPi29rYpyaK5G5zWUgfwby+hk/P1NwWzs 1rF22HmLFbA2m7exEsZXvAXa+kCIjVSATdvkaYSRsKfD++iEWkJlyLgOgZncDWWilTiH Da6Q== X-Forwarded-Encrypted: i=1; AJvYcCXy+f9WPXq8WZ6Q1Xh479lhAnG5NnLCSXXdtmG18VX9QkgUgF9b6irSkW6ce/zlx5Y874BRrzTyHID/UL8=@vger.kernel.org X-Gm-Message-State: AOJu0YxKlyeZiFNezZIUXkArenCMGWHkeTRIBdyRS2JtsNWK6ulfZiWA ET+wV/V63fzhCccqYUvLdta09RyE4Rwl4fAGsl8kgh+UExU8aE/7WxVPs7aFH97afmjAu5znHVq SnMVHWEcvE//XbXSweEZPRLcr5NfQy9pQQVS8WmNKL20q2d0iUqeM X-Gm-Gg: AY/fxX4l85TK4bkJq8N36mezC12hYV1zcW4HaHuiZcfTvwjK0eHGwykIkw8w+2k2A7d 7xydQysfX6EeCvbFUVbNtaxNbZGNFL0jyyuuZBMkTvd5JBStdFKrOtJ37SuiVojgU4T3pz8565c piZNA8igHp6bPQgrDYMbbK0assgA4mAcMCIO3aRTa6tTCAiM0q+kgFsKCgf6qzyg2gqdkBtkRfY ZJ5HqS96YiQRKFNSLRf3zaJcTSABgsKjEyBdQZWVPBP8PQIU1UeW0ORMLz43uBiePcKn6DsQYaC 584nKuuedn5ZTO7Yz7G6XF2ZOcZWGQN4B6VLfrSfAiGKm1AuIvyFtZ0NKivgD3kZd2EcDW2mrz7 i4zrQMLMRGtLjgPGSePBlovBYrYw= X-Google-Smtp-Source: AGHT+IE61WlaoTEdEojd+c8ZwUjfNjslPkPW4kBvumfbC08CESGGGz0wA+YeAH99IQPcIB5gAPU5IWfKHKOH X-Received: by 2002:a05:6122:ca1:b0:55b:1668:8a76 with SMTP id 71dfb90a1353d-56339524d92mr266941e0c.2.1767661089325; Mon, 05 Jan 2026 16:58:09 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([2620:125:9017:12:36:3:5:0]) by smtp-relay.gmail.com with ESMTPS id 71dfb90a1353d-5633a40656fsm84914e0c.7.2026.01.05.16.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 16:58:09 -0800 (PST) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (dev-csander.dev.purestorage.com [10.49.34.222]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id B942334084D; Mon, 5 Jan 2026 17:58:07 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id A8E81E44554; Mon, 5 Jan 2026 17:58:07 -0700 (MST) From: Caleb Sander Mateos To: Ming Lei , Jens Axboe , Shuah Khan Cc: linux-block@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Stanley Zhang , Uday Shankar , "Martin K . Petersen" , Caleb Sander Mateos Subject: [PATCH v3 01/19] blk-integrity: take const pointer in blk_integrity_rq() Date: Mon, 5 Jan 2026 17:57:33 -0700 Message-ID: <20260106005752.3784925-2-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260106005752.3784925-1-csander@purestorage.com> References: <20260106005752.3784925-1-csander@purestorage.com> 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" blk_integrity_rq() doesn't modify the struct request passed in, so allow a const pointer to be passed. Use a matching signature for the !CONFIG_BLK_DEV_INTEGRITY version. Signed-off-by: Caleb Sander Mateos Reviewed-by: Ming Lei Reviewed-by: Martin K. Petersen --- include/linux/blk-integrity.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/blk-integrity.h b/include/linux/blk-integrity.h index a6b84206eb94..c15b1ac62765 100644 --- a/include/linux/blk-integrity.h +++ b/include/linux/blk-integrity.h @@ -89,11 +89,11 @@ static inline unsigned int bio_integrity_bytes(struct b= lk_integrity *bi, unsigned int sectors) { return bio_integrity_intervals(bi, sectors) * bi->metadata_size; } =20 -static inline bool blk_integrity_rq(struct request *rq) +static inline bool blk_integrity_rq(const struct request *rq) { return rq->cmd_flags & REQ_INTEGRITY; } =20 /* @@ -166,13 +166,13 @@ static inline unsigned int bio_integrity_intervals(st= ruct blk_integrity *bi, static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, unsigned int sectors) { return 0; } -static inline int blk_integrity_rq(struct request *rq) +static inline bool blk_integrity_rq(const struct request *rq) { - return 0; + return false; } =20 static inline struct bio_vec rq_integrity_vec(struct request *rq) { /* the optimizer will remove all calls to this function */ --=20 2.45.2