Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3098256yba; Mon, 22 Apr 2019 19:56:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx44El7wfQH1GxrxxkCFWqU602saEm8/5G03Gq6xkVPEJmy+q18Bnsm77mv3CKf1nuZYLfF X-Received: by 2002:aa7:91d5:: with SMTP id z21mr24214583pfa.222.1555988190991; Mon, 22 Apr 2019 19:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555988190; cv=none; d=google.com; s=arc-20160816; b=CUXSdOdxcEc/97HOc6skUFoLF7f1g9DRsJsxQdWzdddV+kyUnruhoh7PoQ0wlT1C76 KYG11s+RUwHxX/SQmIWnVmwAfn549Uks0A0Q63zURLgh2NYKQ0YDvemtZ+ElrG5lOisb 1zdLejvM+N8J3WGQL6o6nHmpICgDBDewrZQoc3mcbWcvS5An+k6SVdS3NfJMKxm46hqi +MSokNh7WmAXAvusl2J87PkXDmW6S9lXNgZNhFWIUGte0I/G5V96/8UECe8BweIFh1QG 62F06/GKD3djwmp12kj3I5zvWs9Pjuth2qyEeZfvng2vmNkENWSY8ibgR6Ulc3Xlub76 UqSQ== 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=rFnzI7wHzKDn6nFqS50ua+Ut4P0kWujBhNHfUNz6p6sjBGveNvNmj820ZeZqSnEaxR jmMYLX8gvUEtHEVY7Ut5ay0kIhGBJniHKTih8JIamEUKMR1AEyn0dVE4ubvXzVWaGV4T bvNLLMlsr9MwtN9ehtDvI1pKiss89mHVbIFvBsYezdy8enyzWzDoQe1ubT9UTWcnvxPM pkYorfjXjGSlr5XcVsmrvTEvT1iKPyZsix+Nd7XRuM/o0YaTBniyx9gG7oKof//7L2hJ kNPNUC8G5JCs9dV8Xz2FChZg0RltVDY2srgGpV9nzafL90J913wfsk9C/qAFpT3c9Rt8 mbEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nMUYKBRs; 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 d11si14641201pfn.171.2019.04.22.19.56.15; Mon, 22 Apr 2019 19:56:30 -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=nMUYKBRs; 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 S1732615AbfDVULY (ORCPT + 99 others); Mon, 22 Apr 2019 16:11:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:42714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728742AbfDVTmT (ORCPT ); Mon, 22 Apr 2019 15:42:19 -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 5DB94214AE; Mon, 22 Apr 2019 19:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555962139; bh=zcXJdbVkQ9dCRjuZ4c2PifO78xgR1cg0tfG5s/ThGjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nMUYKBRsiqqDSjV/ZiBpgDVCnChSWszGYUVIMWkdHWg3faV+YCC3Oo8GvKjPLB3FK 8po/Vg5Phunpc8ajw/ovsUL3+fkxkHdC9Cf6LrqQ8cbpJSwmqqyi4+Fr1ywfnQ8jVq V4bA2Dr89GP252JeOoweQfQWqP7ah5mZyPfhtaAw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH AUTOSEL 5.0 14/98] staging: axis-fifo: add CONFIG_OF dependency Date: Mon, 22 Apr 2019 15:40:41 -0400 Message-Id: <20190422194205.10404-14-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190422194205.10404-1-sashal@kernel.org> References: <20190422194205.10404-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