From owner-freebsd-current@FreeBSD.ORG Fri May 4 21:41:08 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E610106566B for ; Fri, 4 May 2012 21:41:08 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0D6168FC15 for ; Fri, 4 May 2012 21:41:08 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so4759085pbb.13 for ; Fri, 04 May 2012 14:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=F6vzW+ruhDzgoJpCIO6fjMRrMAS0ufzWFATpmQnGr1E=; b=sVuf+NMdo1r/8oRYztY9mVh+pbiWo30nzvVFsMBAlaor4V0H/oF0G2gqrUHnPUBXHa stHQLgYRwCsK/Y0kN7sc0JWbrAysZQzDcqdQ69LMG5XonJKcFTHd7WQUOOSpdkaRpIns I8g3z+OIUkuqCCcJ0IP7vwyc7ADXosEfslFFc93B3xZDjodfQtr5f9bn+gnslpiE721E KxenjDgFgwZ+rqWJled5EB63YmkfcP9C0emM7IYtkUe5mUkc91k3TJaeybgSlhH5Nv2M 2xPACH/2++/J0hKPcY5otGBMkpA3Zc5VVrttLBTN1ZnVjrcfQRF5DiweIU4KGqcCuoip 9pNg== Received: by 10.68.225.170 with SMTP id rl10mr23025149pbc.76.1336167667813; Fri, 04 May 2012 14:41:07 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id qb2sm3377255pbb.54.2012.05.04.14.41.05 (version=SSLv3 cipher=OTHER); Fri, 04 May 2012 14:41:06 -0700 (PDT) Message-ID: <4FA44CE2.3070005@gmail.com> Date: Fri, 04 May 2012 14:40:50 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:11.0) Gecko/20120422 Thunderbird/11.0.1 MIME-Version: 1.0 To: Artem Tuchinsky References: <201205041029.24565.erichfreebsdlist@ovitrap.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Erich Dollansky , freebsd-current@freebsd.org Subject: Re: X220 and all.14.5.patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 21:41:08 -0000 On 05/03/12 22:12, Artem Tuchinsky wrote: > it's russian, not greek :) and this is my posts. Try to remove > /usr/src and checkout clean source before applying patch, it helped > me. And check FAQ, paragraphs 7 and 8 - > http://wiki.freebsd.org/Intel_GPU > > sorry for my bad english > > 2012/5/4 Erich Dollansky: >> Hi, >> >> I just applied this patch and tried to compile getting this error: >> >> /usr/src/sys/dev/drm/i915_mem.c:216: warning: no previous prototype for 'i915_mem_release' [-Wmissing-prototypes] >> /usr/src/sys/dev/drm/i915_mem.c:246: warning: no previous prototype for 'i915_mem_takedown' [-Wmissing-prototypes] >> /usr/src/sys/dev/drm/i915_mem.c: In function 'get_heap': >> /usr/src/sys/dev/drm/i915_mem.c:266: error: 'drm_i915_private_t' has no member named 'agp_heap' >> /usr/src/sys/dev/drm/i915_mem.c: At top level: >> /usr/src/sys/dev/drm/i915_mem.c:276: warning: no previous prototype for 'i915_mem_alloc' [-Wmissing-prototypes] >> /usr/src/sys/dev/drm/i915_mem.c:314: warning: no previous prototype for 'i915_mem_free' [-Wmissing-prototypes] >> /usr/src/sys/dev/drm/i915_mem.c:342: warning: no previous prototype for 'i915_mem_init_heap' [-Wmissing-prototypes] >> /usr/src/sys/dev/drm/i915_mem.c:366: warning: no previous prototype for 'i915_mem_destroy_heap' [-Wmissing-prototypes] >> *** [i915_mem.o] Error code 1 >> >> I found this: >> >> http://pastebin.com/ySPxJNUF >> >> and >> >> http://www.linux.org.ru/news/bsd/7658822/page6 >> >> which is a bit like Greek for me. >> >> It would be easy to fix the prototype errors. Does anybody know what agp_heap is all about? >> >> The machine: >> >> FreeBSD X220.ovitrap.com 10.0-CURRENT FreeBSD 10.0-CURRENT #4: Wed May 2 06:59:48 WIT 2012 erich@X220.ovitrap.com:/usr/obj/usr/src/sys/X220 amd64 >> >> Erich > > Is it possibly that the patch got applied twice? I had some errors a while back that were resulting from an inconsistent mixture of pre-patch, post-patch and double patched files...I deleted /usr/src and followed the patching instructions after doing a fresh csup. There is also (or was) some sed command that fixes some issues in the files that must not be skipped due to cvs tags. Don't forget to rm /usr/obj. Matt