From patchwork Fri May 22 22:32:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1296493 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=gKiwhBk2; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49TLrG3Br9z9sPK for ; Sat, 23 May 2020 08:34:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 774A581999; Sat, 23 May 2020 00:33:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="gKiwhBk2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F7118180B; Sat, 23 May 2020 00:33:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1D03F81865 for ; Sat, 23 May 2020 00:32:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd42.google.com with SMTP id u23so40901iot.12 for ; Fri, 22 May 2020 15:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eGykBhzW8fV3TNshDMUlazYbvS7Bs3UqJqgcg8aL+FE=; b=gKiwhBk2gbdJAXqZJ+2NxQcTXSjW08FJj7tKW4em4dwkobWn/P8B/kRSS3ZjeHMOEQ n+S9cNn44bT+ydnH/G1jn6FjFFDE1wj+VqZ6Q3zUiiA9ytm5jSqsrmqDqda4GumVhklv yUhK5Ze14gR2um4hZSx17z03yfYMXrCuL0fnU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eGykBhzW8fV3TNshDMUlazYbvS7Bs3UqJqgcg8aL+FE=; b=EGLyi7G9fagp4Vr5cueaAlkXwCFG9G21oMuDztXSQ5Kd91VY3MIfa+lzqzi/R+KExl dRDLds0GlLverZNuWPPpTxheW9GsE9b9+DwciOF2SpUzGt92ZIHRubL3YTOk9JswKTLD DGFy4nvIKlQbWTPBLPSIALDisJAF5EQiUR++D0Jv/FR+hg0XVWBexHvvKA5igyfNvz7v FVbYMyXv7W7IyO5XvJNCsZ3f/wB15O7x8bVOIjFhcsU4I5ceOL37+pE8eVEjsRRYlcMX FhhfXl5sAqOFqZX4XS88LrdeFYsVx4XVPh7JF2jrBCFzpgUDg9VWI7swrM/IV/LO6gvZ NkEQ== X-Gm-Message-State: AOAM531E9+IDvIPbsVLNSAKzOODLR9kmQK0pJ2QLAFI+OunJCOPdIYeO hFn1syWxHcIjdV3wM/BllmrKUlN4HzLzNg== X-Google-Smtp-Source: ABdhPJxSRJkXR/oI5DO6lEtblEaQeaQG2M4WMiCCh8KLZ0LX1MwmFrd6qc9+EwpqTnM/QjXj0AM2SA== X-Received: by 2002:a5d:8ad8:: with SMTP id e24mr4906101iot.41.1590186770873; Fri, 22 May 2020 15:32:50 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id v2sm1449730iop.1.2020.05.22.15.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 15:32:50 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Masahiro Yamada , Tom Rini , Heinrich Schuchardt , Simon Glass Subject: [PATCH 4/6] checkpatch.pl: Warn if the flattree API is used Date: Fri, 22 May 2020 16:32:38 -0600 Message-Id: <20200522163226.4.I9b1fe1832d69d57d69c33ccbecfe2aa4e1966fa3@changeid> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200522223240.187032-1-sjg@chromium.org> References: <20200522223240.187032-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean We want people to use the livetree API, so request it. Signed-off-by: Simon Glass --- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9dc42520e2d..e3a2a289aea 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2247,6 +2247,12 @@ sub u_boot_line { WARN("NEW_UCLASS", "Possible new uclass - make sure to add a sandbox driver, plus a test in test/dm/.c\n" . $herecurr); } + + # try to get people to use the livetree API + if ($line =~ /^\+.*fdtdec_/) { + WARN("LIVETREE", + "Use the livetree API (dev_read_...)\n" . $herecurr); + } } sub process {