From patchwork Tue May 9 04:56:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schwarzott X-Patchwork-Id: 9717037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 49CBE60364 for ; Tue, 9 May 2017 04:56:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D384204BA for ; Tue, 9 May 2017 04:56:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30382282E8; Tue, 9 May 2017 04:56:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE42D204BA for ; Tue, 9 May 2017 04:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754152AbdEIE4b (ORCPT ); Tue, 9 May 2017 00:56:31 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:47736 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbdEIE4a (ORCPT ); Tue, 9 May 2017 00:56:30 -0400 Received: from [IPv6:2001:a62:204:ce01:831:5fee:13cd:5b2f] (unknown [IPv6:2001:a62:204:ce01:831:5fee:13cd:5b2f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zzam) by smtp.gentoo.org (Postfix) with ESMTPSA id 3CDFC3416F6; Tue, 9 May 2017 04:56:28 +0000 (UTC) To: Linux Media Mailing List , Hans Verkuil From: Matthias Schwarzott Subject: Unknown symbol put_vaddr_frames when using media_build Message-ID: <6ea4c402-9523-2345-9dd3-0fb041f07f27@gentoo.org> Date: Tue, 9 May 2017 06:56:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 Content-Language: en-GB Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi! Whenever I compile the media drivers using media_build against a recent kernel, I get this message when loading them: [ 5.848537] media: Linux media interface: v0.10 [ 5.881440] Linux video capture interface: v2.00 [ 5.881441] WARNING: You are using an experimental version of the media stack. ... [ 6.166390] videobuf2_memops: Unknown symbol put_vaddr_frames (err 0) [ 6.166394] videobuf2_memops: Unknown symbol get_vaddr_frames (err 0) [ 6.166396] videobuf2_memops: Unknown symbol frame_vector_destroy (err 0) [ 6.166398] videobuf2_memops: Unknown symbol frame_vector_create (err 0) That means I am not able to load any drivers being based on videobuf2_memops without manual actions. I used kernel 4.11.0, but it does not matter which kernel version exactly is used. My solution for that has been to modify mm/Kconfig of my kernel like this and then enable FRAME_VECTOR in .config But I do not like that solution. I would prefer one of these solutions: 1. Have media_build apply its fallback the same way as for older kernels that do not even have the the FRAME_VECTOR support. 2. Get the above patch merged (plus description etc.). What do you think? Regards Matthias diff --git a/mm/Kconfig b/mm/Kconfig index 9b8fccb969dc..cfa6a80d1a0a 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -701,7 +701,7 @@ config ZONE_DEVICE If FS_DAX is enabled, then say Y. config FRAME_VECTOR - bool + tristate "frame vector" config ARCH_USES_HIGH_VMA_FLAGS bool