Date: Fri, 3 Sep 2004 11:13:16 +0200 (CEST)
From: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: kern/71334: [ PATCH ] mem_range_attr_{set|get} are no longer kernel-callable
Message-ID: <200409030913.i839DGBE023806@xkulesh.vol.cz>
Resent-Message-ID: <200409030920.i839KOnp097668@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 71334
>Category: kern
>Synopsis: [ PATCH ] mem_range_attr_{set|get} are no longer kernel-callable
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 03 09:20:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Dan Lukes
>Release: FreeBSD 5.3-BETA2 i386
>Organization:
Obludarium
>Environment:
System: FreeBSD 5.3-BETA2 #1: Thu Sep 2 10:07:36 CEST 2004 i386
src/sys/dev/mem/memutil.c,v 1.1 2004/08/04 18:30:31 markm
>Description:
The mem_range_attr_{set|get} functions has been moved from kernel
into separate module. After it, they are no longer avaiable for other kernel
modules
>How-To-Repeat:
Try to load any kernel-loadable module which use mem_range_attr_{set|get}
function
>Fix:
Make those functions kernel-callable again:
*** sys/dev/mem/memutil.c.ORIG Wed Aug 4 20:30:31 2004
--- sys/dev/mem/memutil.c Fri Sep 3 10:55:59 2004
***************
*** 36,42 ****
* Implementation-neutral, kernel-callable functions for manipulating
* memory range attributes.
*/
! int
mem_range_attr_get(struct mem_range_desc *mrd, int *arg)
{
/* can we handle this? */
--- 36,42 ----
* Implementation-neutral, kernel-callable functions for manipulating
* memory range attributes.
*/
! static int
mem_range_attr_get(struct mem_range_desc *mrd, int *arg)
{
/* can we handle this? */
***************
*** 51,57 ****
return (0);
}
! int
mem_range_attr_set(struct mem_range_desc *mrd, int *arg)
{
/* can we handle this? */
--- 51,57 ----
return (0);
}
! static int
mem_range_attr_set(struct mem_range_desc *mrd, int *arg)
{
/* can we handle this? */
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409030913.i839DGBE023806>
