From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C84DB30748D; Fri, 4 Jul 2025 13:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751637101; cv=none; b=PhAos7cHy3/SbKJbtBWLOfm7xODiP4sZYVHFsizjxSSxhqC2h7lPkdA5zdEAhVPeDqf/EM/nAJ7WKVPeVqDeSsL6gUdNkN4wJPKPaN/tZV6lAGi4uxafQobnIE8DYuudjLW/Ya6x6vJKkGEan7is3+m+LP93sgJMQ/Tpm+vm6NI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751637101; c=relaxed/simple; bh=/OiYSjkCDD0yVzW/zMXSwGUuzicvKJf923CS++qCXzw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=S+AZ4bpfvfdExWeJiGUlTpeUoymUrCMc5ap9uea0xnFHDXO1212VicYo8lSmtaww4pI2RkVdWAGgDrviBrA0oYxMYvNIRRQS/QFxyxbgdt4h6xvl4g9WNLWeGzjpKGr7LLrcp0/zJv6ffrqc7RHZfStupSF87DQKoXjSpRoW26A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DjnrqUa3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DjnrqUa3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC9B4C4CEE3; Fri, 4 Jul 2025 13:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751637101; bh=/OiYSjkCDD0yVzW/zMXSwGUuzicvKJf923CS++qCXzw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DjnrqUa36fkh8FCFhG4sw12ZoEQfFO5inamHW+G/dfchhyYcVkgSTNUaT7VMxNcLQ n0NMJIE54SJcJTBThl4+lP+1p+nWD+FQsogOMa7LXxWImwDAVkByIIOOAHuQgRbKFd 8cW61XSP+u/00KT/B7YrqlLeuyd3zkSV2zuEtD5knRGXd4NxajCNQHNj21kOFwBoA8 ikzmrCdb3T0ZHWl/jdiG9yTzwTiGfvAsbL2GoEp3DWdP8Gh8PTMjFmAQB/o50DizLx /jRp0Wci77uzt8oWFXrXsB5VohKUetig9XsWsJROzsP+oCkCMIPrDGsy9LOwjbc3RL LvfM/eZpDJIEA== From: Andreas Hindborg To: "Benno Lossin" Cc: "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , "Alice Ryhl" , "Masahiro Yamada" , "Nathan Chancellor" , "Luis Chamberlain" , "Danilo Krummrich" , "Nicolas Schier" , "Trevor Gross" , "Adam Bratschi-Kaye" , , , , "Petr Pavlu" , "Sami Tolvanen" , "Daniel Gomez" , "Simona Vetter" , "Greg KH" , "Fiona Behrens" , "Daniel Almeida" , Subject: Re: [PATCH v14 5/7] rust: module: update the module macro with module parameter support In-Reply-To: (Benno Lossin's message of "Fri, 04 Jul 2025 14:48:10 +0200") References: <20250702-module-params-v3-v14-0-5b1cc32311af@kernel.org> <20250702-module-params-v3-v14-5-5b1cc32311af@kernel.org> <5fYjUlNFhuBwWOP46ph07KX4CMe0ORT5pZ_pD-l719E0ChkPTI2pV1tYJcN3oxKKcMI8_HGU1InaWBj52Kbbag==@protonmail.internalid> <875xg8rvei.fsf@kernel.org> <32cgJkp6-1w5-FLQMuvqhCiTvKUhR7SiIWtWdQFlkp2UoeAU3YuYmj7EElURj_NxY01OuuWlZ2aNPzX1UksjOg==@protonmail.internalid> User-Agent: mu4e 1.12.9; emacs 30.1 Date: Fri, 04 Jul 2025 15:51:27 +0200 Message-ID: <87zfdkqd28.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Benno Lossin" writes: > On Fri Jul 4, 2025 at 2:29 PM CEST, Andreas Hindborg wrote: >> "Benno Lossin" writes: >>> On Wed Jul 2, 2025 at 3:18 PM CEST, Andreas Hindborg wrote: >>>> + perm: 0, // Will not appear in sysfs >>>> + level: -1, >>>> + flags: 0, >>>> + __bindgen_anon_1: >>>> + ::kernel::bindings::kernel_param__bindgen_ty_1 {{ >>>> + arg: {param_name}.as_void_ptr() >>>> + }}, >>> >>> Formatting? >>> >>> + __bindgen_anon_1: ::kernel::bindings::kernel_param__bindgen_ty_1 {{ >>> + arg: {param_name}.as_void_ptr() >>> + }}, >> >> >> That makes the line more than 100 characters after changing other >> formatting things. Perhaps I should just left shift all this? > > Not sure what you mean by left shift? When I tried it, it was fine, but > it could have changed with the other things... Do you have a branch with > your changes? Move all the code template so the least indented start at column 0. My WIP branch is here [1]. Best regards, Andreas Hindborg [1] https://github.com/metaspace/linux/tree/module-params