Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1858456rwb; Fri, 19 Aug 2022 10:33:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6XOoXnzfhXe7fw7RyLrgsSNxZf3KgPvbcLhY/bgdpPJXYw0rAJ88R9EgrFAHvCqaR55c3x X-Received: by 2002:a17:902:e945:b0:16a:1c41:f66 with SMTP id b5-20020a170902e94500b0016a1c410f66mr8209597pll.129.1660930388363; Fri, 19 Aug 2022 10:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930388; cv=none; d=google.com; s=arc-20160816; b=jh3ljpQN4xndCGf7DUQntAFJaN0xXWMP7NflnI9QDFBLvy0qCLNN4CLaTR5FHszVGL UrheHviVBPQ0xuYeP/H9TWFsHe/PZi3ds2z8ig80CzRmXbeTeaNv8lsYgfAFoYxzz29t j/9cefB8dlZDLeL6HeIwYmKlpCA3WXDhXzMBpm3AnJYuYhUAF8+Hf36nY8u8xNp5jD7H SLj1U56YciUpolNSu/dmZs/ueLp/1SITsLdnlQlbEEk+Gury+mAQD+kAWwRTrsAp0Y7J wZeNSpJ5W5CDvKPTGvYHej3giKf8TRhp8xIemH935wan+T2ky0h9ngpSxLLPIiKKi2IW oCeg== 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=a3MvxKkV6aAizq+Kr71DMBFWQ9uBJ7i2P2LaUxP/3T4=; b=GwQTEH42x4j7iKR/U/yCyTCxcpNynYHyhqt3KXCsR0pWAg0nvYqmfM4jZo19OaKsJG cOhoRUvIF1moksxVh6E2+B95tnkMYj3Ys6zvrHyGGwtuqSzO0e2GANqU75SEcaA9X7ER O2knNIONEaLHMjscaPCAoFfqz8ikhZIh3NhVTPTeZOUCKVjwHI6wd4ShKzTIbVV17vbK fuXoOdI0f4lNhnhuxSH5XNsSDxfPPsmmK9h4K6fyly52gy/hybvGzddlZ82ahgm02hrx oJmq2QyuH+OE2U11UrLBYJ4Pc6mZQpdhUhR3TeLm45IEcNEd5xdTFrNevoqxcmGysd3S XCpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I+hx3T16; 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 jm12-20020a17090304cc00b00158643c240asi4264802plb.87.2022.08.19.10.32.57; Fri, 19 Aug 2022 10:33:08 -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=I+hx3T16; 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 S1350946AbiHSQCo (ORCPT + 99 others); Fri, 19 Aug 2022 12:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350743AbiHSP7r (ORCPT ); Fri, 19 Aug 2022 11:59:47 -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 B01A1647D9; Fri, 19 Aug 2022 08:51:49 -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 27EE7B8281A; Fri, 19 Aug 2022 15:51:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ECAFC433C1; Fri, 19 Aug 2022 15:51:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924298; bh=W/ltPX1c32PbsqIxEAExA6ikOuFnxtc/3GF5aJ9ksmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I+hx3T16P6qektnaQOeek0gNNRTB2mhfFg+Pf9fnqVCNACPUpDbNh8KSAAJujpj2M RLhF14TCJrAVjxvxcSCWslJsX5aThFAKSwUBNL169h9GphplXRX5OUdylY1u0E/veA LJsHcC9Omz9rFXdDGFlEWYcYuRifsOLVcrqNxC3M= 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.10 124/545] soc: fsl: guts: machine variable might be unset Date: Fri, 19 Aug 2022 17:38:14 +0200 Message-Id: <20220819153834.848255029@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 091e94c04f30..6b0c433954bf 100644 --- a/drivers/soc/fsl/guts.c +++ b/drivers/soc/fsl/guts.c @@ -141,7 +141,7 @@ static int fsl_guts_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct resource *res; const struct fsl_soc_die_attr *soc_die; - const char *machine; + const char *machine = NULL; u32 svr; /* Initialize guts */ -- 2.35.1