Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2921517rwb; Mon, 15 Aug 2022 14:05:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4/jqtj6ljVPr5lnQj03kcUzDZkN+tqDARk/s6Tr7w3sCmkNehQlVC5mCysZ7Om5KURwBtD X-Received: by 2002:a17:907:8b97:b0:730:9480:972a with SMTP id tb23-20020a1709078b9700b007309480972amr11720175ejc.648.1660597555258; Mon, 15 Aug 2022 14:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597555; cv=none; d=google.com; s=arc-20160816; b=UXBbVnCQH3sdIBdqzOuIcOxzvTv/iVvVSzkmZsnxZXkMzr9U4BnukpqmzesZMAUys9 DNE7oS9DVJR4O7vu1AtnQheqOdwDQ52tKr8ubEdUjuo1k7zHM9deoGgvHuLkbDcW5o02 a1poBLyQHACJeK+yzeduxWR3chUcfm5CkHttDkw2QVzViI8K1ehTHIf3oSk8RqUQIbC6 Pz0rx6eNLbSOCcz7WXdWaKrBr+qd3L3hEpaZ2mHB7wY4YPkVCJN5jv1LlLQp7bIGa+TX nwp+Ar0KNSXGcDCyEQpfQlOc/C8TM27jxHyqlSJPPVwdbrjD0CG5IJ5xkiYhVZFEvZOB 5ihQ== 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=XtDIVoLtTPEOMKdBNyLGGKQ0jLYN5zGHMmmEeQUL5OBPfU7ySm0oVPPtvG+V23CopJ qC43cSmHpYKBtYaSuqUghPB5eiGF2Yp4fXouJdq7ZTgSpf7Q8pQlTF8crel+c6Tv5yeV a7vaKkWoZLHvsxi5/oU011dGzA12QQyUExIKl7z62LhHy/bPHphz+KgWeamDVbr6+/V/ VJuKY9F4s9O/5vQR5k0k2il9NdJMAQLoPJxRP3b455AJMv55BrTU5+EbFmVzSfLsd89d b6ECV8zIDeLhirvBdgZmoSNiD0JphMh+x7iXkYTHyoMqDFNybxAKJOuHUI4Y8UTDfO2Q 6ymw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PZgu3G2v; 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 j9-20020a05640211c900b0043e57ef5606si11294232edw.9.2022.08.15.14.05.29; Mon, 15 Aug 2022 14:05:55 -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=PZgu3G2v; 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 S1344623AbiHOUfE (ORCPT + 99 others); Mon, 15 Aug 2022 16:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347540AbiHOUbU (ORCPT ); Mon, 15 Aug 2022 16:31:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7AE1A50ED; Mon, 15 Aug 2022 12:04:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 62269612B5; Mon, 15 Aug 2022 19:04:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A98EC433D6; Mon, 15 Aug 2022 19:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590272; bh=cvYEl2v7R6jrqGqPloGDNravZIBuaPQgB2qMj5zfhmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PZgu3G2vag+bSn9TX29XUVCUWCJPZVjC/UrC3xynzutRnHjOS/WJIFNYDcOh3cCJy ukqAMU67Wzc1FflQIYe2nLUM85I6gYkBdSqRljC6t6pEe+7lfYRv8VPO6kp0Pt49tM CaVjJsEmCGOqW+r3XBPXZl+0819bcgMGSdNQnfhE= 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.18 0208/1095] soc: fsl: guts: machine variable might be unset Date: Mon, 15 Aug 2022 19:53:27 +0200 Message-Id: <20220815180438.273750539@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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