Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp430446pxb; Fri, 28 Jan 2022 02:17:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJx10g6SOKK1/8n+hPuToi0Szfsyqsew0YOTMNEsqOA4LK0liw/CJRGcIAdWpFfget2IIcIg X-Received: by 2002:a17:90b:3554:: with SMTP id lt20mr9020932pjb.108.1643365064073; Fri, 28 Jan 2022 02:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365064; cv=none; d=google.com; s=arc-20160816; b=O4TgEwmHSAE/UeOFJSvq4FIVzZDYirvx/udICZzCXboeV2feluYbZ0+pFDPT1WZMpr ZnKnCrUGdUi66dbRJGK+ebwak+MSIQaR00m5M53LmTBERopl+oZeqtwRVP3qbZMDVDl9 xwl6MvjbLUjQzdO8pgR66L7RenoUhVs6qLFf+qa0Hbt/Y317SkRqb/7jffK9/DbRqy+C seGGmAFur8WVEWDzGyeH11LQGoLPaPg06a5J3C68fd/hE1NOQaZQqtJabgRDBeW3Xrh4 VmzkUFSMn2BnwyiuWbj6ztrXFQWXrFMlcWrozqznJBbSX/UPqQSosItX1bySaTiscnD6 z8GQ== 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=Bv5DWHHWtC+fl5ZqixKWOR5SwcXCc/ybQqPefhibWtMPurtDDaY6mBLvh/vyhn82/Z 0bnBQvJslrqt0O8ftHYva5VaTEdB13sdc0U4Nqkm2QyG7XGOOqztAaQxS+ceygOl4f0a gDlyV0d6PqOdu0vSQPyWQ7MyHBGP605MJLr1+9H/iR0oZlV2XpyxOyRiPn4XQdG88Q7I ZbQgOBNpFVTuVgHV7BEm4yO5IiMMEPV8eSDNHb8lzQTHtyu7x6QzmAkEr8ksvVasB28i KGzuwIiAOxxmDjQ2A2TktF86BawdTWvuQJ+9cW9Tmz4dUgfBa/f/HSU/+AKpfvg+6W2C fTew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Hj28wdCx; 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 k15si5908363pga.245.2022.01.28.02.17.32; Fri, 28 Jan 2022 02:17:44 -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=Hj28wdCx; 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 S243959AbiA0Qlq (ORCPT + 99 others); Thu, 27 Jan 2022 11:41:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243890AbiA0Qll (ORCPT ); Thu, 27 Jan 2022 11:41:41 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0245AC061714 for ; Thu, 27 Jan 2022 08:41:41 -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 3A5AC223EA; Thu, 27 Jan 2022 17:41:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1643301699; 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=Hj28wdCxF0vZgsjKzdionFrUFzJyrw8fIZkK4K2w2bRf+1LOOvuz9NXFaATAfous6xXqwd EE+tujNwm658TZ+2Zp/CBHTH1/QHqzmZTat/sdWSqA72fDkN7V0y6mQQ+YDS8F7/7ckq9o +dImi0lP8LPxI+Kb99Gmtr5Ts+Z31og= 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 , Michael Walle Subject: [PATCH v1 1/7] soc: fsl: guts: machine variable might be unset Date: Thu, 27 Jan 2022 17:41:19 +0100 Message-Id: <20220127164125.3651285-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220127164125.3651285-1-michael@walle.cc> References: <20220127164125.3651285-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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