Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3408235rwa; Tue, 23 Aug 2022 04:24:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR4qrFkJW3O8aOatRta1qyxj8w+evq6X3XBndZ7f0dOm9K7MWbgm0oMCCFFLuEvrMlOw0nHx X-Received: by 2002:a17:90a:db95:b0:1fa:c02b:5e34 with SMTP id h21-20020a17090adb9500b001fac02b5e34mr2852216pjv.159.1661253721207; Tue, 23 Aug 2022 04:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253721; cv=none; d=google.com; s=arc-20160816; b=EGEo1laugmUBbzVg50tx5gHP6M2+dMZLTqijBG7YrSO9pHaP8OC4WwzZUXM9aGqHZe tXv1/GBm8AgxhHjmSFSUzkiYQQJPZ8EY3qa3gaihrAXv5KFvIL3bWkVggK3OER0iqWjL 8wtcHJQmmfrQtv3B/jGYoKQh5iD0DBRLv1GOGEoIFxnpgBGopoYkFcwncRhBgr5Vbjdv 487S0BZ7xril6Mfd51/6iUMRdoElT356QZVXboTkokKe5m5ifPiwwz8o20Hho8/85e91 WV2inetOacQlzT7kun6w4JM6ZXaa93e2tByybgRqlm9pjkg6EVTovafvnBqIN8H8svpH qNgg== 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=gJBuGAC0jvUIx854H/a2SVxmR783ijdOlCMahgAhQJk=; b=vfn6EDU4YdPKeh2citT2JGx1hvGyA77766ltcbLJtTZbs/RnUncylH9HEl+BZmSrVA pa3ilNpenkfgnGFEr/ybml7yCkq06odlPO25DRmQkS1nBG8kFJkUbcqWYcUegmnBxiao vM9hDCXN11SdUsaaI+YCk84nf+0OCmFFm9lajrTVDbs3VZ2nJPzgUQoOfqKavyZ/WvcI 4fMvUlLfVnaHcUxYX48/my7vKN6/Du3bbNXQRI52+m7K1WSod37Qvs83Pr5tXOGx6UNy XiaTvZk/ozXzUWCAHgJeHNFFXaISjMratNhF/MfB/yl+En06ww3yz/rSiVdaYD1Rl7gZ FuqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aUSTGLVv; 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 r195-20020a632bcc000000b0041cb4fd2e4esi14626130pgr.793.2022.08.23.04.21.50; Tue, 23 Aug 2022 04:22:01 -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=aUSTGLVv; 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 S1355555AbiHWKg2 (ORCPT + 99 others); Tue, 23 Aug 2022 06:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354506AbiHWKVi (ORCPT ); Tue, 23 Aug 2022 06:21:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28A86EE33; Tue, 23 Aug 2022 02:02:56 -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 D3F1CB81C54; Tue, 23 Aug 2022 09:02:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A0B3C43470; Tue, 23 Aug 2022 09:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245373; bh=8usOAsQE0nY2RX9D88449YqHhr60C4dx7CTc1aw9+RM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aUSTGLVvMcZDoZIy1DMrQc8QTyYX0buYsqMqPlBjqZRr3Ok+wM8oIn0aM+re/mQgb UKgpWccAv6njA9ejuv434LmH85Nx/EPDxjrPC7I6hVh8ZfqaeNeTkIzGy4/igerZ5J pIPumfrrIZkRanP1XMjKUJtaT83lJezt8uu7DeYQ= 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 4.19 058/287] soc: fsl: guts: machine variable might be unset Date: Tue, 23 Aug 2022 10:23:47 +0200 Message-Id: <20220823080102.193571502@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 302e0c8d69d9..6693c32e7447 100644 --- a/drivers/soc/fsl/guts.c +++ b/drivers/soc/fsl/guts.c @@ -136,7 +136,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