From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 173BB3446CA for ; Wed, 27 May 2026 14:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892760; cv=none; b=ZJ7ZsSBuMOaFk2QSTmo+33zVDop3IH5B09jzAA05hO7cF856LQ7IuItXohuhkTmdcFlYibfaUQ1/MDZsnrn+Ogzk/epGdDTRUCwSqWj427mTPUdhSqNrBp24CmCU1rjL7ttvyB8UWg3mD9HmOiSS5notSLHRd9MNTmxcW6miFAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892760; c=relaxed/simple; bh=iNNuF3NFB+bDro+iXGS0Xw2qo7pYutUvcJ3gRzDJeLE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DA+pp3dbmKvCY0V0Lof+azKaTn4zQbufK+jMqCHbu9mpi/1ymJOT730W5EP9lLi1wdgTSwz3NeaGp9RZ6FfKxiolk+/oDiQksbBEWPRir2fa8udbUz8V51K0RdEsN9GW4xUEG00x8lT40KCjN7GFgapbHWl2B+q1WW/yQL4KFbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b=TNPRzYvh; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b="TNPRzYvh" Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-41576c5c01cso7271210fac.3 for ; Wed, 27 May 2026 07:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20251104.gappssmtp.com; s=20251104; t=1779892758; x=1780497558; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qRJ9q98QXLZCyuVnKUhn9nMR1KutQ1mTTMcfu5SCdhE=; b=TNPRzYvhPJJCXYG/909pyqFAGCRj9PSu2mRARLI7BNJYoXn39xZ36JxCZutMf24ifi +Puvwrs28J6Wjf5qJMfXLpgJwfc1mkDChY7NGoNvQ/rKDHRbLVUqDonr5w4j83eUWyce E+J4ikdji/zli1CQ/UmdqPSVmoakj1/B1KrYyGQOV19xvrqc1pRs3T3SSYghm7V2GVAe r4pCxBYVsDHeIrsLzzVHbuSt7NVSSNdIWiWwJ34j8khp9xLrwHcFZPfJr+djgCD9nhFd PPEfJUjGLynGyITlwHFZIXlqkFuO89VvhX8g6+qSk75aBF7aMZ5/ssB/IKUOwiMaKrT5 1bkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779892758; x=1780497558; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qRJ9q98QXLZCyuVnKUhn9nMR1KutQ1mTTMcfu5SCdhE=; b=cKtEeKqra5eusiTATzru7k6UzfPzRkKrZW+D4XkRDTBtZPRxYE+ME3eBcQ1RJhilOl /636OhPti/LILvNX0jMl4M911ZTcPd98xtOgqECnMIvk4HfbjHfZJsaOMk9g0XM88fZk TPpEAh83wMPvcwJdUCkPUs42CFQ0k9e/0i3MdxB3502lZnoh0nQfS3o1TIFI/IDgjyYL 6/1x8mQ6Oy5qHjw/ltav6W4mHHBo5kHwO6rVdirNe5kW0c8ohzHhqmUEUmdQxDeduRdW e3xZKhd5RNox54RgUn3VeKDHa2Jz0axYqwxObuKNW1mf2ni8SMEYsWfLXsUwwJ+5XJns eI0A== X-Gm-Message-State: AOJu0Yyqb6CVnheZ8B1x2y2ds17l/COVzxF9g6EHwkuuORtKbpRsQ7H9 NJs5dd1rnO0W47796n+SxB4gfYUw2J2HFYHHgKTfhF/XBkvlYLtgGc5mFT6SmN1K1EPpitjPzS2 nDkP8KC8= X-Gm-Gg: Acq92OGOgfzRz419mrmRwW9qaff1hvpc8YADDTJuf7Xfs1eRoGoqJ7tf+Oof4tlkH0S EgeHHUbSMp2frYx14Z1Y5luobpVqb/AgGlgrAPmXXiGQvTicJlIXpm2IPy3ufTRhRWSFoqHsJzE B0IM2aPgONR1U9IeNv80cC0GAicUbMmyi+S5IGPIOCYuvzuzFFU+zM+KEpdDKOer4lfg7HcF2rE NzMj4578tJ69llEm65z11maZ3YpSZBa5LK10OlI7WPOvZqXKeJxx+q96s5+nRVi7ddLFyNErdyl WWa1zwNaQc/W1m0ZqBi1X+WqqqNqEknoUdxdNKomm6J/DWl9A2l+i1uHglLNpJ8DLYLzvyXgjeJ 6IUHpZsmzwjbyvjj5IJTuG03vsTRY0QRRestXoKFV93kT1jNRWzKNV7eFH8pXkypp1SScauFyyt UJzh0PCSgEBjNF0PwvrhCXkoxOhuuiwrV99GgWtD3V1w+yAj3sUsx2zMRFMqDHNWmBzkIrxYZ5n zQGd+CyVWNFWNAAl5M= X-Received: by 2002:a05:6870:8186:b0:43b:8eba:7da3 with SMTP id 586e51a60fabf-43b8ebac653mr11314004fac.4.1779892757998; Wed, 27 May 2026 07:39:17 -0700 (PDT) Received: from [192.168.1.102] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-43b635d1551sm16738730fac.5.2026.05.27.07.39.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 May 2026 07:39:17 -0700 (PDT) Message-ID: Date: Wed, 27 May 2026 08:39:16 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: build failure after merge of the block tree To: Mark Brown , Miguel Ojeda , Mateusz Nowicki Cc: Linux Kernel Mailing List , Linux Next Mailing List References: Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/27/26 8:16 AM, Mark Brown wrote: > Hi all, > > After merging the block tree, today's linux-next build (arm64 kunit) > failed like this: > > ERROR:root:error[E0308]: mismatched types > --> /tmp/next/build/rust/kernel/block/mq/operations.rs:274:28 > | > 274 | init_request: Some(Self::init_request_callback), > | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn > | pointer, found fn item | arguments to this > | enum variant are incorrect > | > = note: expected fn pointer `unsafe extern "C" fn(_, _, _, i32) -> _` > found fn item `unsafe extern "C" fn(_, _, _, u32) -> _ {OperationsVTable::::init_request_callback}` > help: the type constructed contains `unsafe extern "C" > fn(*mut blk_mq_tag_set, *mut bindings::request, u32, u32) -> i32 > {OperationsVTable::::init_request_callback}` due to the type of the > argument passed > --> /tmp/next/build/rust/kernel/block/mq/operations.rs:274:23 > | > 274 | init_request: Some(Self::init_request_callback), > | ^^^^^---------------------------^ > | | this argument influences the type of > | `Some` > note: tuple variant defined here > --> /usr/lib/rustlib/src/rust/library/core/src/option.rs:580:5 > | > 580 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), > | ^^^^ > > error: aborting due to 1 previous error > > For more information about this error, try `rustc --explain E0308`. > > We build with --kconfig_add CONFIG_KASAN=y --kconfig_add CONFIG_RUST=y > (and would also do an allmodconfig which picks up CONFIG_RUST=y in any > case since there's a usable rustc installed). > > Caused by commit > > b040a1a4523d9 (block: switch numa_node to int in blk_mq_hw_ctx and init_request) Fixed in the current tree. > possibly interacting with some rust change but I'm not sure. I have > used the tree from next-20260526 instead. Hmm, not sure we should let rust build issues gate whether a tree is current in -next or not. For, by far, most systems, it's not a requirement for a functional device. -- Jens Axboe