Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5475467ybl; Tue, 10 Dec 2019 06:41:27 -0800 (PST) X-Google-Smtp-Source: APXvYqz6E5uI207OcMy/n1R1UF8UBtYLzYBzTsN/yVB+0vbt+x+3pC0pQtbp0taiZC9PiO34Pgjj X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr26686680otq.156.1575988887396; Tue, 10 Dec 2019 06:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575988887; cv=none; d=google.com; s=arc-20160816; b=bUJc9rzUyAyNScJ7rK0b5Zak1fhL4/CyUf15U54a/DztTQwaOzyM2Wqt0S9OBG30ka jkpTdJMmNVfHaZODfYaIh1zUov6lpXRbJ++S+JIBsZ0CRNH1MkEelnVnHvVNt9IpcS+S goYk1VI3c8Tapi8COy3Ubit6/prJ53dyZqXuQYVeZcY4s6+YjVSEMrIT2x0Pljn8qYcD Y67aCWUqpISiAJ5AmCG6iB20FOJtKMs2yLFke6c3rUGu6ai+rGihjeDGw63VA5QY+pCH qhmrJv6FfH+MhlAhHRJYrII8gXGp6BFDXj8CV8MTemKPFJLGrhlx732Shbqo6q/bXFmU C8ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-signature; bh=QyRY1SH/TcZCYCqQzwGfCLBox8YaWx+EjaKhewFMq/s=; b=hmb7TcgkGjOcF4K2aKIXVIKw/Qxkb4gFRdoLNk8B855k2SEYe7i7/QLTDqQsZl+llj spnlnciapU7BA9WaEhSnPwqq4zylrEKZofGG1WcyOo2vZgnefclh8D1/3inAB4Bo0boG 1iwIB53yTC2vxSQZ6osN9zmMndNYyYT45VVRXROMIJDt+rpw0e/LWDtKvJmKogMFf4Tj GU/Mo4AXDx7z7A8tXevaYKbRizplgFYrlIHiTSlFZtaZQ1qPcuOLdC2zslXuBbcpiYF3 TdKE0HZQiwQm5bElXIJwfIx778NVqtg/HkFwNDQEz62bnlCLrsJeEZcJWQhqt9oQqhYK ICzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm1 header.b=lpHjPuP+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MNiyCRZa; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 k130si1648625oih.135.2019.12.10.06.41.12; Tue, 10 Dec 2019 06:41:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@alyssa.is header.s=fm1 header.b=lpHjPuP+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MNiyCRZa; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727380AbfLJOlJ (ORCPT + 99 others); Tue, 10 Dec 2019 09:41:09 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:37705 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbfLJOlJ (ORCPT ); Tue, 10 Dec 2019 09:41:09 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6954322480; Tue, 10 Dec 2019 09:41:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 10 Dec 2019 09:41:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:cc:subject:date:message-id:mime-version:content-type; s= fm1; bh=QyRY1SH/TcZCYCqQzwGfCLBox8YaWx+EjaKhewFMq/s=; b=lpHjPuP+ sElkQXi6GriJD0Oooj/CgBCmct25KCYWjWwpWmon6OBdR68ouEPaITKLQl8SOdZD 52StJ5Wdc7/1GuLcvldMlcw6prrfVYTRA42q5kItSP3ljMUFN/WP5ArEWJJYp7iD pt3Jvp+dlZrzyjVDIDFBD0v53PzwlutNW6c27m9k7j+2xOUMqMOsgZf4wryMmCSU +Ke/sGSnlSHo+aSF2NcwoEy7Fep6MsGlH/Tub45rc+aNnqZ6UOlf6yHUaiYFNXtp S3u3W5J/aUNqu1fxwDlaCrY2KDRfs+//yHCdsSOeF4juz8Pz+6rMhLbdFPkzXRM4 r8a9G38O8ZEjfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=QyRY1SH/TcZCYCqQzwGfCLBox8YaW x+EjaKhewFMq/s=; b=MNiyCRZaJ7w+0JHZW8F+zPkUKzRyGOHMrbod3X5SiZYKs wA5Xj+PA2v4uXsvWEorNrvj82MHBXbDdwNgEflQh7YGJUHDT5shfqTRtfIVsYE0n /b4rQgTI2u8TzW27e18UUMcDAC+HMhk2OjvZ9bfjOPHjHfnMSUoPQ6OrQFX1Z1U6 m84GKDV7kSOm3OQqCdkpk1bOpW+VYcxemxhgAv+K7/WwXavHI/1Ye8q9nSgQbt7M kk0Ia3th8kTWOi27ng1zc4Xj56SPK0r/0a3udLJB81VUm5GxBpK6BiySl8CkY3Yb n10bhvBfR+L8luCuvMmXKeopQnwrjRqU2XnQLODvg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelfedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfggtgesthdtredttddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecukfhppeejledrvdefhedruddvfedrud ehfeenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrihhsnecuvehl uhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from x220.qyliss.net (p4feb7b99.dip0.t-ipconnect.de [79.235.123.153]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E1018005C; Tue, 10 Dec 2019 09:41:07 -0500 (EST) Received: by x220.qyliss.net (Postfix, from userid 1000) id 33C301455C4; Tue, 10 Dec 2019 14:41:04 +0000 (UTC) From: Alyssa Ross To: linux-kernel@vger.kernel.org Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-crypto@vger.kernel.org, "Michael S. Tsirkin" , Jason Wang , virtualization@lists.linux-foundation.org Subject: Bogus dependency for HW_RANDOM_VIRTIO with oldconfig Date: Tue, 10 Dec 2019 14:41:04 +0000 Message-ID: <87wob4tf9b.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org I'm new here and not sure if I'm contacting the correct people/groups -- please point me in the right direction if not. I don't know if the culprit here is Kconfig, the virtio Kconfig file, the hw_random Kconfig file, or some combination of those. I believe I have discovered an issue with the order in which make oldconfig asks for virtio-related options, and would appreciate some advice on how to solve it: HW_RANDOM_VIRTIO=y depends on VIRTIO=y. In my kernel, VIRTIO=y is selected by VIRITO_PCI=y, but when make oldconfig prompts for HW_RANDOM_VIRTIO, VIRTIO_PCI has not been prompted for yet, and so VIRTIO is still set to m. This means that it's not possible for me to set HW_RANDOM_VIRTIO=y using oldconfig without setting an VIRTIO-selecting option I don't need, but that is prompted for _before_ HW_RANDOM_VIRTIO. One such option that I have identified so far is VOP. It is prompted for before HW_RANDOM_VIRTIO, and so if I set VOP=y it is now possible to set HW_RANDOM_VIRTIO. When using menuconfig on a config file generated with oldconfig, that does not have HW_RANDOM_VIRTIO enabled, I am able to set HW_RANDOM=y and HW_RANDOM_VIRTIO=y, and after saving I can confirm that no other changes have been made to the configuration file. This tells me that there's no need for a dependency on e.g. VOP, except when using oldconfig. So, I think there is an ordering issue here, and that oldconfig should not prompt for HW_RANDOM_VIRTIO until after any option that might select VIRTIO=y. I would be happy to try to submit or test a patch to fix this, but I don't know where to go from here.