On Fri, Dec 12, 2025 at 05:30:38PM -0800, Eric Biggers wrote:
> > +   if (bio_has_crypt_ctx(bio)) {
> > +           struct bio_crypt_ctx *bc = bio->bi_crypt_context;
> > +
> > +           len_align_mask |= (bc->bc_key->crypto_cfg.data_unit_size - 1);
> > +   }
> 
> Needs an #ifdef CONFIG_BLK_INLINE_ENCRYPTION, since ->bi_crypt_context
> is conditional on it.

Yeah, the build bot reported this after sending out the patch (but not in
the three days the branch waited for it..).

I'll add a bio_crypt_ctx() helper to avoid the ifdefs:

https://git.infradead.org/?p=users/hch/misc.git;a=commitdiff;h=748ca0feda9d4e7afc3ae0b2377550925e0835e2

Reply via email to