Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2361749rdg; Mon, 16 Oct 2023 01:47:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSkIh1KWg1+zimw2+nHlt7AVvBv3euEKWV77bxQJRKIhhY43hoQyBrrdXHkc5Wx3kHX89i X-Received: by 2002:a05:6e02:170c:b0:350:f510:3990 with SMTP id u12-20020a056e02170c00b00350f5103990mr44612343ill.2.1697446028889; Mon, 16 Oct 2023 01:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697446028; cv=none; d=google.com; s=arc-20160816; b=iQKsib2UQ0rLglL8jYHiI6U1Tpqhj9mpcd4bhQRO5sVmiL6T9mDrzK0zLegqxN/FWn qqvXg7/qoc1hIWtiyBIE32wEZM3SrNRqbK6epLK49Q0HgGFovG4J4RyqF+7bzCJo055v fAyepT+kGzwwbNvRTAvXjGz8xc3MgVPOAL+/jUEAsyUx/APBqqE5E+B6xfAel+aW4J37 h4F4qFOTiV7tsjIOM9R0524NbUkB+7xvpdnj8WeuCnK2RMneJhR1LRCBznbX9fSgf93Q RjaX5nQL1caeLLtgCUR/9iLwlw77sDIRO4kunxs1Sihvj5mH3c+3pbB/PSFE9yRUfrez fbww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version; bh=5n/59FGvmChy+eqUnvp8oJZgtrbya/I7RvNNB5dM+RE=; fh=50o+e4ECQO9duwq7LcTgmJ8ZcN7eMISU7XWdLgMiomA=; b=pSNrp5W+vjnhdrCev4vi/4+OJxOpxlBxKLQUb0RSw3cNhdqc2ewvJNZkiOBmyea+k3 crlxdLxMp5KJbKjsudMBci/K7Jex19e4Ket6XHpXnShSuGZTNrSX2yvw7r07WynS6ECf 1p4I48tva1mPrVRxdBS5EC3MvWs88bve9wEDXIwSzG80mtsvjj1OOmNboYXMZwCTSfV/ MVxHVLvlC0h11T/xky3EwtyUgYCdtYc0U8Mrov9hVoVzd63obFLf5StTsX8WRBVLtvuF OmqM/PTlnLRfpjWxqzhOLx+Bvwk0loNFRG3AwqVboe4zhFhBDSjaslDM3PMj2tvA8unv Jz0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 205-20020a6302d6000000b00577fc59373fsi9954661pgc.296.2023.10.16.01.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 01:47:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 560FD802D16F; Mon, 16 Oct 2023 01:47:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232787AbjJPIq5 (ORCPT + 99 others); Mon, 16 Oct 2023 04:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232764AbjJPIqw (ORCPT ); Mon, 16 Oct 2023 04:46:52 -0400 Received: from connect.vanmierlo.com (fieber.vanmierlo.com [84.243.197.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2846E5; Mon, 16 Oct 2023 01:46:47 -0700 (PDT) X-Footer: dmFubWllcmxvLmNvbQ== Received: from roundcube.vanmierlo.com ([192.168.37.37]) (authenticated user m.brock@vanmierlo.com) by connect.vanmierlo.com (Kerio Connect 9.4.2) with ESMTPA; Mon, 16 Oct 2023 10:46:44 +0200 MIME-Version: 1.0 Date: Mon, 16 Oct 2023 10:46:44 +0200 From: m.brock@vanmierlo.com To: Florian Eckert Cc: Eckert.Florian@googlemail.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, pavel@ucw.cz, lee@kernel.org, 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 v3 3/4] trigger: ledtrig-tty: move variable definition to the top In-Reply-To: <20231016071332.597654-4-fe@dev.tdt.de> References: <20231016071332.597654-1-fe@dev.tdt.de> <20231016071332.597654-4-fe@dev.tdt.de> Message-ID: <93dcb9f6f218593084f834ba6b450999@vanmierlo.com> X-Sender: m.brock@vanmierlo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 01:47:06 -0700 (PDT) Florian Eckert wrote on 2023-10-16 09:13: > Has complained about the following construct: Who is "Has" or who/what has complained? > drivers/leds/trigger/ledtrig-tty.c:362:3: error: a label can only be > part of a statement and a declaration is not a statement > > Hence move the variable definition to the beginning of the function. > > Reported-by: kernel test robot > Closes: > https://lore.kernel.org/oe-kbuild-all/202309270440.IJB24Xap-lkp@intel.com/ > Signed-off-by: Florian Eckert > --- > @@ -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; > - Is this kernel test robot broken? I see no label definition here. And this variable declaration is at the start of a new block which does not even require C99 support. > led_blink_set_oneshot(trigger_data->led_cdev, &interval, > &interval, 0); Maarten