Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2034843pxm; Fri, 4 Mar 2022 08:13:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAvlFZhuTuwncUHbE0VL3AttPFoHh1WweviOo7XSOUdJYAAnaZwhcTgrPNz3owjtjIcmU3 X-Received: by 2002:a17:90a:69e6:b0:1be:f28f:3bb6 with SMTP id s93-20020a17090a69e600b001bef28f3bb6mr11476432pjj.44.1646410387789; Fri, 04 Mar 2022 08:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646410387; cv=none; d=google.com; s=arc-20160816; b=yVXAHVIxqm5r41Xmf1VpngsDblcVrtRJ4ilqdZmN7QE7CePiePpqDwkuCF7+bEf+IN H7r0lqZRnOHibiHu0kgbWsvEor3/6amoIp5Lm900haCMhdQX4fGwvNr3SLzaCcuEtI+h yVlMEc4+GcDfmO6NtrDDHaT/R+zlTcpNvrR0EvxSlsxgqMUBSuh6laiWEVaBJnNNaWa2 IaOjS6xYHD8R2Ns3DP0V/qigQi2KhLT/uImA2Np9jzXTZfZiTqft9hCAwxmohS8ZJo0q I1r6iqwbOzaHUT2c6qYa3/L1C0eOiHmO567QwmI8+DI4N+K8YP8Vf8Bzubhk1l54+Cdw e4rg== 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; bh=F4BEuWjdvB4IxC7cOosJvlKNe0JC2a1oUGDV4WHlCFQ=; b=jEMp9H3RUkSdv3z0O4jeRVGNBgwUEbZM8zgmsDTayNzywRvuph58l/YweKBRrDWpYq kHvn2pQSga+W5x/qva0L+ahb2QtATq1/gxPoE4YoQv1iiH18YUkFgbiSjWu9I7687oEK GNzliXjpt1mg+NY0EsyBHbjC0tcjltqLL5un8S270xBqTVUByroNg+movO8KHtbrpn7V MI43zbQhyZnJ2ZhxNw8fz2d+sRaH2z/ZluDJGvL3D3yy0IxjIbakh/b8GEHWIDAYb9/i CuO0SBsk5pTtlSIWzNBz5gBPn06JG1veoStfL/GpDtBPNay3apTSwj+llNfhdL4zZ31p MtAg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a170902ec8c00b00151cac165fcsi161073plg.71.2022.03.04.08.12.48; Fri, 04 Mar 2022 08:13:07 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239248AbiCDN4w (ORCPT + 99 others); Fri, 4 Mar 2022 08:56:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239074AbiCDN4t (ORCPT ); Fri, 4 Mar 2022 08:56:49 -0500 Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98A41A94BE; Fri, 4 Mar 2022 05:56:01 -0800 (PST) Received: by mail-ot1-f51.google.com with SMTP id l25-20020a9d7a99000000b005af173a2875so7495484otn.2; Fri, 04 Mar 2022 05:56:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=F4BEuWjdvB4IxC7cOosJvlKNe0JC2a1oUGDV4WHlCFQ=; b=pyatyDZec39hSFP3Szv3rQ/He3DbhQ6BGmrFvkgY6tl4uTyHceDVNdjqcfYtEHKhF/ /VdZ6C5MFmjUKWLe/I7wOSi098kiIfyMmrPTqM4yqZzpxpDkWGmXGHwLh4FXEI/H+xFr J8XeB9+/2IkqMxBSry1OM/9VBS33XlpCMAaYRn6QKaHxV2Xwozq5oAkq2Boiued/26qO rhwv6wUXq0HvPok56Gqt01lZOFQ1/+G0IBk+vDKHlb4zWY8FwNEnyAExut8fpTEj0y0Y UBVWpPJeqmB3fhJnK22R72i+aHbwNtgUiZlnfLgFkiE9xjKw+8aXeGh0qK1xctU8h0Em FjeQ== X-Gm-Message-State: AOAM5326gzvFVqMo25zUnSR8iCGQa7Wdxepp/ZpKJ5bfip+4IBUQH2/V bet0AFIWs3gOzRb0Fkhni+TVzsI7ZQ== X-Received: by 2002:a9d:6008:0:b0:5b0:2de8:31b1 with SMTP id h8-20020a9d6008000000b005b02de831b1mr12290119otj.381.1646402161185; Fri, 04 Mar 2022 05:56:01 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id i11-20020a056830402b00b005af1411565bsm2288310ots.78.2022.03.04.05.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 05:56:00 -0800 (PST) Received: (nullmailer pid 3825460 invoked by uid 1000); Fri, 04 Mar 2022 13:55:59 -0000 Date: Fri, 4 Mar 2022 07:55:59 -0600 From: Rob Herring To: Geert Uytterhoeven Cc: Krzysztof Kozlowski , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Subject: Re: [PATCH] dt-bindings: kbuild: Print a warning if yamllint is not found Message-ID: References: <20220303221417.2486268-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 On Fri, Mar 04, 2022 at 09:59:12AM +0100, Geert Uytterhoeven wrote: > 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? Okay, that's what I originally had. I'm sure someone will want to document 'how to install yamllint' somewhere. Maybe I'll say: warning: python package 'yamllint' not installed, skipping To give some hint how to install. I'm not sure exactly, but there is a minimum version of yamllint so it is possible the distro versions are too old. IIRC, unknown config settings throw an error. I think at the time I did the config everything had been around for at least a year or 2 and I don't think anyone has reported issues. Rob