Received: by 10.223.185.116 with SMTP id b49csp1421803wrg; Fri, 23 Feb 2018 18:51:14 -0800 (PST) X-Google-Smtp-Source: AH8x225JDoqbswP3/feJQXp0U7CE0dW+xq/0IgzvgcXqe4WAxOo2zIvFKwo1xJbwTGV9BYp+bCYp X-Received: by 10.98.8.92 with SMTP id c89mr3648030pfd.154.1519440674301; Fri, 23 Feb 2018 18:51:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519440674; cv=none; d=google.com; s=arc-20160816; b=s9QAO8kExuAkQQ3Y1uICEbD95cu7K77k+xRUOstry0EOZWy43b9CsFq/YW+ckZpdd+ uUhI9oxVsDiyTV5PsgMes6jZnyElW4eVcD3/A7SuItfrGxaRTq6c+3Rard8aZCyLCZK9 /4hkF28YoNNwJzpUEbWwxIMX1EG5jPZjmU7EfHEmpFtPAtVfQUHYdpp6l0RZDS4XGOas +N3OLPf01GbwJC6056GF08kzj2BUvAc6NscOJ3EooWzRYqc7tgsBONZTiHWZVXLhZc1X h4Mq3MykTLPClNhe2Bk42vh3rrKOkBq9lvqcwrNMRKF5kSruUGpXbKekc6b5i8lgWSpn J/IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:arc-authentication-results; bh=A8xeqACFuBD4wdCipn59StcUHx5aI1qZmDwYTnPJNW8=; b=E8lKaJiK0VjyZYYXjv91eRmm3dRX/hF60IhdBkykVSOJpJtE4WcGKnqQPf4/mfhgb8 TChLYJrG8ZBpDeyn1Pedx/kKbuOPs+2Bzty6n3s75h3iwRi/uos9EVOZZYvWNzc8Rvjp z0S0VAgEf51J/lB6wEZIR4c/vmH0HfeGcnqcNqboWT1nD1O7k6xU7UevrHYL+RJ5rvOb Yf0uuypzPfoYK3L3EEbnZvrHpdRrrJLzXHer4eQbFPBtZ+6TER9ikY2UkJWAPwLoBCrc 8eEPnWj2F7M0yVDNpjvp/nffNVUYRU+HkMqFfzrbtgk5IYhDsNHdsymPXR1zThFvF+/l ZX6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 p12-v6si2889349pll.191.2018.02.23.18.51.00; Fri, 23 Feb 2018 18:51:14 -0800 (PST) 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; 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 S1752849AbeBXCqV (ORCPT + 99 others); Fri, 23 Feb 2018 21:46:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:48496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752826AbeBXCqT (ORCPT ); Fri, 23 Feb 2018 21:46:19 -0500 Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (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 95A38217B6; Sat, 24 Feb 2018 02:46:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 95A38217B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mcgrof@kernel.org From: "Luis R. Rodriguez" To: gregkh@linuxfoundation.org Cc: akpm@linux-foundation.org, keescook@chromium.org, shuah@kernel.org, mfuzzey@parkeon.com, zohar@linux.vnet.ibm.com, dhowells@redhat.com, pali.rohar@gmail.com, tiwai@suse.de, arend.vanspriel@broadcom.com, zajec5@gmail.com, nbroeking@me.com, markivx@codeaurora.org, stephen.boyd@linaro.org, broonie@kernel.org, dmitry.torokhov@gmail.com, dwmw2@infradead.org, torvalds@linux-foundation.org, Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH v2 02/11] test_firmware: replace syfs fallback check with kconfig_has helper Date: Fri, 23 Feb 2018 18:46:04 -0800 Message-Id: <20180224024613.24078-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20180224024613.24078-1-mcgrof@kernel.org> References: <20180224024613.24078-1-mcgrof@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a kconfig checker just use that instead of relying on testing a sysfs directory being present, since our requirements are spelled out. Signed-off-by: Luis R. Rodriguez --- tools/testing/selftests/firmware/fw_fallback.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/testing/selftests/firmware/fw_fallback.sh b/tools/testing/selftests/firmware/fw_fallback.sh index a42e437363d9..40b6c1d3e832 100755 --- a/tools/testing/selftests/firmware/fw_fallback.sh +++ b/tools/testing/selftests/firmware/fw_fallback.sh @@ -49,10 +49,7 @@ kconfig_has() DIR=/sys/devices/virtual/misc/test_firmware -# CONFIG_FW_LOADER_USER_HELPER has a sysfs class under /sys/class/firmware/ -# These days no one enables CONFIG_FW_LOADER_USER_HELPER so check for that -# as an indicator for CONFIG_FW_LOADER_USER_HELPER. -HAS_FW_LOADER_USER_HELPER=$(if [ -d /sys/class/firmware/ ]; then echo yes; else echo no; fi) +HAS_FW_LOADER_USER_HELPER=$(kconfig_has CONFIG_FW_LOADER_USER_HELPER=y) HAS_FW_LOADER_USER_HELPER_FALLBACK=$(kconfig_has CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y) if [ "$HAS_FW_LOADER_USER_HELPER" = "yes" ]; then -- 2.16.2