Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1458778rdg; Sat, 14 Oct 2023 03:15:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTH4hyYLYJZMpWzhXUxsIEJGBklEr0zRdu6NbBaOdUrceJ/FOv0MzpC/KJ+p5BFJXYkUSI X-Received: by 2002:a17:90a:cf8a:b0:27d:1a75:5b98 with SMTP id i10-20020a17090acf8a00b0027d1a755b98mr3878877pju.12.1697278528834; Sat, 14 Oct 2023 03:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697278528; cv=none; d=google.com; s=arc-20160816; b=nfgegsnfJ7/uzo9KutW7h5MaBR3IY3Xv/6GRh1pco69YlwEaHow09mB/2O5v5bhaFn 9KOPndzjpnyEfJXxa9DrCUcNbSgfId0iWIuVHFYT0e4s59DUCT6qUXNpp5XH9TwdM0Rc lag7DedGONjTSH2T8EacXip/62Esap/0c83I5emsyHXbwBrudZkAJ/Q61IdhtIx0ODS/ Yyl71bnrjoW9zAM/43Qp3EkgF2jqW5Nv3YFJ+0/xyRngcc7CVNR/2UXyQNke+4ivjq1r 8gBpxF6vm/w0xgCGjTDbv/cUQ/FKjOkCZ8wWQSEwACvZoVItV62zLNFHmdQ49MOJ2Myi b8dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AAnTTZd/oNJv2+sQ0/p4aYX3rI9i+194grUqUEuTdNY=; fh=tWmhP4JWakiMmYdP+5gOfsTmMLgjW7QQK2G7aB1OHFU=; b=ERyy16yEn86YLi9A4YOei5klM6/wB3Noq1Glo3mV+lO5hlHjwuXO2SywWAxU1Lyq5N OtN3iVXX03B2A9ZNA7kOwM+SPzJXjSbxT3lPbNirQT65geJXCOLW3D+WO+5dqTmG+8ks 5nzQOzSHV5ih41pdVon4xhk5ckEtYp8cg4rcjlvtFD9zlnxRS/PdDCSvcIFlDv+xNvXp lXMqfm3ed2LlFDqlK5QinTe/Q4ozaB3a3rUiIGAycB5yoWkY+wxflB6WNv9vPsyiLdiA A2S8KCD6JhVoYElxdBSeWXO7sN8u2s5BcYStGtYV7nnvihQpNqRgoReZ6JTGzD98pRUB rFWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Rw0W/28T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g1-20020a631101000000b00565eb0b4f33si6297148pgl.224.2023.10.14.03.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 03:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Rw0W/28T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9D9B28082DEF; Sat, 14 Oct 2023 03:15:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233060AbjJNKPT (ORCPT + 99 others); Sat, 14 Oct 2023 06:15:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233014AbjJNKPS (ORCPT ); Sat, 14 Oct 2023 06:15:18 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6650BB3 for ; Sat, 14 Oct 2023 03:15:17 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-59f6492b415so24845107b3.0 for ; Sat, 14 Oct 2023 03:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697278516; x=1697883316; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AAnTTZd/oNJv2+sQ0/p4aYX3rI9i+194grUqUEuTdNY=; b=Rw0W/28Tn8uk6oG1QozP6ZL9zcHVfnOP338lusjsMHdOTm3REEzPPy7piqVDx2QZjW KdlXl6QxEiVFPG92+W6rVv9bSZsCYaqW4qLv6qbWLWHtfEPz57qzH9khb4gamUc4CH2z mA7f1TyoRSzdgg54GGUfhUw4c96ESQxx56cG45LSpJeMudxrc99aB0+MZurY2kwkBcgN uFZhJeYLfv27lOL2P+AcZsUVFKoltU3Jna5zOEh/1NKi5pw5mmNlKWVbr6yMqW621c8o geUtX0DqrIpgFtMoSrdR5JPrxrHqRuBm0Un8dJnHjK5wOQeEgyR/6aOvE1t8qMqzpkB4 MyyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697278516; x=1697883316; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AAnTTZd/oNJv2+sQ0/p4aYX3rI9i+194grUqUEuTdNY=; b=qPamiM9T72Y8BFiQQu8v9pgfo2fLvPx0x6S7XLE6nO4BrX68xOjZxAMs92dbK4SosM 3Wo25UkQaxqZKUmEANIsttGY/vIy/f1EejL/a6QQoGQjIFrzQ0xi8uGdZ0BN17W4Uq/D kiC4ur7Y+9wlQ4dE71/Xh7/oABdBh5Z78bD78SjPMFTic0TRWit+OsLETdmCscCXbRHi wIDa+E7Tft2/0KyNh952fw/Ub5wKCBgpng3YeHrLEqEjQ7Qujg7QljqCwXx1TOsgOhi0 aSEBwj7hKttSpm7gBliueRBcQ4Ljnaf5ThxB92H2M8DEbdKHT12nwUIyzSahBgEM+FWN +IHA== X-Gm-Message-State: AOJu0Yxn1B1PqzcKkRZicv533TVMeGNOaEp7lEVLdiL7o3lnJLMY87B8 2wCAvpd2awnXap7cqolW4TDwwWk+7mHPBRufJzEFnaCI3oiyRw== X-Received: by 2002:a0d:e841:0:b0:5a7:b545:dcaa with SMTP id r62-20020a0de841000000b005a7b545dcaamr1372679ywe.23.1697278516577; Sat, 14 Oct 2023 03:15:16 -0700 (PDT) MIME-Version: 1.0 References: <20231013132832.165768-1-2023002089@link.tyut.edu.cn> In-Reply-To: <20231013132832.165768-1-2023002089@link.tyut.edu.cn> From: Miguel Ojeda Date: Sat, 14 Oct 2023 12:15:05 +0200 Message-ID: Subject: Re: [PATCH] scripts/show_delta: add __main__ judgement before main code To: Hu Haowen <2023002089@link.tyut.edu.cn> Cc: gregkh@linuxfoundation.org, masahiroy@kernel.org, akpm@linux-foundation.org, ndesaulniers@google.com, n.schier@avm.de, ojeda@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 14 Oct 2023 03:15:26 -0700 (PDT) On Fri, Oct 13, 2023 at 3:29=E2=80=AFPM Hu Haowen <2023002089@link.tyut.edu= .cn> wrote: > > When doing Python programming it is a nice convention to insert the if > statement `if __name__ =3D=3D "__main__":` before any main code that does > actual functionalities to ensure the code will be executed only as a > script rather than as an imported module. Hence attach the missing > judgement to show_delta. > > Signed-off-by: Hu Haowen <2023002089@link.tyut.edu.cn> I am not sure why I was Cc'd, but the patch looks fine :) Reviewed-by: Miguel Ojeda Cheers, Miguel