From nobody Sat Feb 7 07:44:07 2026 Received: from mail-pj1-f100.google.com (mail-pj1-f100.google.com [209.85.216.100]) (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 8E4CB42A58C for ; Thu, 8 Jan 2026 09:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.100 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767864009; cv=none; b=TvnCHjAWF3sVu2Y9Rh+crhX0Iq6OQVZwG++2hUsGGL83ImWKoSspKB3d53mBJoKzwkTAY24Or8fhe9JaCex/FLldHG2wr0IG3gVeN5dF6VwxINYs670Y59zlwgInIEz8PRjfxs8gOYNpHtpBntzo41YqAx5rbU2Otv0RdOjweeY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767864009; c=relaxed/simple; bh=MFrMgizmK5MaIPV+Gko7o6kSYnpBboKUcVmDmAwyHCk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MJb4+m5FjnYaInGytw6kg/bro1pUF8ingA0kpV84Td9/+Zvp73PPG0s67AiZgkzDNZxbEVbHzeRQGopzCWIO4O4CtQ4adKxjQuP8VUwUpbNCSuqejGKwCwheLoOiaSzMFL182Zx/0IhS035bd+LEukfP/FHUF2PwVWuL2OTeXHA= 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=PJhDWRyJ; arc=none smtp.client-ip=209.85.216.100 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="PJhDWRyJ" Received: by mail-pj1-f100.google.com with SMTP id 98e67ed59e1d1-34f63b154faso77932a91.2 for ; Thu, 08 Jan 2026 01:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1767863996; x=1768468796; 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=PJhDWRyJZgdhzo2osYdH0DTJHjzirGkQ/nd2uZaVlWMcOZzJyKm8pyzfSIMOFwCjNU 9vDOfUl/uYejrQj2Ue23t/9ROQWOS0ap/5y2ruR5cYPVvAc2xLQkpuZzmYO5Ke0RSIW6 DIkCl5jTQk7hspV6w1qhZ54u84R2s261WEYAJ5ynh/u1CZuIiAOxVcfwV6yU7bmU4xzP KakK/FEaRJd8EVyg4PBMHRdg6XfDhVOEfAyAk+nJwS9+bolHHBFXnVOolaSN8Dz77EZz yWvJ7ZVK+cBbWIMRIV+nPhSCIJ6S5TdwWH/137SRTQoY3rSmN56LN/C82oPlufqRRuVz LbhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767863996; x=1768468796; 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=HX5cSNh1XU2832Ayio4nU15RnDpr6/wjJjNSn2fyiFy9wZapZzVF9rx4w1gBpsLoQ2 w/DtqGOrUuWVov4ZPDqQgGnjUoz1We6XLQ9Z3EAtgBComIcq4J4+B5ElFxAhXIvpeZak WissSiVP9gadjVWo74ml47jOSw4G5Y+YDTgwkaqtUtV44gJEBf4neVhXzsEvGrEKH5eK iDo60cOvlY/k6GCW8Bvxw/3LvJSRVxXcjXvLA3ypPPLHKcificELNOxUVWfzKxdBJV9+ 7NzwIQFw2ONriYvHlr5PDkSHvqMgoI3VAIrQHbwBl+KxH3anvPObQn624kuwqNQXaL8P jcww== X-Forwarded-Encrypted: i=1; AJvYcCW5QfVdsjLkR10ds64zg1od0U34GU2ryGKB4uYndewrqeA98b78S/UGo9hbhuTUTunzW9ESiM/4RMNB/IE=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+USriPJB2WH0abmtyRyf+8XvY3qeXK/E62/y8jQmknL4ykNK6 WF7bNf5yXcym9WHSjv3YsTkJ+zEXixyjPOyjHCjBTKSexj29WnlG1KUWNuhyTcdEY5Vpuy/cTuQ 9DFVmfH1aAa1nd82rW5t/aZrdmSkiEnIKXWaR X-Gm-Gg: AY/fxX5G44VvlXQVsxJ2ODHQ8xiFtjO5TWrLF6DXJWu/ZsgKLG4Cnj0yIgyKAoLXCNV J+CQJyAZ0GxFpKPQg6P+u6Y3SDbe/03tVxNyj2SQLNzwZH94IXgWaE8UG3AzZ54kTeKw/2xEFpQ 1W3y5Kuewiru4uIiWXhwZ8cryTadYlBR4MKELs1JkxjHoTQktbdTYQ80fS7jeWda8cHRCZ1FC6x Kf1wY07Nfn4t8bnT/qG+py4Aczfa7dq+hoki/8aTjvcvJKBSveJnieSmr7aTgS5qhncEUZsleEo vW5fWLJdV37MWvUQ7FWkBTpYT7fg623UQTdX1oNt2BHOzwXPC1zHmoINTd3xhtE+T0pH4dzubUm XamlM+vUfuIb52fcai0DYi+pvFN4Xxh+v4sm+hgs30A== X-Google-Smtp-Source: AGHT+IGgsECl/s5X0anN6YN0NbDvXYMzPEZuaAu3pVTMt09j26paUiPRz914MTdupMzpukRtZg1N3wOUfHwP X-Received: by 2002:a17:90b:2e0c:b0:343:e480:49f1 with SMTP id 98e67ed59e1d1-34f68c28ea4mr3826621a91.5.1767863995746; Thu, 08 Jan 2026 01:19:55 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([208.88.159.129]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-34f5f8d0c46sm1010471a91.0.2026.01.08.01.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 01:19:55 -0800 (PST) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (dev-csander.dev.purestorage.com [10.112.6.120]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id 294EA342170; Thu, 8 Jan 2026 02:19:55 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 23952E42F2C; Thu, 8 Jan 2026 02:19:55 -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 v4 01/19] blk-integrity: take const pointer in blk_integrity_rq() Date: Thu, 8 Jan 2026 02:19:29 -0700 Message-ID: <20260108091948.1099139-2-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260108091948.1099139-1-csander@purestorage.com> References: <20260108091948.1099139-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