From owner-svn-src-user@FreeBSD.ORG Tue Jan 13 07:17:51 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 400ADEF8; Tue, 13 Jan 2015 07:17:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2C0EF166; Tue, 13 Jan 2015 07:17:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0D7HpnU025727; Tue, 13 Jan 2015 07:17:51 GMT (envelope-from allanjude@FreeBSD.org) Received: (from allanjude@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0D7HpSO025726; Tue, 13 Jan 2015 07:17:51 GMT (envelope-from allanjude@FreeBSD.org) Message-Id: <201501130717.t0D7HpSO025726@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: allanjude set sender to allanjude@FreeBSD.org using -f From: Allan Jude Date: Tue, 13 Jan 2015 07:17:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r277109 - user/dchagin/lemul/usr.bin/kdump X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 07:17:51 -0000 Author: allanjude (doc committer) Date: Tue Jan 13 07:17:50 2015 New Revision: 277109 URL: https://svnweb.freebsd.org/changeset/base/277109 Log: Fix compile error in lemul branch (undefined reference to: nlinux32_syscalls, linux32_syscallnames) After the changes that moved the include of linux_syscalls.c inline, rather than via the Makefile, the same was not done for linux32_syscalls.c Apply the same treatment to linux32_syscallnames and nlinux32_syscalls as their 64bit counterparts got earlier Differential Revision: https://reviews.freebsd.org/D1509 Approved by: dchagin Sponsored by: ScaleEngine Inc. Modified: user/dchagin/lemul/usr.bin/kdump/kdump.c Modified: user/dchagin/lemul/usr.bin/kdump/kdump.c ============================================================================== --- user/dchagin/lemul/usr.bin/kdump/kdump.c Tue Jan 13 06:56:04 2015 (r277108) +++ user/dchagin/lemul/usr.bin/kdump/kdump.c Tue Jan 13 07:17:50 2015 (r277109) @@ -173,8 +173,10 @@ static int bsd_to_linux_errno[ELAST + 1] #endif #if defined(__amd64__) -extern char *linux32_syscallnames[]; -extern int nlinux32_syscalls; +extern const char *linux32_syscallnames[]; +#include +static int nlinux_syscalls = sizeof(linux32_syscallnames) / \ + sizeof(linux32_syscallnames[0]); #endif struct proc_info