From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 141EBC2D0C6 for ; Fri, 27 Dec 2019 17:54:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D95C7206CB for ; Fri, 27 Dec 2019 17:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577469288; bh=tNIxl4x5EyhwWirr1G7H/6k1XgznDwSrGldniwcZWT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cU8s2TzXLRCc63aYqsdvIEKQZIkICHsDkNwyFCdweKtVgsnl+Qt/28dWfgFtUWe8x pEMEO3zLRrl1IeTxESH80AkGFo+sM926m08hx3Th/w7NBo0eoCm1GD6iMGaQvrMrXP M+/u8rE6Jd+3dh6cR3HXhpI2dznevdexiOULLJvg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728374AbfL0Ryq (ORCPT ); Fri, 27 Dec 2019 12:54:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:39486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727890AbfL0Rmd (ORCPT ); Fri, 27 Dec 2019 12:42:33 -0500 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 D33C2222C3; Fri, 27 Dec 2019 17:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577468552; bh=tNIxl4x5EyhwWirr1G7H/6k1XgznDwSrGldniwcZWT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AjVmLdNEmgq6rPBNrDqKD9o6s/b8tTjF9Okz+pWy1JDCbXnib65Q+oXus0au38TZn Uploc58MSbu6xx/EBrdehCpGV27EWr/b1XnkAOsk+kJTFf/jzt9KVYKXrEw9UrPhry tBnszVb6s2IqDGq7//SaZ8+FJavvR/t+f+NF5W84= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: SeongJae Park , Kees Cook , Shuah Khan , Sasha Levin , linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 079/187] kselftest: Support old perl versions Date: Fri, 27 Dec 2019 12:39:07 -0500 Message-Id: <20191227174055.4923-79-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191227174055.4923-1-sashal@kernel.org> References: <20191227174055.4923-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: SeongJae Park [ Upstream commit 4eac734486fd431e0756cc5e929f140911a36a53 ] On an old perl such as v5.10.1, `kselftest/prefix.pl` gives below error message: Can't locate object method "autoflush" via package "IO::Handle" at kselftest/prefix.pl line 10. This commit fixes the error by explicitly specifying the use of the `IO::Handle` package. Signed-off-by: SeongJae Park Acked-by: Kees Cook Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/kselftest/prefix.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kselftest/prefix.pl b/tools/testing/selftests/kselftest/prefix.pl index ec7e48118183..31f7c2a0a8bd 100755 --- a/tools/testing/selftests/kselftest/prefix.pl +++ b/tools/testing/selftests/kselftest/prefix.pl @@ -3,6 +3,7 @@ # Prefix all lines with "# ", unbuffered. Command being piped in may need # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd". use strict; +use IO::Handle; binmode STDIN; binmode STDOUT; -- 2.20.1