Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3326652rwa; Tue, 23 Aug 2022 02:55:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR7oiuoEu0IUztiIoN0W0mHYVnqN3UDALbBdPRSLhArSzSs/HY6Ev/8TZ5SwIj1deXHwOs8z X-Received: by 2002:a17:902:cf0f:b0:172:b103:e019 with SMTP id i15-20020a170902cf0f00b00172b103e019mr23910950plg.84.1661248519279; Tue, 23 Aug 2022 02:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661248519; cv=none; d=google.com; s=arc-20160816; b=OPkWgKy6Ns7m04RSjagwymRS5sLTdEfepsqChX4eJ2n6PWZb3sV/GtNTeaGi0hD34N FtX5t4GHkZ9khDs3o6IbnQrdXBTyCBTeZNByz9mHTsDWRM1pkWtJruKllJSCsTygI+61 exZ8u7oOknP6Xb+RJ9X5HyGUHli9mLHrwk3i/uADQJNfCIMSh49eULTzltExzIINT7ki XOcPsQM5yfn+aJBQgYxiv13qeyezQZyqEguC1nVQp9Hjb2bNn3NnkFFzUc/iXANP2758 B8n+504bYJ9kN8XkxZZRJr0JHS084Yl19FfBSbw35797qMgv8BnznzhSeEOYhnxHaSvn TL2g== 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=/4/FDbkE+qkbyYSN6kS7zJ09yTOgw/7XWZkuvPmuYGI=; b=ICYdLo2RAGneKFYTSUtgjucRfzomKC7dFrclmIATSJIpe0jyJLttJDbcoWWie8uRNT vMsV0dpS/kHce21SG3CwNsFVan8qkvoE+6yVTwM4e/4qLpd4uyRgSd31eh5GSCcYseyL NaatwzdjThwXnp9IAOqVNXlFMDjLZziV1FRl57XaPAxPEBoQRST/kJUScX7UUUrvpa9M wc4AjCdFVlIr46tILohJ5QjEN0xrtxJqnSycq00XbI6t1azAUOkFDn9KF0PKzRmySBWY qnEd3ONDfo5gx8M1rrocNqnTuM+KpxiXNXFL8Dy/lVWNZIGtiwiQZTMF2JhkvjsU9WZP MdYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vi3jaAwo; 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 b5-20020a056a000cc500b0052ed946b207si16945330pfv.325.2022.08.23.02.55.09; Tue, 23 Aug 2022 02:55:19 -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=vi3jaAwo; 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 S1350664AbiHWJiT (ORCPT + 99 others); Tue, 23 Aug 2022 05:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350610AbiHWJgi (ORCPT ); Tue, 23 Aug 2022 05:36:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A414E9858E; Tue, 23 Aug 2022 01:40:40 -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 D736CB81C20; Tue, 23 Aug 2022 08:38:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 204A8C433D6; Tue, 23 Aug 2022 08:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243899; bh=q0lwBwOpc6ybYAZdxR23GL4Xf+A9Fy0uKv6IPGQ9w8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vi3jaAwotS6a8CFmkSGZHEXs4ohEKBDTUWyhgq8NO11eqrhYXJhcdmxoq0azqB81/ +FR8XJ5vsLddtL95mVkds2iR0PSMGGQgwweUJ4zVRTlWQK3XZHLFJBQNCE3ZEDDBcH fiOFqzKidFhIyUxzYH/0B02DAzid4asCWx17/N7g= 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.14 053/229] soc: fsl: guts: machine variable might be unset Date: Tue, 23 Aug 2022 10:23:34 +0200 Message-Id: <20220823080055.600279021@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@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 6af7a11f09a5..affc38a92166 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