Date: Sun, 8 May 2016 09:02:52 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r299230 - in stable/10/sys: dev/firewire i386/bios sys Message-ID: <201605080902.u4892qZj064879@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun May 8 09:02:51 2016 New Revision: 299230 URL: https://svnweb.freebsd.org/changeset/base/299230 Log: MFC r298890: Make it explicit that D_MEM cdevsw d_flag is to signify that the driver is (or behaves identically to) /dev/mem. Remove the D_MEM flag from random drivers. Modified: stable/10/sys/dev/firewire/fwdev.c stable/10/sys/i386/bios/smapi.c stable/10/sys/sys/conf.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/firewire/fwdev.c ============================================================================== --- stable/10/sys/dev/firewire/fwdev.c Sun May 8 09:01:30 2016 (r299229) +++ stable/10/sys/dev/firewire/fwdev.c Sun May 8 09:02:51 2016 (r299230) @@ -98,7 +98,6 @@ struct cdevsw firewire_cdevsw = { .d_mmap = fw_mmap, .d_strategy = fw_strategy, .d_name = "fw", - .d_flags = D_MEM #else #define CDEV_MAJOR 127 fw_open, fw_close, fw_read, fw_write, fw_ioctl, Modified: stable/10/sys/i386/bios/smapi.c ============================================================================== --- stable/10/sys/i386/bios/smapi.c Sun May 8 09:01:30 2016 (r299229) +++ stable/10/sys/i386/bios/smapi.c Sun May 8 09:02:51 2016 (r299230) @@ -80,7 +80,7 @@ static struct cdevsw smapi_cdevsw = { .d_version = D_VERSION, .d_ioctl = smapi_ioctl, .d_name = "smapi", - .d_flags = D_MEM | D_NEEDGIANT, + .d_flags = D_NEEDGIANT, }; static void smapi_identify(driver_t *, device_t); Modified: stable/10/sys/sys/conf.h ============================================================================== --- stable/10/sys/sys/conf.h Sun May 8 09:01:30 2016 (r299229) +++ stable/10/sys/sys/conf.h Sun May 8 09:02:51 2016 (r299230) @@ -156,7 +156,7 @@ typedef int dumper_t( #define D_TAPE 0x0001 #define D_DISK 0x0002 #define D_TTY 0x0004 -#define D_MEM 0x0008 +#define D_MEM 0x0008 /* /dev/(k)mem */ #ifdef _KERNEL
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605080902.u4892qZj064879>