Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7369172yba; Thu, 2 May 2019 08:43:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqywrXYbXQuNWPhaGzRbjKIigeQ3JIeQTYNDFRgOHcTftTLgOLydMtAwU01pPuEiEshxnD5B X-Received: by 2002:a17:902:112b:: with SMTP id d40mr711959pla.31.1556811785029; Thu, 02 May 2019 08:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556811785; cv=none; d=google.com; s=arc-20160816; b=CbcNt2MfL2z+ytJ8fiVk+N6AQWvBlUXsknbr5Sj5jrrAKvCVaRNsLqRyD5lA833i/W Yf/7gU+kH71Ts20qkicetmgnfYrFNrRF8dRPOQo34kRoJPE/9beO+Xp1rijq1lThrFlZ VcllEvUvUjllBMsn/jYa/9a019xm3QpQVnDEeUIeo/1d9GmXfh4iH+FJSakvLCLdycmk yyQ/UiGz/sqjvSk8uwM/XUXBIdblDPt5s0Gbu5oRTTC+TywYZq/ixYkLiJpTt/ep5oxU YAvTbqwKaPFk2ET7Z61eS2DyGJI6BvY4VeVhiSxtX4/fiduZ1lOz6jHk3MsNNZxpJ35C KZBg== 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=XgtoiHdZJer9GSeV3eJcC29AdO2avxwr4gNEzk+z9RXVxt1mA5rKtHI7Bm6IqDBauL LTQWTnRbVSM+aaTg3z4txjLchJ+KLzqZ0cfgY+kv4GGHJyo4STn/N7LPfdpI5hIvMfLV MVSRE6j2anqpeS/OCL365ZSzednus6agIJ+e0uxS+jDXVcrjkn0s6Ly28LxCHNaN86lm +GGx8h/gyV0yM+ZqHvAYQfHMSxJDLfBtDxM+1dGrIuMJOZGLTLHi5f/y+PLlrbA8+cvo AWrZahm5zD8+ArKDGF3x01FmfByswd+oNSGEpNiSub0QLDtGtRnsT9d1tRmKt8ij2+X+ kjlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IbrlDM6Y; 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 o6si39860890pgm.317.2019.05.02.08.42.49; Thu, 02 May 2019 08:43:05 -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=IbrlDM6Y; 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 S1728658AbfEBPkQ (ORCPT + 99 others); Thu, 2 May 2019 11:40:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:47034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728395AbfEBP3T (ORCPT ); Thu, 2 May 2019 11:29:19 -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 3662F21734; Thu, 2 May 2019 15:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556810958; bh=8jRcYPH5YkiKRc1omdlCiX2F+0bIR3kxC2mztkj37Eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IbrlDM6YUpdHzY/gOedduaWgl/+muUrbz7YLQWEWumzZf0b57xlCiUPNtiL/jb26R C9TOZPq5A1/JzxF+BokAywPCEFupLy3oph1IXtvm4VpTH5N04WGM3qYpze1C7ufYBR AKFK7UkEmIqOqWJzFpXoooetQwlgrjBNuwJ8Ajog= 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 5.0 021/101] staging: axis-fifo: add CONFIG_OF dependency Date: Thu, 2 May 2019 17:20:23 +0200 Message-Id: <20190502143341.309348600@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190502143339.434882399@linuxfoundation.org> References: <20190502143339.434882399@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