Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3475409pxb; Mon, 4 Apr 2022 18:09:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv1C972bwrU+6Aui3pCwUZ5t6HJPSD0wN5jcQwSqaUFECQeDVQSnBqcUtwi4jqE8JBQdTn X-Received: by 2002:a05:6a00:1791:b0:4fb:2796:83a1 with SMTP id s17-20020a056a00179100b004fb279683a1mr1034296pfg.36.1649120975289; Mon, 04 Apr 2022 18:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120975; cv=none; d=google.com; s=arc-20160816; b=Cbt5vwaKM5KCww+Ogg5dGySao4xtY5vZKxWz3d7fVdApbX7DkqJZXtKetOETK3sdOU zDbE5F4EHhNTiSKRSDP9GjJ41oHGoEuQw1Bc/M0Kh1kGOPmo4eIZjrEQNkGcYvEaaPvS e1S4w63cYkXGsEyJygD9fw+i6SN9MJwP3MhigmLr5sPVy0KgJONI33FOedVleSXGI8ZH WDF23viUX2syIbS6FUzpeJwkaNfTVioCbRRGIiHi7pXzBnJXBGTrACEuR9T9vmqbBxC+ 27ZS3i0DZMTXvnCy3YoR2jaXaPKkmJ423kemcVX/CECxOSCcsGGMsyTqGkEzH4XRJdz1 AKDA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iX2fFx8/rq7F3Adog43qeOMbLlUuhbcJulHHCOYHYsg=; b=qIgGqeTPtrTEjfnBLkr4885ltuTSxb2sb1Y+UBKCdfPcUJkHAFpMB0YBM8bGp6XfiS 2Ajzpa06XqlnIdPUm/CGOZQUHtht1+HbRrOd470ko8KCb7dOp+x2uVYrqRSNy/yAjtwc 7cQg0SdrJIOrizvrqZR9NRVHcqOechZrvX+IRRJx+v1unbqIfLLmXYaIstTO5CMbIQip p7h+92pUf2OwNLMnsxOWNPLzw5gID73EQ+Dzy0htK8QwuX2gugwCLh7wWrHrFBoA/67J KRV85wLCGhSZJiAfwXfMMTz4tvs3mGJfpfzrra+J3OToDAkPv2KrkaRd6HNGe53LyFrv pmYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=NNkJqr8+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o17-20020a635a11000000b003816043f040si10913792pgb.565.2022.04.04.18.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=NNkJqr8+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 08B6A166649; Mon, 4 Apr 2022 17:09:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355340AbiDDJ7a (ORCPT + 99 others); Mon, 4 Apr 2022 05:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239305AbiDDJ7V (ORCPT ); Mon, 4 Apr 2022 05:59:21 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E723BFB7 for ; Mon, 4 Apr 2022 02:57:25 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 28F2D22247; Mon, 4 Apr 2022 11:57:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649066243; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iX2fFx8/rq7F3Adog43qeOMbLlUuhbcJulHHCOYHYsg=; b=NNkJqr8+5zPdPhCam/JqBEDXjHgmuDyTC4HQuzE8W1AFUWCkpHKmXvPT5CrDnlCAiRJlLz lKmkzJsGVRQbhbivf/bArfrBeax3BmkJDf7FdMBGNh0nEzRukk32OAfTxo3fL0FSTzVM8y 8ROz2rfs3NU6TZo2Z9EcRzwh9KMQKwY= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shawn Guo , Li Yang , Ulf Hansson , Sudeep Holla , Arnd Bergmann , Dan Carpenter , Michael Walle Subject: [PATCH RESEND v2 1/7] soc: fsl: guts: machine variable might be unset Date: Mon, 4 Apr 2022 11:56:03 +0200 Message-Id: <20220404095609.3932782-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220404095609.3932782-1-michael@walle.cc> References: <20220404095609.3932782-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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 --- 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.30.2