Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1969811pxm; Fri, 4 Mar 2022 07:05:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJybDH9WIt05x8Avzaa/a+biW6RkVu3qj2j6s/WBMgEmoW70eqK16ltDEQAE2lX7QfeZqJl6 X-Received: by 2002:a17:902:f605:b0:14f:5d75:4fb0 with SMTP id n5-20020a170902f60500b0014f5d754fb0mr40640294plg.101.1646406300717; Fri, 04 Mar 2022 07:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646406300; cv=none; d=google.com; s=arc-20160816; b=J4/QAifn4GNMg3+P1lmZA1oSbtUWXuN/lFdYMq7PyI+Ptm+Vf86pyzy1vswhScqRjf /IPw4okN3WTbgFniEGvk+hlU2oRG2xr+x95kpH9p6/0WVvundDMMLG4EdR5Tlh3erpLn E8lB0UeAzdQxSioriy8fJ1dPo2PEcZsHgWaqydwSoULA02sIcJOYb/zDpCOKGbS9YqUa XJOdZQRmposJdrsamb/VzB7Yc+y9v+ZxgFujT01kcZlJQG9QuvvgUWByAiRfWz3POH5G W1GflIqHR41ZQrDhjL+BTpogi1hFrGZ4gblh5TElDSvCsWGU2KGvVVIhq6lvqPfvan5b ZCoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=erWZ8h2fOg/ZHNDy2FIiSGcRo02ET8qlTB1A0XqFghM=; b=AfamccJ2dBN2lvn+9vRCcQ/r6dPAQu2WmIMtgM9vbs1KAlaVUPzlrNCaIXfU8pu24s zTxKzGgePew1n79yN5T/2rmdtGBbYLDRq9bZm+cZBoj8jh7VixXbkF3ebmsVUoV4Hsol K2sE2fdiuw5NDsPqntkpQEXx3C9MEaazlxq5v+L+L2A6KozJA6iPsIhzAqoNwdgqr9u2 6PPp1D17ujXeRSewI9liXC+iLOJ4QROnkndtQlgqMSSUYMdtzD2EAkUAZqJs2PchYRjD hvZsGOnQ2HGTuzu/G/Ce+grW3jLxWeNG9CNZtvMSAOgDnzuxhaS7B6DpnNeYqEiwGn4Y esyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a623206000000b004c30d5f9e47si4650536pfy.103.2022.03.04.07.04.42; Fri, 04 Mar 2022 07:05:00 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235352AbiCDJAN (ORCPT + 99 others); Fri, 4 Mar 2022 04:00:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbiCDJAM (ORCPT ); Fri, 4 Mar 2022 04:00:12 -0500 Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23971B0D00; Fri, 4 Mar 2022 00:59:25 -0800 (PST) Received: by mail-vk1-f171.google.com with SMTP id k9so4045228vki.4; Fri, 04 Mar 2022 00:59:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=erWZ8h2fOg/ZHNDy2FIiSGcRo02ET8qlTB1A0XqFghM=; b=2LWOm6apWM0VyIfHLmrPSjtTA1PqOWPdDtrU4FmdhkmvZzzr03oRinjbp4YgLejbOg qZ9dQH4c3gwm8z+XSQqx2vVq4JFnIgOYTZNFpbi3OCDZsX+AosVHW4Q/phCqV9yeq4gI /VRjAOfy6FH6QOhdvPykyzq160D82jt3C/cyT3LEjxUlki7/R0mxu0tr8i6AK6H/uMoH bOMV0WkWNbRp5pDJB4B2ovIeZfAdJjBzcWga12SMeV/DDaF005ifPfwUSbC/fZLnonza ED1cRA7yqEp6crKVcqIwpZZSRIFVMN4FocxcWwE3NOk3Vp0XK7shI8/IBcnKuGwguJtg 8TBg== X-Gm-Message-State: AOAM531CM6Vrv+eQ0xGyf+A1zJT9+TuQRDIAUR7rmKz5A+P4FdkTQPpi TbGyndVYvJt4OEn/+/RDPvRT+tP9N8Fnyw== X-Received: by 2002:a1f:1e4b:0:b0:333:6c3d:bd45 with SMTP id e72-20020a1f1e4b000000b003336c3dbd45mr9137021vke.29.1646384364165; Fri, 04 Mar 2022 00:59:24 -0800 (PST) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com. [209.85.222.53]) by smtp.gmail.com with ESMTPSA id n22-20020a1fa416000000b0031e658fd080sm650486vke.43.2022.03.04.00.59.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Mar 2022 00:59:23 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id 10so3283969uar.9; Fri, 04 Mar 2022 00:59:23 -0800 (PST) X-Received: by 2002:ab0:77c3:0:b0:347:6f7e:6189 with SMTP id y3-20020ab077c3000000b003476f7e6189mr8471007uar.28.1646384363621; Fri, 04 Mar 2022 00:59:23 -0800 (PST) MIME-Version: 1.0 References: <20220303221417.2486268-1-robh@kernel.org> In-Reply-To: <20220303221417.2486268-1-robh@kernel.org> From: Geert Uytterhoeven Date: Fri, 4 Mar 2022 09:59:12 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: kbuild: Print a warning if yamllint is not found To: Rob Herring Cc: Krzysztof Kozlowski , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Rob, On Thu, Mar 3, 2022 at 11:15 PM Rob Herring wrote: > Running yamllint is effectively required for binding schemas, so print a > warning if not found rather than silently skipping running it. > > Signed-off-by: Rob Herring Thanks for your patch! > --- a/Documentation/devicetree/bindings/Makefile > +++ b/Documentation/devicetree/bindings/Makefile > @@ -3,7 +3,8 @@ DT_DOC_CHECKER ?= dt-doc-validate > DT_EXTRACT_EX ?= dt-extract-example > DT_MK_SCHEMA ?= dt-mk-schema > > -DT_SCHEMA_LINT = $(shell which yamllint) > +DT_SCHEMA_LINT := $(shell which yamllint || \ > + echo "warning: yamllint not installed, skipping. To install, run 'pip install yamllint'" >&2) Do we want to encourage people to use pip, instead of their distro's package manager? At least Debian/Ubuntu provide yamllint packages. So perhaps drop the install rule? > > DT_SCHEMA_MIN_VERSION = 2021.2.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds