Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3025271rwb; Mon, 15 Aug 2022 16:23:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6f9SKKE+/1Ul97+Gm+ooGuLzNNwju1Oe/ZIx36+5S4zVyObJ8Bpqr/PGQoQAbmd05W+apM X-Received: by 2002:a17:906:4787:b0:734:1ad4:aff0 with SMTP id cw7-20020a170906478700b007341ad4aff0mr11467484ejc.317.1660605795459; Mon, 15 Aug 2022 16:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605795; cv=none; d=google.com; s=arc-20160816; b=GbxB6vRbeaizPAfrbA99zhmNDCTuUzn2NRuW7GSBb/Y2LWI3DnuszGfj4PepmF3wX/ boChBPeHBZjOssC2/x7JM3zVen+F/6Jh6PYiDkgPnGKzGKBKnePmSO3VXO9OEQ6Lxnln NAwc7XAFypao1R7vVJ6Cym8zJBi3FRuarXkzYfPWClOabjkI2jV9a5snmy71BZxSiuCa 4V0W+sMujN0UOXgpVQ4Nvce8shMSUtFO6LnK99ZcYZkAmEpAMIQf0VEkcjHlGwLXJB8B ZRip09xF99vSf1RJqBYXIcxuRoxecXmNyhLaYCiuW/8KSjt/fo2YM4gtZhClk6BQlPL/ NBTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bDbb4YTgEPlCks6lfGu/TnAJvh84HtW4d2mnWWFZnxU=; b=YjNQaWefVjii5Cjqu2WZUjktPAkMbEnVOllA1psya1Z+o2NHCxTupdcI8ZSirdD9ZY U4Dw/J1nVet8T/14hwtYshw8EkESpdbfOI/3d3s7FwZp0r3kXAjxbpDB5y2vYK08c8C9 9ZwMSC4vKWh6kwanZO8t5+kf+sVoOlHvsQjnJ8XnurIwmkRo1JQ6wBO5WD223CG31fIL 1Ls8OftycQ2gkl8YjTIfVSgcZtof0Li9ThW3JB9fq/54IPEbTvcYlxh6XmhNVRbvo7dF LoMGAV5AEVQc6qrgzfRn40/pt1/Zqw/BBK2pGIEHMnepfzSVY3n86p+x4nEXK54J8csb w3Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TMeLf7SF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a056402349200b0043d0b64b70asi9602415edc.43.2022.08.15.16.22.50; Mon, 15 Aug 2022 16:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TMeLf7SF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233575AbiHOWsO (ORCPT + 99 others); Mon, 15 Aug 2022 18:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351557AbiHOWpQ (ORCPT ); Mon, 15 Aug 2022 18:45:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC7F13420E; Mon, 15 Aug 2022 12:52:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1A489B80EAB; Mon, 15 Aug 2022 19:52:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46043C433C1; Mon, 15 Aug 2022 19:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593159; bh=cvYEl2v7R6jrqGqPloGDNravZIBuaPQgB2qMj5zfhmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TMeLf7SFd5y3m5GzKcEr0xO8vvZk0yvPoO+H26m4hXsLLlRjIHthYn6bEUNNAprHF 4ar2LZI81RSeLmqcmbnI0kHAu334JT27Dp+MRbgalC5weIgUcSWN0QUzYyHCayccEN Td+EyXvNDpA+3Qhj42WI15gd99zZzAyS0e4g1mK0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Walle , Arnd Bergmann , Shawn Guo , Sasha Levin Subject: [PATCH 5.19 0223/1157] soc: fsl: guts: machine variable might be unset Date: Mon, 15 Aug 2022 19:52:59 +0200 Message-Id: <20220815180448.510675220@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Michael Walle [ Upstream commit ab3f045774f704c4e7b6a878102f4e9d4ae7bc74 ] If both the model and the compatible properties are missing, then machine will not be set. Initialize it with NULL. Fixes: 34c1c21e94ac ("soc: fsl: fix section mismatch build warnings") Signed-off-by: Michael Walle Acked-by: Arnd Bergmann Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- drivers/soc/fsl/guts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index 5ed2fc1c53a0..be18d46c7b0f 100644 --- a/drivers/soc/fsl/guts.c +++ b/drivers/soc/fsl/guts.c @@ -140,7 +140,7 @@ static int fsl_guts_probe(struct platform_device *pdev) struct device_node *root, *np = pdev->dev.of_node; struct device *dev = &pdev->dev; const struct fsl_soc_die_attr *soc_die; - const char *machine; + const char *machine = NULL; u32 svr; /* Initialize guts */ -- 2.35.1