Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp393176rdb; Thu, 1 Feb 2024 11:27:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEdBLO2r1IJ/AnucKYLJ1kgVsBQ0SYn5QtkHUtY71Q2o9dFm817TSeAox7vxvrFavPomTp X-Received: by 2002:a17:906:3590:b0:a30:84aa:c2f5 with SMTP id o16-20020a170906359000b00a3084aac2f5mr48618ejb.56.1706815622766; Thu, 01 Feb 2024 11:27:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706815622; cv=pass; d=google.com; s=arc-20160816; b=AtRVrCSewWXeOJmyxe90FEppdiHakz+I/gK42+UXrbxuNxhcq53UkM9dkejCZGtmUO Hd0ZuGRburnDItJmOwWdTW4W4YJSnuKK63qj06PUNOBXoGFXOiBLbyh/kY96eJxCCqYz 1UocHU4/2BvveInFFqd57JSwE3y1dDiFWhfHPcO+Kfcl5q1lXAnn/fp38VqumzOqfDM+ tEmqBGLjXjFqalLzFs+Fk+5C0cct+1IOndUViQVUSDtfzAmh95zfh/2z61jx0flj33Gk l9qSWYsrcyNoqYUTLK8D4OK/+FQd0uk7K1bBb+n74Yn7q8q1D/GNZCwutKaFie9Ei4KL DYnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature; bh=hyJu/UUVOGO6WHBbFcUHcwW7sN0BImG4+VVTXTyQNHI=; fh=DO0SrzTydZ+gr5jSpVd9xsaGkC8c420zR9778ObIeRQ=; b=IkN98crcw6LzeFPCoWUW3n8JdcHRqGXnCmJqmFMYjbjakcQLyPGDWbCvldk24BnZqM WP0FSBbzOVatUSsCg/rTgbpR638tOGvo0oST3t+SElaF0HBrkROj7JZMCIo0NFsDsox7 +Kr39Pa2HV67BqSiiFywEXm9RkNqyKKxOci/YzSVFnmGSjLJ47Y4yFMvlHZs7Nq6LRPj gKjzpxN2T7S40VunduOZW3UAxzjZ2re8prprajPjuILMr4/Mu68zpRXyYbk3oURjewM1 SrxZxoE6rXFcF4ysBsoSXBh2JmZcq5VRhiObq9Sk55thHUzhjzoNz/4l9e3WMxBU0rwh E5Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ED4tcWCM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCW3iPsZP0lGqiXHB13wuBBdLWpCRa0u11ICEh6b6l3z1sF6cQ0dp5M9bExGG4/OZOalZt6QAa0eRI3tCmloDLUMNrM67KiYqtKXdKGd1g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id mj26-20020a170906af9a00b00a36f8111d6dsi40991ejb.300.2024.02.01.11.27.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 11:27:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ED4tcWCM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 06CEA1F211B4 for ; Thu, 1 Feb 2024 19:21:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98BAE8529D; Thu, 1 Feb 2024 19:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ED4tcWCM" Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (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 3E6F985270; Thu, 1 Feb 2024 19:20:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706815253; cv=none; b=OxgyNZVOXITddVZMy3AGInQrBj3lW0Hg9oljqLXNWtB7kiDRBX/NXMKVWvAxQjfypsN20XuDeULKWq4+4ofHHnLJiqXc3Snk7166qXKv4N6UYUuT55eQAXD4yc29+rLVgpmlmULV+bI4FWK8SBov04WLdyfSRXlpxd6L7Y5zMpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706815253; c=relaxed/simple; bh=0zW/ynUDROed77RIRLq/hCLZRf5+NOXfoIJZKFpkiB8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FJZTIU/MF2VFAGJ8bRQbaOGUN6jrdJ2eu5ySlrEt+ckHre2U8QxPDvyXc1pL59ViF/nZNrPB87WMtop3Vj2yZAaSlpiQOG9/7Uaok7LG9ODi5iF+vHx3FBgjlXcV3L3PG+fFo1odbxAH4TZTjYnjhEi4VXK5nA/NNtLQDOHfgx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ED4tcWCM; arc=none smtp.client-ip=209.85.222.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-785388b3281so78563185a.2; Thu, 01 Feb 2024 11:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706815251; x=1707420051; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=hyJu/UUVOGO6WHBbFcUHcwW7sN0BImG4+VVTXTyQNHI=; b=ED4tcWCMJtFxIYQSAhvFY3oNdiZ5MU0AtYmENLWiERlc9Yf0pcCqlitgcmP+F6pddM CHy9oLiRLYboo52teQI+EESdHj2UGjFJ3MH29JPpeQsEiUB/IsNbAjRM+mM9c6s8cKMq PbK6OP/HVXRJ394GSFRtv2Byr2a8FdqaIQqxTXoMcafFFM75zGdYwMmpWbfDeHpPcfg/ cCb1VjFcexJRmZ3XdGaVwKXcU8sWsEBveoIlsRZ6LNgVHqejAsGEPkxvosSKYQDe11OV PMiUU4CDmY9J6Pg0OjQ1jjO7Vr2LcMbiVf3JBDB/Iht0QsmVmAnKrcMtATXuxhBSc+hH +cDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706815251; x=1707420051; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hyJu/UUVOGO6WHBbFcUHcwW7sN0BImG4+VVTXTyQNHI=; b=dQG3Rrx/2BAkBlXsf+k6dE4DMtmVnjU3PbQx6YbwbuMRcw9W+6Fbo2vrIjB4obhL8Z iQ7MDpDBj1b1dKRG+8HAsL/ZJGtejkRSp2qDs1l+GOfXUz2f6OpZtOz45cVI20aMuQPX g4paHv8/7uCgK+FiHqEvCgQMgLI2+O5hDVNUakcWiBBYkcMLpQkUu7a0eQHx3oQIzh6J WLK3OmQHXyhfwsNbljxXw7Vs44esvs8WOhtqYqxPWOVOD2z26aIm0f7ShKDlVfoCJq1f Q7jnxaD5K8VUBsr7M24VwSxFVCyK5m5czUkg+77HepCFWTWgYaOSDmIq1mDOfa9DuAc1 Qq3g== X-Gm-Message-State: AOJu0YxqAohSb9kROILjNwsNjqCjg9gGghzPK71tzipFV+R2Rb0ayHIY sxqvkXfCak/hjj5yKw+k5akEtSEXD6NLA5ZZLAD+pwPCZEBGKjB9 X-Received: by 2002:a05:620a:24c6:b0:785:45a7:d484 with SMTP id m6-20020a05620a24c600b0078545a7d484mr111677qkn.27.1706815251035; Thu, 01 Feb 2024 11:20:51 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUpa0p8plrVAVnDE6wbLgKOmCGS+l0GnY0I7Y64VOiY/HhEEF6VbxwS1/0Uab9n1Gh69uonUthtavq2+BXoHqADXMsXcFNxSecwMmCcN0hUGj/j2p7RAg8+O3VlWq2/3po1DjdpGPpj7IMAdS2ti8/st/HV8RG8ePGCUcAw6ALCpwAH8tqSnOpcXeGiJ8UQMSWRRSdoZMH/aGLWTEOSrFDNcwOh58e82LdutVsvh5L7xSry39s4Q9m0I18dsq+VE8J5cp/jgs593VyvDkRXB/rzyVieB1JYZqxZIPgrFlHJBIRSXrbudw4nJvyeAtPdCXtqP/Tf95tOITyqsYAwrPZAv2SgCtqDUsbLE2cZQbetehOpQk5RYPR8NR8s36tSt8/Pg9nTdR4n+VwyDFV0tK4XUJe5jA== Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id ay14-20020a05620a178e00b00783df78821dsm73336qkb.25.2024.02.01.11.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 11:20:50 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id F20F827C0060; Thu, 1 Feb 2024 14:20:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 01 Feb 2024 14:20:49 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduuddguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeeuohhq uhhnucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrf grthhtvghrnhephfetvdfgtdeukedvkeeiteeiteejieehvdetheduudejvdektdekfeeg vddvhedtnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsohhquhhnodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdeiledvgeehtdeigedqudejjeekheehhedvqdgsohhquh hnrdhfvghngheppehgmhgrihhlrdgtohhmsehfihigmhgvrdhnrghmvg X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Feb 2024 14:20:49 -0500 (EST) Date: Thu, 1 Feb 2024 11:19:43 -0800 From: Boqun Feng To: Miguel Ojeda Cc: Tejun Heo , Wedson Almeida Filho , Alex Gaynor , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH] workqueue: rust: sync with `WORK_CPU_UNBOUND` change Message-ID: References: <20240201190620.18064-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201190620.18064-1-ojeda@kernel.org> On Thu, Feb 01, 2024 at 08:06:20PM +0100, Miguel Ojeda wrote: > Commit e563d0a7cdc1 ("workqueue: Break up enum definitions and give > names to the types") gives a name to the `enum` where `WORK_CPU_UNBOUND` > was defined, so `bindgen` changes its output from e.g.: > > pub type _bindgen_ty_10 = core::ffi::c_uint; > pub const WORK_CPU_UNBOUND: _bindgen_ty_10 = 64; > > to e.g.: > > pub type wq_misc_consts = core::ffi::c_uint; > pub const wq_misc_consts_WORK_CPU_UNBOUND: wq_misc_consts = 64; > > Thus update Rust's side to match the change (which requires a slight > reformat of the code), fixing the build error. > > Closes: https://lore.kernel.org/rust-for-linux/CANiq72=9PZ89bCAVX0ZV4cqrYSLoZWyn-d_K4KpBMHjwUMdC3A@mail.gmail.com/ > Fixes: e563d0a7cdc1 ("workqueue: Break up enum definitions and give names to the types") > Signed-off-by: Miguel Ojeda Reviewed-by: Boqun Feng Regards, Boqun > --- > Tejun: here is the formal patch as you requested. Please feel free to > either take it or to rebase to fix the old commit. Thanks! > > rust/kernel/workqueue.rs | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/rust/kernel/workqueue.rs b/rust/kernel/workqueue.rs > index 498397877376..d00231e18007 100644 > --- a/rust/kernel/workqueue.rs > +++ b/rust/kernel/workqueue.rs > @@ -199,7 +199,11 @@ pub fn enqueue(&self, w: W) -> W::EnqueueOutput > // stay valid until we call the function pointer in the `work_struct`, so the access is ok. > unsafe { > w.__enqueue(move |work_ptr| { > - bindings::queue_work_on(bindings::WORK_CPU_UNBOUND as _, queue_ptr, work_ptr) > + bindings::queue_work_on( > + bindings::wq_misc_consts_WORK_CPU_UNBOUND as _, > + queue_ptr, > + work_ptr, > + ) > }) > } > } > > base-commit: 15930da42f8981dc42c19038042947b475b19f47 > -- > 2.43.0 >