From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83506C04A68 for ; Thu, 28 Jul 2022 20:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbiG1UpO (ORCPT ); Thu, 28 Jul 2022 16:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiG1UpM (ORCPT ); Thu, 28 Jul 2022 16:45:12 -0400 Received: from 7of9.schinagl.nl (7of9.connected.by.freedominter.net [185.238.129.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED5D2736; Thu, 28 Jul 2022 13:45:10 -0700 (PDT) Received: from [10.2.12.24] (unknown [10.2.12.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by 7of9.schinagl.nl (Postfix) with ESMTPSA id D199A185B6D3; Thu, 28 Jul 2022 22:45:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schinagl.nl; s=7of9; t=1659041108; bh=sRx6mGd0303ZII+oO6mGwJJLQl14UFRwzsiN7PVXODI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=FOt8x21Z6bw3LuZdK6m0JupoRUGI/KDf+41PDQHiRX4C2mZXnipYCEeg/ctcd0Az9 8y4dS87aj1ThxyPSgxiZQoSjYpLZU1UeRCaixGocCeaJqvBxp2pGKF1HPKL08vZMse 9cLLEGyp72ZWDMjxhekSJh2C19xokcit8dgU4SW8= Message-ID: <5bd688b0-7694-0a96-67e6-7137c018c9a5@schinagl.nl> Date: Thu, 28 Jul 2022 22:45:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 00/13] [RFC] Rust support Content-Language: en-US To: Greg Kroah-Hartman , Gary Guo Cc: Miguel Ojeda , Miguel Ojeda , Linus Torvalds , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel References: <20210414184604.23473-1-ojeda@kernel.org> <5c0bb1db-5589-32ca-ac22-4aafb3c15751@schinagl.nl> <20220728112114.0000003a@garyguo.net> From: Olliver Schinagl In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Greg, On 28-07-2022 14:09, Greg Kroah-Hartman wrote: > On Thu, Jul 28, 2022 at 11:21:14AM +0100, Gary Guo wrote: >> Rust requires braces around branches of if expression, and C doesn't. >> So in kernel coding style you often have: >> >> if (condition) do_something(); > > That is not a valid kernel coding style, and our tools should catch this > and prevent it from being added to the kernel tree. Are you sure? I'm not sure if this isn't true today, but I've certainly seen old code where this definitely was done. Was all of this cleaned up in the last 2+ years? Olliver > > thanks, > > greg k-h