Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3086212yba; Mon, 22 Apr 2019 19:36:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR/FjrEE4cQnmz5v8YXCVWCzHfII3JWEhT7lh6mP94Q5XKu/Xuvq+OZ1KIVsWHa0L6a6lH X-Received: by 2002:a17:902:b481:: with SMTP id y1mr23825342plr.161.1555986978389; Mon, 22 Apr 2019 19:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555986978; cv=none; d=google.com; s=arc-20160816; b=yqP+vQFr3NrBlB6rypSTZ7TKKgoHwj2q2X/eBJxMNDIE3OSoNcOR8PgbQCpX2qL3pc ymBkOqkTvOtqAjMpifg2mAbxDIjmY8RjDAbIYzID41fXIIfAejdCrjzY3og5v/934AEZ dyg7eIR3o6cQNVAI8Mpi3XmDryM/mkKUQNKNvlBlRwYZN4GAqzf0bkwAx9M+M0IkP2DB y3xt2N8sEm9i+YxBiItWR/0kMAqWUKV2plI73MUfgKZDcTt3BnfSnnfYCGE9teZVrX6+ 9Sog+hdtRuAVmOALFCwYr6x2l4A87Xc+Uruk2fszLGnpHH67oGXWVuEOfkGgnV36maZi kawQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FUuKeqnPsiLXawpbhLuMTmPeS2LEwBCSIy4Of/7qnXs=; b=UeBm/fYyMtYhk2maqLWqEF0bjTznJMPIwdQXG/DbxpssnVVcHB7SUG7Hny++v8uHDG MBwXKkV+oDLeBq1+WTx0aKUAP4dhhuL5aoaOieiye7L3hV64nzaJIbcc9eajnZqcvZ/+ nsgUvFF/pqFUx46kSQhlzkiEPz07/h09xmSV7QGuapZ6/qbiCEHyokfp6tsIH2g8eaoG AH5vWgsUuZsstNsk3A0t0LHKSzrygx52ZvvdNfxw/R4QBQByO4262nWyOHfSKGfNkZhf gufbY5nb9gTzfRkgT0mzRFd2ghF/YM228neswU9VK3edQjy/jPP/UwhaM9g916ZHQaFg lvGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IyeI1bhu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si13688227pgh.139.2019.04.22.19.36.02; Mon, 22 Apr 2019 19:36:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IyeI1bhu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732197AbfDVUEc (ORCPT + 99 others); Mon, 22 Apr 2019 16:04:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:47320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729771AbfDVTpd (ORCPT ); Mon, 22 Apr 2019 15:45:33 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86C2F218B0; Mon, 22 Apr 2019 19:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555962332; bh=zcXJdbVkQ9dCRjuZ4c2PifO78xgR1cg0tfG5s/ThGjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IyeI1bhu7FuAAooLtczqbNTMuWy2SBnGxvBmkxKTa1jwVwN773b9VddsoQyDqD3eI yTqYMRQWaKvTauYfdMLttjoHnchHkriv8b8tM8ZSbUPkBVhng361oPBbyO8xykOEFW iebcHKbSAnr6cS3c5zPYTn/38osHMuNFyM+IR1WE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Sasha Levin , devel@driverdev.osuosl.org Subject: [PATCH AUTOSEL 4.19 08/68] staging: axis-fifo: add CONFIG_OF dependency Date: Mon, 22 Apr 2019 15:44:16 -0400 Message-Id: <20190422194516.11634-8-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190422194516.11634-1-sashal@kernel.org> References: <20190422194516.11634-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 1beea6204e2304dd11600791d8dad8e7350af6ad ] When building without CONFIG_OF, the compiler loses track of the flow control in axis_fifo_probe(), and thinks that many variables are used without an initialization even though we actually leave the function before the first use: drivers/staging/axis-fifo/axis-fifo.c: In function 'axis_fifo_probe': drivers/staging/axis-fifo/axis-fifo.c:900:5: error: 'rxd_tdata_width' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (rxd_tdata_width != 32) { ^ drivers/staging/axis-fifo/axis-fifo.c:907:5: error: 'txd_tdata_width' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (txd_tdata_width != 32) { ^ drivers/staging/axis-fifo/axis-fifo.c:914:5: error: 'has_tdest' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (has_tdest) { ^ drivers/staging/axis-fifo/axis-fifo.c:919:5: error: 'has_tid' may be used uninitialized in this function [-Werror=maybe-uninitialized] When CONFIG_OF is set, this does not happen, and since the driver cannot work without it, just add that option as a Kconfig dependency. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin (Microsoft) --- drivers/staging/axis-fifo/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/axis-fifo/Kconfig b/drivers/staging/axis-fifo/Kconfig index 687537203d9c..d9725888af6f 100644 --- a/drivers/staging/axis-fifo/Kconfig +++ b/drivers/staging/axis-fifo/Kconfig @@ -3,6 +3,7 @@ # config XIL_AXIS_FIFO tristate "Xilinx AXI-Stream FIFO IP core driver" + depends on OF default n help This adds support for the Xilinx AXI-Stream -- 2.19.1