From owner-svn-ports-all@freebsd.org Sun Dec 8 17:52:43 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 439F51EC5B7; Sun, 8 Dec 2019 17:52:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47WDSC18nbz3CHH; Sun, 8 Dec 2019 17:52:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 22F5F5F7E; Sun, 8 Dec 2019 17:52:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xB8Hqglv025653; Sun, 8 Dec 2019 17:52:42 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xB8Hqg0M025652; Sun, 8 Dec 2019 17:52:42 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201912081752.xB8Hqg0M025652@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 8 Dec 2019 17:52:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r519570 - head/lang/compute-runtime/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/lang/compute-runtime/files X-SVN-Commit-Revision: 519570 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2019 17:52:43 -0000 Author: jbeich Date: Sun Dec 8 17:52:42 2019 New Revision: 519570 URL: https://svnweb.freebsd.org/changeset/ports/519570 Log: lang/compute-runtime: untabify and silence -Wformat-security in the port's patch In file included from runtime/os_interface/linux/drm_memory_manager.cpp:8: In file included from runtime/os_interface/linux/drm_memory_manager.h:9: In file included from runtime/memory_manager/memory_manager.h:11: In file included from core/helpers/aligned_memory.h:11: runtime/os_interface/debug_settings_manager.h:35:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(std::forward(args)...); ^~~~~~~~~~~~~~~~~~~~~~~~ runtime/os_interface/linux/drm_memory_manager.cpp:148:21: note: in instantiation of function template specialization 'NEO::printDebugString<__sFILE *&, char const (&)[80]>' requested here printDebugString(true, stderr, "ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stability.\n"); ^ runtime/os_interface/debug_settings_manager.h:35:17: note: treat the string as an argument to avoid this fprintf(std::forward(args)...); ^ "%s", Modified: head/lang/compute-runtime/files/patch-userptr (contents, props changed) Modified: head/lang/compute-runtime/files/patch-userptr ============================================================================== --- head/lang/compute-runtime/files/patch-userptr Sun Dec 8 17:52:36 2019 (r519569) +++ head/lang/compute-runtime/files/patch-userptr Sun Dec 8 17:52:42 2019 (r519570) @@ -49,13 +49,13 @@ frame #5: 0x000000080104b4e5 libigdrcl.so`NEO::DrmMemo + userptr.flags = I915_USERPTR_UNSYNCHRONIZED; + if (this->drm->ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { + if (geteuid() != 0) { -+ printDebugString(true, stderr, "ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stability.\n"); ++ printDebugString(true, stderr, "%s", "ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stability.\n"); + } + return nullptr; + } + } else { -+ return nullptr; -+ } ++ return nullptr; ++ } } auto res = new (std::nothrow) BufferObject(this->drm, userptr.handle, rootDeviceIndex);