Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5235589rwb; Wed, 17 Aug 2022 13:44:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Wtqn1W6Ey5JD0w8kJY3Ez3XUtek1aIP682r9olvfxIwooIDOehvVbRmHNkjD6mjZbz0j1 X-Received: by 2002:a05:6a00:2991:b0:52e:b387:b3c6 with SMTP id cj17-20020a056a00299100b0052eb387b3c6mr27320737pfb.11.1660769049165; Wed, 17 Aug 2022 13:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660769049; cv=none; d=google.com; s=arc-20160816; b=DJEkgPfFhqmHSUXX20TQGy39suyJqstWbbYV0UhmqgA1og3B5OZoT26as0cYY/HMDV 0Xy8v2339cHJrITC0IUxJ1La5CWXmZ0NRB87qAWUEkUWRkJeLTkfFG3YBR/nDEALS+O9 5B3Mg9Gc4po3M/2aN9VUg/6HpFQoXaExaAK4QjMy1vEbFBOacJrFak2hZ2yQQkHukRcp DTZ5KialcTgNm+Mgt7ABVyyRaVzvnqzHcdyUnnyXRp35cLHUOPynSD+LXWVQPc8EMbxL RhwjBAzAS8juuSgR3GQXGMW5kR8XwSZnTA8eemFPEzSzue6SUwl5z7VPsKaoQLFKuc01 OZ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+WRGNlWofKlOiDjgaSTNb/H9kbNSywL6IxTX7zzIueA=; b=PcBv5nwzXiqwNLo/d8BWa7/QXqHxI9v9IXs7ILIuNjwy+HrnG1Tq+rY5Wk9Vh6U37f EUT+3bUqG4oiCmRLKKzZ1TLxcA+kp65UdmWkqKkslbYFGDJS8GNEli0XHz9w+q5aLxiz 4V5qcFL+HOPP01EPwl5HAss/iTuOes4FlH7vUrx9tbBJExsYozRY6sWZY7VV9RxfEEbd BQdL3R2CKOn+ZLJja8NqUwV4UuyVrh/2jAeHsjzrAYlR4Oa6Vb4+2b0A6zJ4ho1PtE2C hDyTrSSn5ruxvuImK6cMuCBAFyyAP9LRFeEZxXzesWSlVgRaLlmjT+WiWEXL93y8GxFZ I68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fMRhV1gD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a170902d49200b001712cbdfa11si685054plg.581.2022.08.17.13.43.52; Wed, 17 Aug 2022 13:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fMRhV1gD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241762AbiHQUMv (ORCPT + 99 others); Wed, 17 Aug 2022 16:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241476AbiHQUMl (ORCPT ); Wed, 17 Aug 2022 16:12:41 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E795FA61DC for ; Wed, 17 Aug 2022 13:12:40 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id z187so12940366pfb.12 for ; Wed, 17 Aug 2022 13:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=+WRGNlWofKlOiDjgaSTNb/H9kbNSywL6IxTX7zzIueA=; b=fMRhV1gD0LiWPslIdJd3Oay33CI1Qjzc9fxrxo1rMAcTxyGfF+9i+S4mdI5O7WkvEZ pi/Ze5jSG8mJRZ5c9znxeN8yUWNpDYVrR9pyvY6pVf4TLt8fffmT0CMXEqCcyLCBGZzT feSoTwBjHSuD+PY2QeZCOih3yziojt2d2o8bE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=+WRGNlWofKlOiDjgaSTNb/H9kbNSywL6IxTX7zzIueA=; b=ZLJJ1lwVKsBbgMP6Gr702HJPj7q/E4x0CK1pTc3K4YPJW34YmF7xykah6ksOHcea65 HpBo4ckcIcWRBVdD/Dai9Fs+88ppwypd47BJX2950Eglhto25Xzf157BqjwGovdd3GzB dGMaK2uc52eyp+vpR6qXB6it635O1ZRISQwMsxR7NgMJ0SlIabwz4qCUGwkgc96dpEmZ KFEvqr/O0QU1BbYHBAJUTUZfRDYyyYWk52vD0k1mpVrY8DO+JBRxYXEoIt2JrA/W0sK2 8D2YFVWCMu1QAgZXf1u3MbwL/l0HJejrCNaWNcj/N9aadxH5RK4rSmbAsFVFk+sn+Qa5 6vKg== X-Gm-Message-State: ACgBeo0FxDWQkcNIf63++SGKbm8eJayHypufA1qDjGpzz0i/8pOEtZwM LDfsFS8U/FptWyVNRw9dZPIfDA== X-Received: by 2002:a63:1841:0:b0:429:8268:1fc with SMTP id 1-20020a631841000000b00429826801fcmr10651647pgy.78.1660767160381; Wed, 17 Aug 2022 13:12:40 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h18-20020aa796d2000000b0052d4afc4302sm11215205pfq.175.2022.08.17.13.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 13:12:39 -0700 (PDT) Date: Wed, 17 Aug 2022 13:12:38 -0700 From: Kees Cook To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Wedson Almeida Filho , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Subject: Re: [PATCH v9 16/27] scripts: checkpatch: enable language-independent checks for Rust Message-ID: <202208171312.1CB3606F0C@keescook> References: <20220805154231.31257-1-ojeda@kernel.org> <20220805154231.31257-17-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220805154231.31257-17-ojeda@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 05, 2022 at 05:42:01PM +0200, Miguel Ojeda wrote: > Include Rust in the "source code files" category, so that > the language-independent tests are checked for Rust too, > and teach `checkpatch` about the comment style for Rust files. > > This enables the malformed SPDX check, the misplaced SPDX license > tag check, the long line checks, the lines without a newline check > and the embedded filename check. > > Co-developed-by: Alex Gaynor > Signed-off-by: Alex Gaynor Reviewed-by: Kees Cook -- Kees Cook