From owner-svn-src-stable-10@freebsd.org Sun May 8 09:02:53 2016 Return-Path: Delivered-To: svn-src-stable-10@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 624E9B3197B; Sun, 8 May 2016 09:02:53 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 1996A10C7; Sun, 8 May 2016 09:02:53 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4892qN0064882; Sun, 8 May 2016 09:02:52 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4892qZj064879; Sun, 8 May 2016 09:02:52 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201605080902.u4892qZj064879@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Sun, 8 May 2016 09:02:52 +0000 (UTC) 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 X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2016 09:02:53 -0000 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