Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2812538rwb; Mon, 15 Aug 2022 11:51:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR51t1N7hPiRTn+3OntGg4mEY7bG1hMavsdMicjZUPADwR3wYmeE4VkhIpx7cVArS0VRTMjG X-Received: by 2002:a05:6402:35d6:b0:43d:c3b0:1206 with SMTP id z22-20020a05640235d600b0043dc3b01206mr15731567edc.415.1660589461918; Mon, 15 Aug 2022 11:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589461; cv=none; d=google.com; s=arc-20160816; b=Nv8pvL9gH9MMO2tpJUG+oHq1UMZj/uPcbXfOMsRihAWv+BUSYieJQ1allyTZQ63SYL 4l7npLm0y5XtkuKd62DA0s3toGN3ouhOBiaEAOQgLUTqcYdYovpFtxI6d+oubMYxQ0lw AA7M0FBD/1IcrOGn9HhFtTzLaA2YTCGz8YGMuymLqp6P0FetrnU6VlDuj6H/Tk9vXGbr xUqYTZAFi6bbq85FTvFBpE9nCZM7cseemPMPSFPQonDmq2WuVH3Zzj/OWXLXXf/DDn86 dmWd2uUKlnT2s5nYZTrVcSCM/8xgiZr+1/aSJgadqzSzT5hZy/uNa3rr+J7kcMW3u89h M52w== 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=GPTN2relf6ZpRDK26y3Zr5EP/4Pvqyh6dg0hPHaXKmI=; b=guz7EVYUMTjJs9X45lpekentHGO0hHz+ElUfv2ukn26m+5MssVupu7570pfd5A8tGG KdEZHlilrVnmIMRLGznxzQ4di7/p24g4wIvjPV7reogDQNSDPECYzl6EghLMJ/VZx3Dd aoVACNQaJS1PZiSDxS+zCXs0Hrw/30M4P9wIt9mQLG06N6lJiRS2wKHEha6433hm1IVP x/b1Q3bckbdo2soVwsjvHcCS+Cc1zboeppaFIUeJvyy8p+joSFFw77z5Wl8hT6sA1/bo SR+2ZsdeVXoykLcIU02xsGmD2XUBmNNX5yu+vHky/BUdVU4Y8xUhIJzbT1VdZHHSaIYT ru/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t6mvgv11; 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 u1-20020a170906068100b0072eda634546si6669193ejb.560.2022.08.15.11.50.33; Mon, 15 Aug 2022 11:51: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=t6mvgv11; 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 S233473AbiHOSfG (ORCPT + 99 others); Mon, 15 Aug 2022 14:35:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243532AbiHOSeY (ORCPT ); Mon, 15 Aug 2022 14:34:24 -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 2FC312CCA0; Mon, 15 Aug 2022 11:22:16 -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 9B4D8B8105B; Mon, 15 Aug 2022 18:22:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2C77C433C1; Mon, 15 Aug 2022 18:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587733; bh=ZADaNa64nCvQs7O60nGPkeGkYO17owC8vXFL0IFB5uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t6mvgv11DQUQXKDc0OP6/k5wG6tGDlbr9EdS78zUwp0SRUWCFa4padJ57Z+CbD5k/ Z86urBPURah3M+HTxwYw0+5aV5F0GwRbrwq4bKWq6g/BqPzHsXf5la5MCT7P9KTx9h 31PCqLXF+22N5kIhKw1axHj42TGHoa/2Evw3xP+Q= 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.15 177/779] soc: fsl: guts: machine variable might be unset Date: Mon, 15 Aug 2022 19:57:01 +0200 Message-Id: <20220815180344.837217230@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 75eabfb916cb..0b2c7fdbaa5b 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