Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7354732yba; Thu, 2 May 2019 08:30:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvDuHM3pEdy2ERf9UN3ySIXEqi/AmCkeCaXEER9hNZFLGCgop+5NixNSgOw64Va1tZweab X-Received: by 2002:a17:902:704c:: with SMTP id h12mr4438827plt.270.1556811042236; Thu, 02 May 2019 08:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556811042; cv=none; d=google.com; s=arc-20160816; b=jxMyxUzPWMFFmHdn11wEsMn49+OkeAjYfcZEj4ylrU6MZrCUh5RKPFI4Q1ckOSaHPA /R4QWEQmlQXKMOHOulj8aDUiLVgSTJ02IewNU8nuTPtzn42Z3SMwbgVI+DWK7Szum6Z8 3lAgU92biry3NuU0FYANc1siTXAuxWtNn3ut4CeukTWDO3E83fkljdJMsEoJRnwp8Ckb IUFgrjp0e+tDutncwdxYDLSPuHQBmBay+yU9ySPP6qlJrXSd3RLyGcBU/GJGk1lH24gv YTJzZeybMxIveMRfKus4RyKhGWXATzuKALdQEGZ85/5/qm1PRPxbD9zAcZ4wlIhzzhDt ui0A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+YuY1uSrGeXY1AJaZxwT1seTm5EEOjLll0k0CG7q3g0=; b=xu0kKMJj/8tU4D6hYgheVwPU1ALI3Zq4Ny35H4CseySGk/1MxU1r9Dnof5EDJxkOH9 bhyxFbk+mFlF6KVK10FWT2PJCwoYXJwCzEknZPVlsCpG+NVlPhsVB39/fQfJbFZeNH9M 1FFUc64n+y8/DQhQheqSFDPC0koOIlU0zrD/VO7poFqzL/WK2SaB1RSoT1zabsumaRf6 am7Ev7/GW4Km3D3p776xGafjG1+r4E9kPymhKSszELIY+BxSLkr8bGCvtPnIjNXqK7dr z6oM02l/l+zmOBz3isgYmVnG4M8RZOx8o2tbDR4tvhxsRs0SpOOvR2YEC/cW9wMWJj4J L1+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c1TvPTKz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n21si30055476pgh.52.2019.05.02.08.30.26; Thu, 02 May 2019 08:30:42 -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=c1TvPTKz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727968AbfEBP10 (ORCPT + 99 others); Thu, 2 May 2019 11:27:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:44210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727960AbfEBP1Z (ORCPT ); Thu, 2 May 2019 11:27:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD0912081C; Thu, 2 May 2019 15:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556810844; bh=8jRcYPH5YkiKRc1omdlCiX2F+0bIR3kxC2mztkj37Eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c1TvPTKzRpj9b15+dZatEVk+TNpVlWeHqUunnN5p+ckHSwbvsX91099GvL00Yolgx Q/Q3WTmO1M+Jf1gDnuJT4bfdLSOUj/+hc7F5Fb5fNoUy6NzVGOGFnDXsAfwur+bSpu D3BdHnANLhnAjSXeQIwpBLvw4LBfojoQGe/ju76A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "Sasha Levin (Microsoft)" Subject: [PATCH 4.19 14/72] staging: axis-fifo: add CONFIG_OF dependency Date: Thu, 2 May 2019 17:20:36 +0200 Message-Id: <20190502143334.493667656@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190502143333.437607839@linuxfoundation.org> References: <20190502143333.437607839@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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