From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1344C3AC00; Fri, 24 Apr 2026 13:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777037580; cv=none; b=V+JGgVP1CwB7Bpw1Z+lsfmdCHRk6JgC249cCm28u0V0nEOLT8DHlx+ERN1+RG14nj1yGbPEvDvAhhjzh2yP0wOfBhr7kK/I5WnRja5wdJwvM11GY5CRGWcuZLKKh+wr0f53nMuKaR9oj8YkiRuVDlq9jdtwc+wvWJeq/3ox1g/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777037580; c=relaxed/simple; bh=NJWQAAkAG1yJ2KvOj2zUXOakzMNnk4z5ToaXcZtk7sc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rL5du1td/fkRdbU2AOn/gHa5EH2Uw7BHwa9uysFTY7/6TiafGY+rR164eolYOC+MXa8kKnOL9uaar4CGvmqptBRKlOyVbzdAGzCI3QN0Rc+v5dvWb1TXHhA5kNlJp93AxiGDgV+Fn2mrSayqZj8+0IwOUK99w4tWp5IwcoQyWW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=isKwipl8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="isKwipl8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BCAAC2BCB2; Fri, 24 Apr 2026 13:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777037580; bh=NJWQAAkAG1yJ2KvOj2zUXOakzMNnk4z5ToaXcZtk7sc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=isKwipl8loGZGxRHTBEvA0hOSA6vugmCBf+SlIRZnFTgyxFvcjqcQn5YLmVS+AZfn kv4hw5TMa52wPVc/9ni8a0+COtR4Z1X36WKr4ZwgTNbnCC4yEvatVxSCPuxR0R36ar dOPLe9pO+IvMaEGZcc8gw9yAbCMmzZnGkVwJSWzM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "stable@vger.kernel.org, devicetree@vger.kernel.org, Nathan Chancellor" , Nathan Chancellor Subject: [PATCH 7.0 09/42] scripts/dtc: Remove unused dts_version in dtc-lexer.l Date: Fri, 24 Apr 2026 15:30:34 +0200 Message-ID: <20260424132422.437228652@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260424132420.410310336@linuxfoundation.org> References: <20260424132420.410310336@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor This patch is for stable only. Commit 5a09df20872c ("scripts/dtc: Update to upstream version v1.7.2-69-g53373d135579") upstream applied it as part of a regular scripts/dtc sync, which may be unsuitable for older versions of stable where the warning it fixes is present. A recent strengthening of -Wunused-but-set-variable (enabled with -Wall) in clang under a new subwarning, -Wunused-but-set-global, points out an unused static global variable in dtc-lexer.lex.c (compiled from dtc-lexer.l): scripts/dtc/dtc-lexer.lex.c:641:12: warning: variable 'dts_version' set but not used [-Wunused-but-set-global] 641 | static int dts_version = 1; | ^ Remove it to clear up the warning, as it is truly unused. Fixes: 658f29a51e98 ("of/flattree: Update dtc to current mainline.") Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- This should apply cleanly to all supported stable branches. Signed-off-by: Greg Kroah-Hartman --- scripts/dtc/dtc-lexer.l | 3 --- 1 file changed, 3 deletions(-) --- a/scripts/dtc/dtc-lexer.l +++ b/scripts/dtc/dtc-lexer.l @@ -39,8 +39,6 @@ extern bool treesource_error; #define DPRINT(fmt, ...) do { } while (0) #endif -static int dts_version = 1; - #define BEGIN_DEFAULT() DPRINT("\n"); \ BEGIN(V1); \ @@ -101,7 +99,6 @@ static void PRINTF(1, 2) lexical_error(c <*>"/dts-v1/" { DPRINT("Keyword: /dts-v1/\n"); - dts_version = 1; BEGIN_DEFAULT(); return DT_V1; }