From fanf@dotat.at  Thu Mar  1 14:16:16 2001
Return-Path: <fanf@dotat.at>
Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62])
	by hub.freebsd.org (Postfix) with ESMTP id 33C2137B719
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Mar 2001 14:16:15 -0800 (PST)
	(envelope-from fanf@dotat.at)
Received: from fanf by hand.dotat.at with local (Exim 3.20 #3)
	id 14YbMp-000OGY-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 01 Mar 2001 22:16:11 +0000
Message-Id: <E14YbMp-000OGY-00@hand.dotat.at>
Date: Thu, 01 Mar 2001 22:16:11 +0000
From: Tony Finch <dot@dotat.at>
Reply-To: Tony Finch <dot@dotat.at>
To: FreeBSD-gnats-submit@freebsd.org
Subject: -STABLE LINT broken in linux_sigreturn() in i386/linux/linux_sysvec.c
X-Send-Pr-Version: 3.2

>Number:         25483
>Category:       i386
>Synopsis:       -STABLE LINT broken in linux_sigreturn() in i386/linux/linux_sysvec.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 01 14:20:01 PST 2001
>Closed-Date:    Thu Mar 1 19:21:32 PST 2001
>Last-Modified:  Thu Mar 01 19:23:10 PST 2001
>Originator:     Tony Finch <dot@dotat.at>
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Covalent Technologies, Inc.
>Environment:

FreeBSD hand.dotat.at 4.2-STABLE FreeBSD 4.2-STABLE #4: Wed Feb 21 00:26:12 GMT 2001     fanf@hand.dotat.at:/FreeBSD/obj/FreeBSD/releng4/sys/DELL-Latitude-CSx  i386

sources cvsupped Thu Mar 1 06:26:24 GMT 2001

>Description:

When compiling -STABLE LINT it fails as follows

cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer
-arith -Winline -Wcast-qual  -fformat-extensions -ansi -g -nostdinc -I- -I. -I/FreeBSD/releng4/sys -I/FreeB
SD/releng4/sys/../include  -D_KERNEL -include opt_global.h -elf -fno-builtin -mpreferred-stack-boundary=2  
/FreeBSD/releng4/sys/i386/linux/linux_sysvec.c
/FreeBSD/releng4/sys/i386/linux/linux_sysvec.c: In function `linux_sigreturn':
/FreeBSD/releng4/sys/i386/linux/linux_sysvec.c:482: structure has no member named `scp'
*** Error code 1

Stop in /FreeBSD/obj/FreeBSD/releng4/sys/LINT.
*** Error code 1

Stop in /FreeBSD/releng4.
*** Error code 1

Stop in /FreeBSD/releng4.


>How-To-Repeat:


>Fix:


Index: linux_sysvec.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/linux/linux_sysvec.c,v
retrieving revision 1.55.2.5
diff -u -r1.55.2.5 linux_sysvec.c
--- linux_sysvec.c	2001/02/22 05:15:02	1.55.2.5
+++ linux_sysvec.c	2001/03/01 21:59:34
@@ -479,7 +479,7 @@
 
 #ifdef DEBUG
 	printf("Linux-emul(%ld): linux_sigreturn(%p)\n",
-	    (long)p->p_pid, (void *)args->scp);
+	    (long)p->p_pid, (void *)args->sfp);
 #endif
 	/*
 	 * The trampoline code hands us the sigframe.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gallatin 
State-Changed-When: Thu Mar 1 19:21:32 PST 2001 
State-Changed-Why:  
The submitted patch was comitted to fix the problem.  It had already 
been fixed in -current (with the same patch). 


http://www.freebsd.org/cgi/query-pr.cgi?pr=25483 
>Unformatted:
I just committed the fix for this (1.55.2).  Thanks for pointing it out.


