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 04C66C19F29 for ; Thu, 28 Jul 2022 12:10:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236846AbiG1MKE (ORCPT ); Thu, 28 Jul 2022 08:10:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234550AbiG1MKD (ORCPT ); Thu, 28 Jul 2022 08:10:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6218691D4; Thu, 28 Jul 2022 05:10:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 82BE461C1E; Thu, 28 Jul 2022 12:10:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CF29C433D6; Thu, 28 Jul 2022 12:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659010200; bh=QuAukCkxiWR/SUA+vxyoVL+LmxWsioU7cNOrz2AK0co=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WjTTZak1v6sCeOffSGHiVS8RZ9mOzk4vS4sJm+ZXDR+G2DE+ksjP6ZyOhr/yJuu39 JqJXlCwjIZT7AfCJJJAFZLyjYHWOnvnF2m0Gmu1BmGCRpOOyWumP0D7OQal6cju5cw nZOCMXxkYQrYPd/LwAsXSzx7FOXHRkDH5TEh+/bA= Date: Thu, 28 Jul 2022 14:09:57 +0200 From: Greg Kroah-Hartman To: Gary Guo Cc: Olliver Schinagl , Miguel Ojeda , Miguel Ojeda , Linus Torvalds , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel Subject: Re: [PATCH 00/13] [RFC] Rust support Message-ID: References: <20210414184604.23473-1-ojeda@kernel.org> <5c0bb1db-5589-32ca-ac22-4aafb3c15751@schinagl.nl> <20220728112114.0000003a@garyguo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220728112114.0000003a@garyguo.net> Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org 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. thanks, greg k-h