Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1358100rdb; Mon, 2 Oct 2023 07:17:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzZSRYwCLiqA+uiVzB+2yNoSNL/wDHNrfQDS9p+ajrz80r7h7z0coE5xuGZn+lizMhNbEx X-Received: by 2002:a05:6870:e416:b0:1d6:5892:d279 with SMTP id n22-20020a056870e41600b001d65892d279mr13860604oag.3.1696256228445; Mon, 02 Oct 2023 07:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696256228; cv=none; d=google.com; s=arc-20160816; b=KRtn5BYtnEruorG3xlu2k2zAkNv/39Y9VlpKf/ijSdzdxYWJWETASnblkHg7pgsmnx FpaFUExOV5iEIRJ77ljD3RD/9b//BP4GhFv/OkqeHC3/yS6cAamIosuzh8nPIeiv4Sol KYoeA/YfMGmT75SpXg6GPvsKJSDCCsG3LdLqUGsVT6GyqXXNd/5q/gyh6S06zZBNyh/j XxJrWDovJQkg4YexY6oXeBFRwFyo77Y/xfajv29ENVboOgS9YhJ6Ew8OuCVVAnarZLft 51SL/DKI8ZY1Mc+baSGY76x9yQAfxEnV873qSZSaL+Yrm59rtVjPPPTJK4A8ZI0vWy2e Mc+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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mq+HQcOeps1DS2Ph8QrdLxKhRNV/tXk9avRC84OI0Mo=; fh=YhiXsV2kTOsgjLEfHUzW47e/M5SjjYXtFXSdNCkO5H0=; b=hz2Nq5bXAOst+qd8zp/xBM/RiTJRHgXG9uXc3WWkP9lDjqKJ3xoX6JHZ9l897GNksd n0/pWxrFuI6Ksk0WUliq6W8ewuka5KpjkwJzmKP2IJgLHd9s2tUAGEwPUWMQsBQ7f/Pf 5D8ru1wkWQiQQmHg9wgiuYKAm3/YnlS6Atxu8QVzDMDX4qZI/30uauU+3vcSYqFq6DhP uViJaCUVrz+wmBbo4OZqC63NsrL4sg8ybexWn6wRd0m5nHilc2Hf3Ct2KvWzYZDst7F1 CBCMVskOrECY3WrNcKknv8UGY4HEVtlnqCAbdOI/etmp/kE9W9aaxrBgs0K8lpfWXWvE bjDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LNby3amf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l25-20020a635b59000000b0056c403cd155si7705340pgm.596.2023.10.02.07.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 07:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LNby3amf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C4FAF8070649; Mon, 2 Oct 2023 07:06:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237642AbjJBOGJ (ORCPT + 99 others); Mon, 2 Oct 2023 10:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237630AbjJBOGH (ORCPT ); Mon, 2 Oct 2023 10:06:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8681AD; Mon, 2 Oct 2023 07:06:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 558D4C433C7; Mon, 2 Oct 2023 14:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696255564; bh=oewcKLq9leZeLUNbvL3ga7nSrHdL0EKdi+eyXGMLtGM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LNby3amfuHQMnQB9J2b8Ap7V4xMsYjdQ+XX8Ne1yQwFKEIv84i754KEVLeJUg8gjk eZTKvwinC7merJ7qh3W+Ryukjgt+Ym0L/vorD2BQb5irTxbdLjpDtXAHCd6QjBG+ei dy3qg4A5giv1IyOZdkFSdZB0DqgYAVyfuB/rZgF9WspTUP/kgYYQiWx8pGDeDCPUsV 88TQek2wbfOllqc1CJUhTmDeKwr1V3nYM0Dx5pgKq7WA9HXKbc79/fwueApOG25YO2 XY2NIwNXL/Nh56LmRlwLJVInrde4+cGRsTvcZU56epMHub7GBj0vwBexSCyF3poPFl fuCV5QO5Z3uIQ== Date: Mon, 2 Oct 2023 15:05:59 +0100 From: Lee Jones To: Florian Eckert Cc: Eckert.Florian@googlemail.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, pavel@ucw.cz, kabel@kernel.org, u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-leds@vger.kernel.org, kernel test robot Subject: Re: [PATCH v2 3/4] trigger: ledtrig-tty: move variable definition to the top Message-ID: <20231002140559.GB8453@google.com> References: <20230928132632.200263-1-fe@dev.tdt.de> <20230928132632.200263-4-fe@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230928132632.200263-4-fe@dev.tdt.de> 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_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 07:06:14 -0700 (PDT) On Thu, 28 Sep 2023, Florian Eckert wrote: > The Intel build robot has complained about this. Hence move the commit > of the variable definition to the beginning of the function. Please copy the robot's error message into the commit message. > Reported-by: kernel test robot > Signed-off-by: Florian Eckert > --- > drivers/leds/trigger/ledtrig-tty.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/leds/trigger/ledtrig-tty.c b/drivers/leds/trigger/ledtrig-tty.c > index 8ae0d2d284af..1c6fadf0b856 100644 > --- a/drivers/leds/trigger/ledtrig-tty.c > +++ b/drivers/leds/trigger/ledtrig-tty.c > @@ -82,6 +82,7 @@ static void ledtrig_tty_work(struct work_struct *work) > { > struct ledtrig_tty_data *trigger_data = > container_of(work, struct ledtrig_tty_data, dwork.work); > + unsigned long interval = LEDTRIG_TTY_INTERVAL; > struct serial_icounter_struct icount; > int ret; > > @@ -124,8 +125,6 @@ static void ledtrig_tty_work(struct work_struct *work) > > if (icount.rx != trigger_data->rx || > icount.tx != trigger_data->tx) { > - unsigned long interval = LEDTRIG_TTY_INTERVAL; > - > led_blink_set_oneshot(trigger_data->led_cdev, &interval, > &interval, 0); > > -- > 2.30.2 > -- Lee Jones [李琼斯]