Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2088896pxb; Wed, 9 Feb 2022 10:35:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjO+4cBAekVG5KKj2aATIwf0LVInGjHPzJJjeWAVbNj2VZrBojAHtuIhcvZjB+aY93yxLF X-Received: by 2002:a17:90a:1fc2:: with SMTP id z2mr4763349pjz.121.1644431715165; Wed, 09 Feb 2022 10:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644431715; cv=none; d=google.com; s=arc-20160816; b=0dwfwu9aVt2wQd4pOsTxiNIeSfFCyNEhBr6kvBgqwqQTU4rs3RuGObxuQLvMhs9S3V UMypCbv9mRNy3XRKPK/VOsZWGQU+7QMO7OPjLaa/QLtBExY3gEdYfrM8nAzOzP10nfBL YgqaTfgu8ctlaE/t4iwq+tkXahFnEuNDIhovmL6W2NTy6LH7HTEgpTvIg0dNC+fUVl5n +/M8CeOTAHVxqgvKOztk/Vt2snN8MKjXaQUdkNBc9sUS/M8cG4SEl0MjB4Us3UgqUCmO gr26kQe79z3UB4pwj/MvLTmU9/I3avjQMJVDBcYhFoK4eeHXwqbjIqbLE5NqXQw95cyL pRFA== 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=cmcB32lZNLU8U2UJrhiSMThjgIDzKuhDycLLnDyMg7c=; b=T8TGZlGFE5JI2s4diegRwiQApm1r67kv8NiADwH2kW4DMLl+EWWxORmzBoWK7tj+xz FYBGjuuQgCNeAaxBeCrceCxhqNYH1rsBAFld3kZRu6OFjDfzyL8tmoCGjXtoeu6zC+v9 I7h9Fz57jmog2Z1OB7Rl/ajJF8W1kfRkKpk7FIe6qHkcI5xMjwLJZYv6VfijnIq0VzvY Z/dX4yIcgqRhlb9AWwZbBhqqUdwU6IWO2SynPQbxKWjNYkpnCwc/5Oqe/0p+pyc0zvZw oN4PbSl3gWsdr8xY1dJzzrmXhMA+cZZVw27K9hm7XDBelB4hdBxB07AwqyQq0V9HicZg 8mEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=flwCb0BU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si16573696pff.33.2022.02.09.10.35.02; Wed, 09 Feb 2022 10:35:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=flwCb0BU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237099AbiBIQdJ (ORCPT + 99 others); Wed, 9 Feb 2022 11:33:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237020AbiBIQdF (ORCPT ); Wed, 9 Feb 2022 11:33:05 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD626C061355 for ; Wed, 9 Feb 2022 08:33:08 -0800 (PST) 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 B6F28223EA; Wed, 9 Feb 2022 17:33:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1644424386; 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=cmcB32lZNLU8U2UJrhiSMThjgIDzKuhDycLLnDyMg7c=; b=flwCb0BUo/UOpJJlBDRJ2vAJRAbM7umeqF2fizu/hCOFfNvM81+7s3LeQZ7E0pc52uDVAo 9rGMtZrfgEKa5zKw6B5CeKbQOrU8rmIClAB+Bwr66CrjO03GhYuCeWUEBcK7b7jknyzMAz hOVyuJ0bUe5HZG13FoiXWS0v0DDXne8= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Li Yang , Ulf Hansson , Sudeep Holla , Arnd Bergmann , Dan Carpenter , Michael Walle Subject: [PATCH v2 1/7] soc: fsl: guts: machine variable might be unset Date: Wed, 9 Feb 2022 17:32:36 +0100 Message-Id: <20220209163242.430265-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220209163242.430265-1-michael@walle.cc> References: <20220209163242.430265-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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 --- 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