Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b9e8bb61
Commit
b9e8bb61
authored
Sep 04, 2003
by
Alexander Viro
Committed by
Linus Torvalds
Sep 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] large dev_t - second series (1/15)
misc trivial cleanups
parent
fd7c9d21
Changes
34
Show whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
23 additions
and
135 deletions
+23
-135
arch/ia64/sn/io/hwgfs/ramfs.c
arch/ia64/sn/io/hwgfs/ramfs.c
+1
-2
arch/m68k/atari/stram.c
arch/m68k/atari/stram.c
+0
-6
arch/ppc/platforms/pmac_setup.c
arch/ppc/platforms/pmac_setup.c
+1
-1
arch/um/drivers/ubd_kern.c
arch/um/drivers/ubd_kern.c
+0
-3
drivers/base/map.c
drivers/base/map.c
+0
-5
drivers/block/DAC960.h
drivers/block/DAC960.h
+0
-32
drivers/char/drm/drmP.h
drivers/char/drm/drmP.h
+0
-4
drivers/char/rocket.c
drivers/char/rocket.c
+7
-23
drivers/char/tipar.c
drivers/char/tipar.c
+0
-1
drivers/char/tty_io.c
drivers/char/tty_io.c
+5
-9
drivers/ieee1394/ieee1394_types.h
drivers/ieee1394/ieee1394_types.h
+0
-4
drivers/md/dm-ioctl-v1.c
drivers/md/dm-ioctl-v1.c
+1
-1
drivers/md/dm-ioctl-v4.c
drivers/md/dm-ioctl-v4.c
+1
-1
drivers/md/linear.c
drivers/md/linear.c
+0
-1
drivers/md/md.c
drivers/md/md.c
+0
-1
drivers/md/multipath.c
drivers/md/multipath.c
+0
-1
drivers/md/raid0.c
drivers/md/raid0.c
+0
-1
drivers/md/raid1.c
drivers/md/raid1.c
+0
-1
drivers/media/video/videodev.c
drivers/media/video/videodev.c
+1
-1
drivers/media/video/zoran_driver.c
drivers/media/video/zoran_driver.c
+1
-1
drivers/s390/char/tubio.h
drivers/s390/char/tubio.h
+0
-18
drivers/usb/core/inode.c
drivers/usb/core/inode.c
+0
-1
fs/afs/inode.c
fs/afs/inode.c
+0
-1
fs/autofs4/inode.c
fs/autofs4/inode.c
+0
-1
fs/devfs/base.c
fs/devfs/base.c
+2
-3
fs/hfs/inode.c
fs/hfs/inode.c
+0
-1
fs/hugetlbfs/inode.c
fs/hugetlbfs/inode.c
+0
-1
fs/jffs/inode-v23.c
fs/jffs/inode-v23.c
+0
-1
fs/jffs2/fs.c
fs/jffs2/fs.c
+1
-1
fs/ncpfs/inode.c
fs/ncpfs/inode.c
+0
-1
fs/ramfs/inode.c
fs/ramfs/inode.c
+0
-1
fs/romfs/inode.c
fs/romfs/inode.c
+2
-4
fs/sysfs/inode.c
fs/sysfs/inode.c
+0
-1
mm/shmem.c
mm/shmem.c
+0
-1
No files found.
arch/ia64/sn/io/hwgfs/ramfs.c
View file @
b9e8bb61
...
@@ -56,7 +56,7 @@ static struct backing_dev_info hwgfs_backing_dev_info = {
...
@@ -56,7 +56,7 @@ static struct backing_dev_info hwgfs_backing_dev_info = {
.
memory_backed
=
1
,
/* Does not contribute to dirty memory */
.
memory_backed
=
1
,
/* Does not contribute to dirty memory */
};
};
struct
inode
*
hwgfs_get_inode
(
struct
super_block
*
sb
,
int
mode
,
dev_t
dev
)
st
atic
st
ruct
inode
*
hwgfs_get_inode
(
struct
super_block
*
sb
,
int
mode
,
dev_t
dev
)
{
{
struct
inode
*
inode
=
new_inode
(
sb
);
struct
inode
*
inode
=
new_inode
(
sb
);
...
@@ -66,7 +66,6 @@ struct inode *hwgfs_get_inode(struct super_block *sb, int mode, dev_t dev)
...
@@ -66,7 +66,6 @@ struct inode *hwgfs_get_inode(struct super_block *sb, int mode, dev_t dev)
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_mapping
->
a_ops
=
&
hwgfs_aops
;
inode
->
i_mapping
->
a_ops
=
&
hwgfs_aops
;
inode
->
i_mapping
->
backing_dev_info
=
&
hwgfs_backing_dev_info
;
inode
->
i_mapping
->
backing_dev_info
=
&
hwgfs_backing_dev_info
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
...
...
arch/m68k/atari/stram.c
View file @
b9e8bb61
...
@@ -34,12 +34,6 @@
...
@@ -34,12 +34,6 @@
#include <linux/swapops.h>
#include <linux/swapops.h>
#ifdef CONFIG_STRAM_SWAP
#define MAJOR_NR Z2RAM_MAJOR
#define do_z2_request do_stram_request
#define DEVICE_NR(device) (minor(device))
#endif
#undef DEBUG
#undef DEBUG
#ifdef DEBUG
#ifdef DEBUG
...
...
arch/ppc/platforms/pmac_setup.c
View file @
b9e8bb61
...
@@ -399,7 +399,7 @@ note_scsi_host(struct device_node *node, void *host)
...
@@ -399,7 +399,7 @@ note_scsi_host(struct device_node *node, void *host)
#endif
#endif
#if defined(CONFIG_BLK_DEV_IDE) && defined(CONFIG_BLK_DEV_IDE_PMAC)
#if defined(CONFIG_BLK_DEV_IDE) && defined(CONFIG_BLK_DEV_IDE_PMAC)
dev_t
__init
static
dev_t
__init
find_ide_boot
(
void
)
find_ide_boot
(
void
)
{
{
char
*
p
;
char
*
p
;
...
...
arch/um/drivers/ubd_kern.c
View file @
b9e8bb61
...
@@ -55,9 +55,6 @@ static int ubd_ioctl(struct inode * inode, struct file * file,
...
@@ -55,9 +55,6 @@ static int ubd_ioctl(struct inode * inode, struct file * file,
unsigned
int
cmd
,
unsigned
long
arg
);
unsigned
int
cmd
,
unsigned
long
arg
);
#define MAX_DEV (8)
#define MAX_DEV (8)
#define MAX_MINOR (MAX_DEV << UBD_SHIFT)
#define DEVICE_NR(n) (minor(n) >> UBD_SHIFT)
static
struct
block_device_operations
ubd_blops
=
{
static
struct
block_device_operations
ubd_blops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
...
...
drivers/base/map.c
View file @
b9e8bb61
...
@@ -28,11 +28,6 @@ struct kobj_map {
...
@@ -28,11 +28,6 @@ struct kobj_map {
struct
rw_semaphore
*
sem
;
struct
rw_semaphore
*
sem
;
};
};
static
inline
int
dev_to_index
(
dev_t
dev
)
{
return
MAJOR
(
dev
)
%
255
;
}
int
kobj_map
(
struct
kobj_map
*
domain
,
dev_t
dev
,
unsigned
long
range
,
int
kobj_map
(
struct
kobj_map
*
domain
,
dev_t
dev
,
unsigned
long
range
,
struct
module
*
module
,
kobj_probe_t
*
probe
,
struct
module
*
module
,
kobj_probe_t
*
probe
,
int
(
*
lock
)(
dev_t
,
void
*
),
void
*
data
)
int
(
*
lock
)(
dev_t
,
void
*
),
void
*
data
)
...
...
drivers/block/DAC960.h
View file @
b9e8bb61
...
@@ -2063,38 +2063,6 @@ extern int DAC960_KernelIOCTL(unsigned int Request, void *Argument);
...
@@ -2063,38 +2063,6 @@ extern int DAC960_KernelIOCTL(unsigned int Request, void *Argument);
#define DAC960_MaxPartitions 8
#define DAC960_MaxPartitions 8
#define DAC960_MaxPartitionsBits 3
#define DAC960_MaxPartitionsBits 3
/*
Define macros to extract the Controller Number, Logical Drive Number, and
Partition Number from a Kernel Device, and to construct a Major Number, Minor
Number, and Kernel Device from the Controller Number, Logical Drive Number,
and Partition Number. There is one Major Number assigned to each Controller.
The associated Minor Number is divided into the Logical Drive Number and
Partition Number.
*/
#define DAC960_ControllerNumber(Device) \
(major(Device) - DAC960_MAJOR)
#define DAC960_LogicalDriveNumber(Device) \
(minor(Device) >> DAC960_MaxPartitionsBits)
#define DAC960_MajorNumber(ControllerNumber) \
(DAC960_MAJOR + (ControllerNumber))
#define DAC960_MinorNumber(LogicalDriveNumber, PartitionNumber) \
(((LogicalDriveNumber) << DAC960_MaxPartitionsBits) | (PartitionNumber))
#define DAC960_MinorCount (DAC960_MaxLogicalDrives \
* DAC960_MaxPartitions)
#define DAC960_KernelDevice(ControllerNumber, \
LogicalDriveNumber, \
PartitionNumber) \
mk_kdev(DAC960_MajorNumber(ControllerNumber), \
DAC960_MinorNumber(LogicalDriveNumber, PartitionNumber))
/*
/*
Define the DAC960 Controller fixed Block Size and Block Size Bits.
Define the DAC960 Controller fixed Block Size and Block Size Bits.
*/
*/
...
...
drivers/char/drm/drmP.h
View file @
b9e8bb61
...
@@ -158,10 +158,6 @@
...
@@ -158,10 +158,6 @@
/** \name Backward compatibility section */
/** \name Backward compatibility section */
/*@{*/
/*@{*/
#ifndef minor
#define minor(x) MINOR((x))
#endif
#ifndef MODULE_LICENSE
#ifndef MODULE_LICENSE
#define MODULE_LICENSE(x)
#define MODULE_LICENSE(x)
#endif
#endif
...
...
drivers/char/rocket.c
View file @
b9e8bb61
...
@@ -1460,17 +1460,6 @@ static int rp_ioctl(struct tty_struct *tty, struct file *file,
...
@@ -1460,17 +1460,6 @@ static int rp_ioctl(struct tty_struct *tty, struct file *file,
return
0
;
return
0
;
}
}
#if (defined(ROCKET_DEBUG_FLOW) || defined(ROCKET_DEBUG_THROTTLE))
static
char
*
rp_tty_name
(
struct
tty_struct
*
tty
,
char
*
buf
)
{
if
(
tty
)
sprintf
(
buf
,
"%s%d"
,
TTY_DRIVER_NAME
(
tty
),
MINOR
(
tty
->
device
)
-
TTY_DRIVER_MINOR_START
(
tty
)
+
TTY_DRIVER_NAME_BASE
);
else
strcpy
(
buf
,
"NULL tty"
);
return
buf
;
}
#endif
static
void
rp_send_xchar
(
struct
tty_struct
*
tty
,
char
ch
)
static
void
rp_send_xchar
(
struct
tty_struct
*
tty
,
char
ch
)
{
{
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
...
@@ -1490,10 +1479,9 @@ static void rp_throttle(struct tty_struct *tty)
...
@@ -1490,10 +1479,9 @@ static void rp_throttle(struct tty_struct *tty)
{
{
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
CHANNEL_t
*
cp
;
CHANNEL_t
*
cp
;
#ifdef ROCKET_DEBUG_THROTTLE
char
buf
[
64
];
printk
(
KERN_INFO
"throttle %s: %d....
\n
"
,
rp_tty_name
(
tty
,
buf
),
#ifdef ROCKET_DEBUG_THROTTLE
printk
(
KERN_INFO
"throttle %s: %d....
\n
"
,
tty
->
name
,
tty
->
ldisc
.
chars_in_buffer
(
tty
));
tty
->
ldisc
.
chars_in_buffer
(
tty
));
#endif
#endif
...
@@ -1512,9 +1500,7 @@ static void rp_unthrottle(struct tty_struct *tty)
...
@@ -1512,9 +1500,7 @@ static void rp_unthrottle(struct tty_struct *tty)
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
CHANNEL_t
*
cp
;
CHANNEL_t
*
cp
;
#ifdef ROCKET_DEBUG_THROTTLE
#ifdef ROCKET_DEBUG_THROTTLE
char
buf
[
64
];
printk
(
KERN_INFO
"unthrottle %s: %d....
\n
"
,
tty
->
name
,
printk
(
KERN_INFO
"unthrottle %s: %d....
\n
"
,
rp_tty_name
(
tty
,
buf
),
tty
->
ldisc
.
chars_in_buffer
(
tty
));
tty
->
ldisc
.
chars_in_buffer
(
tty
));
#endif
#endif
...
@@ -1539,10 +1525,9 @@ static void rp_unthrottle(struct tty_struct *tty)
...
@@ -1539,10 +1525,9 @@ static void rp_unthrottle(struct tty_struct *tty)
static
void
rp_stop
(
struct
tty_struct
*
tty
)
static
void
rp_stop
(
struct
tty_struct
*
tty
)
{
{
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
#ifdef ROCKET_DEBUG_FLOW
char
buf
[
64
];
printk
(
KERN_INFO
"stop %s: %d %d....
\n
"
,
rp_tty_name
(
tty
,
buf
),
#ifdef ROCKET_DEBUG_FLOW
printk
(
KERN_INFO
"stop %s: %d %d....
\n
"
,
tty
->
name
,
info
->
xmit_cnt
,
info
->
xmit_fifo_room
);
info
->
xmit_cnt
,
info
->
xmit_fifo_room
);
#endif
#endif
...
@@ -1556,10 +1541,9 @@ static void rp_stop(struct tty_struct *tty)
...
@@ -1556,10 +1541,9 @@ static void rp_stop(struct tty_struct *tty)
static
void
rp_start
(
struct
tty_struct
*
tty
)
static
void
rp_start
(
struct
tty_struct
*
tty
)
{
{
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
struct
r_port
*
info
=
(
struct
r_port
*
)
tty
->
driver_data
;
#ifdef ROCKET_DEBUG_FLOW
char
buf
[
64
];
printk
(
KERN_INFO
"start %s: %d %d....
\n
"
,
rp_tty_name
(
tty
,
buf
),
#ifdef ROCKET_DEBUG_FLOW
printk
(
KERN_INFO
"start %s: %d %d....
\n
"
,
tty
->
name
,
info
->
xmit_cnt
,
info
->
xmit_fifo_room
);
info
->
xmit_cnt
,
info
->
xmit_fifo_room
);
#endif
#endif
...
...
drivers/char/tipar.c
View file @
b9e8bb61
...
@@ -74,7 +74,6 @@
...
@@ -74,7 +74,6 @@
#define VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))
#define VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))
#if LINUX_VERSION_CODE < VERSION(2,5,0)
#if LINUX_VERSION_CODE < VERSION(2,5,0)
# define minor(x) MINOR(x)
# define need_resched() (current->need_resched)
# define need_resched() (current->need_resched)
#endif
#endif
...
...
drivers/char/tty_io.c
View file @
b9e8bb61
...
@@ -2140,7 +2140,7 @@ static void tty_add_class_device(char *name, dev_t dev, struct device *device)
...
@@ -2140,7 +2140,7 @@ static void tty_add_class_device(char *name, dev_t dev, struct device *device)
kfree
(
tty_dev
);
kfree
(
tty_dev
);
}
}
void
tty_remove_class_device
(
dev_t
dev
)
static
void
tty_remove_class_device
(
dev_t
dev
)
{
{
struct
tty_dev
*
tty_dev
=
NULL
;
struct
tty_dev
*
tty_dev
=
NULL
;
struct
list_head
*
tmp
;
struct
list_head
*
tmp
;
...
@@ -2149,19 +2149,15 @@ void tty_remove_class_device(dev_t dev)
...
@@ -2149,19 +2149,15 @@ void tty_remove_class_device(dev_t dev)
spin_lock
(
&
tty_dev_list_lock
);
spin_lock
(
&
tty_dev_list_lock
);
list_for_each
(
tmp
,
&
tty_dev_list
)
{
list_for_each
(
tmp
,
&
tty_dev_list
)
{
tty_dev
=
list_entry
(
tmp
,
struct
tty_dev
,
node
);
tty_dev
=
list_entry
(
tmp
,
struct
tty_dev
,
node
);
if
(
(
MAJOR
(
tty_dev
->
dev
)
==
MAJOR
(
dev
))
&&
if
(
tty_dev
->
dev
==
dev
)
{
(
MINOR
(
tty_dev
->
dev
)
==
MINOR
(
dev
)))
{
list_del
(
&
tty_dev
->
node
);
found
=
1
;
found
=
1
;
break
;
break
;
}
}
}
}
if
(
found
)
{
list_del
(
&
tty_dev
->
node
);
spin_unlock
(
&
tty_dev_list_lock
);
spin_unlock
(
&
tty_dev_list_lock
);
if
(
found
)
class_device_unregister
(
&
tty_dev
->
class_dev
);
class_device_unregister
(
&
tty_dev
->
class_dev
);
}
else
{
spin_unlock
(
&
tty_dev_list_lock
);
}
}
}
/**
/**
...
...
drivers/ieee1394/ieee1394_types.h
View file @
b9e8bb61
...
@@ -16,10 +16,6 @@
...
@@ -16,10 +16,6 @@
/* The great kdev_t changeover in 2.5.x */
/* The great kdev_t changeover in 2.5.x */
#include <linux/kdev_t.h>
#include <linux/kdev_t.h>
#ifndef minor
#define minor(dev) MINOR(dev)
#endif
/* Transaction Label handling */
/* Transaction Label handling */
struct
hpsb_tlabel_pool
{
struct
hpsb_tlabel_pool
{
...
...
drivers/md/dm-ioctl-v1.c
View file @
b9e8bb61
...
@@ -577,7 +577,7 @@ static int create(struct dm_ioctl *param, struct dm_ioctl *user)
...
@@ -577,7 +577,7 @@ static int create(struct dm_ioctl *param, struct dm_ioctl *user)
}
}
if
(
param
->
flags
&
DM_PERSISTENT_DEV_FLAG
)
if
(
param
->
flags
&
DM_PERSISTENT_DEV_FLAG
)
r
=
dm_create_with_minor
(
minor
(
to_kdev_t
(
param
->
dev
)
),
&
md
);
r
=
dm_create_with_minor
(
MINOR
(
param
->
dev
),
&
md
);
else
else
r
=
dm_create
(
&
md
);
r
=
dm_create
(
&
md
);
...
...
drivers/md/dm-ioctl-v4.c
View file @
b9e8bb61
...
@@ -481,7 +481,7 @@ static int dev_create(struct dm_ioctl *param, size_t param_size)
...
@@ -481,7 +481,7 @@ static int dev_create(struct dm_ioctl *param, size_t param_size)
return
r
;
return
r
;
if
(
param
->
flags
&
DM_PERSISTENT_DEV_FLAG
)
if
(
param
->
flags
&
DM_PERSISTENT_DEV_FLAG
)
r
=
dm_create_with_minor
(
minor
(
to_kdev_t
(
param
->
dev
)
),
&
md
);
r
=
dm_create_with_minor
(
MINOR
(
param
->
dev
),
&
md
);
else
else
r
=
dm_create
(
&
md
);
r
=
dm_create
(
&
md
);
...
...
drivers/md/linear.c
View file @
b9e8bb61
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#define MAJOR_NR MD_MAJOR
#define MAJOR_NR MD_MAJOR
#define MD_DRIVER
#define MD_DRIVER
#define MD_PERSONALITY
#define MD_PERSONALITY
#define DEVICE_NR(device) (minor(device))
/*
/*
* find which device holds a particular offset
* find which device holds a particular offset
...
...
drivers/md/md.c
View file @
b9e8bb61
...
@@ -50,7 +50,6 @@
...
@@ -50,7 +50,6 @@
#define MAJOR_NR MD_MAJOR
#define MAJOR_NR MD_MAJOR
#define MD_DRIVER
#define MD_DRIVER
#define DEVICE_NR(device) (minor(device))
#define DEBUG 0
#define DEBUG 0
#define dprintk(x...) ((void)(DEBUG && printk(x)))
#define dprintk(x...) ((void)(DEBUG && printk(x)))
...
...
drivers/md/multipath.c
View file @
b9e8bb61
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#define MAJOR_NR MD_MAJOR
#define MAJOR_NR MD_MAJOR
#define MD_DRIVER
#define MD_DRIVER
#define MD_PERSONALITY
#define MD_PERSONALITY
#define DEVICE_NR(device) (minor(device))
#define MAX_WORK_PER_DISK 128
#define MAX_WORK_PER_DISK 128
...
...
drivers/md/raid0.c
View file @
b9e8bb61
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#define MAJOR_NR MD_MAJOR
#define MAJOR_NR MD_MAJOR
#define MD_DRIVER
#define MD_DRIVER
#define MD_PERSONALITY
#define MD_PERSONALITY
#define DEVICE_NR(device) (minor(device))
static
int
create_strip_zones
(
mddev_t
*
mddev
)
static
int
create_strip_zones
(
mddev_t
*
mddev
)
{
{
...
...
drivers/md/raid1.c
View file @
b9e8bb61
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#define MAJOR_NR MD_MAJOR
#define MAJOR_NR MD_MAJOR
#define MD_DRIVER
#define MD_DRIVER
#define MD_PERSONALITY
#define MD_PERSONALITY
#define DEVICE_NR(device) (minor(device))
/*
/*
* Number of guaranteed r1bios in case of extreme VM load:
* Number of guaranteed r1bios in case of extreme VM load:
...
...
drivers/media/video/videodev.c
View file @
b9e8bb61
...
@@ -52,7 +52,7 @@ static ssize_t show_dev(struct class_device *cd, char *buf)
...
@@ -52,7 +52,7 @@ static ssize_t show_dev(struct class_device *cd, char *buf)
{
{
struct
video_device
*
vfd
=
container_of
(
cd
,
struct
video_device
,
class_dev
);
struct
video_device
*
vfd
=
container_of
(
cd
,
struct
video_device
,
class_dev
);
dev_t
dev
=
MKDEV
(
VIDEO_MAJOR
,
vfd
->
minor
);
dev_t
dev
=
MKDEV
(
VIDEO_MAJOR
,
vfd
->
minor
);
return
sprintf
(
buf
,
"%04x
\n
"
,
(
int
)
dev
);
return
sprintf
(
buf
,
"%04x
\n
"
,
old_encode_dev
(
dev
)
);
}
}
static
CLASS_DEVICE_ATTR
(
name
,
S_IRUGO
,
show_name
,
NULL
);
static
CLASS_DEVICE_ATTR
(
name
,
S_IRUGO
,
show_name
,
NULL
);
...
...
drivers/media/video/zoran_driver.c
View file @
b9e8bb61
...
@@ -1265,7 +1265,7 @@ static int
...
@@ -1265,7 +1265,7 @@ static int
zoran_open
(
struct
inode
*
inode
,
zoran_open
(
struct
inode
*
inode
,
struct
file
*
file
)
struct
file
*
file
)
{
{
unsigned
int
minor
=
minor
(
inode
->
i_rdev
);
unsigned
int
minor
=
iminor
(
inode
);
struct
zoran
*
zr
=
NULL
;
struct
zoran
*
zr
=
NULL
;
struct
zoran_fh
*
fh
;
struct
zoran_fh
*
fh
;
int
i
,
res
,
first_open
=
0
,
have_module_locks
=
0
;
int
i
,
res
,
first_open
=
0
,
have_module_locks
=
0
;
...
...
drivers/s390/char/tubio.h
View file @
b9e8bb61
...
@@ -158,7 +158,6 @@ enum tubwhat { /* echo what= proc actions */
...
@@ -158,7 +158,6 @@ enum tubwhat { /* echo what= proc actions */
#define TUBMAXMINS 256
#define TUBMAXMINS 256
#define TUB_DEV MKDEV(IBM_FS3270_MAJ, 0)
/* Generic /dev/3270/tub */
#define _GEOM_ROWS 24
#define _GEOM_ROWS 24
#define _GEOM_COLS 80
#define _GEOM_COLS 80
#define GEOM_ROWS (tubp->geom_rows)
#define GEOM_ROWS (tubp->geom_rows)
...
@@ -294,23 +293,6 @@ typedef struct tub_s {
...
@@ -294,23 +293,6 @@ typedef struct tub_s {
#define TUB_UE_BUSY 0x0800
#define TUB_UE_BUSY 0x0800
#define TUB_INPUT_HACK 0x1000
/* Early init of command line */
#define TUB_INPUT_HACK 0x1000
/* Early init of command line */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0))
#define S390_CONSOLE_DEV MKDEV(TTY_MAJOR, 64)
#define tub_major(x) MAJOR(x)
#define tub_minor(x) MINOR(x)
#define tub_mkdev(x, y) MKDEV(x, y)
#elif (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
#define S390_CONSOLE_DEV MKDEV(TTYAUX_MAJOR, 1)
#define tub_major(x) MAJOR(x)
#define tub_minor(x) MINOR(x)
#define tub_mkdev(x, y) MKDEV(x, y)
#else
#define S390_CONSOLE_DEV mk_kdev(TTYAUX_MAJOR, 1)
#define tub_major(x) major(x)
#define tub_minor(x) minor(x)
#define tub_mkdev(x, y) mk_kdev(x, y)
#endif
/*
/*
* Extra stuff for 3270 console support
* Extra stuff for 3270 console support
*/
*/
...
...
drivers/usb/core/inode.c
View file @
b9e8bb61
...
@@ -152,7 +152,6 @@ static struct inode *usbfs_get_inode (struct super_block *sb, int mode, dev_t de
...
@@ -152,7 +152,6 @@ static struct inode *usbfs_get_inode (struct super_block *sb, int mode, dev_t de
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
switch
(
mode
&
S_IFMT
)
{
switch
(
mode
&
S_IFMT
)
{
default:
default:
...
...
fs/afs/inode.c
View file @
b9e8bb61
...
@@ -68,7 +68,6 @@ static int afs_inode_map_status(afs_vnode_t *vnode)
...
@@ -68,7 +68,6 @@ static int afs_inode_map_status(afs_vnode_t *vnode)
inode
->
i_nlink
=
vnode
->
status
.
nlink
;
inode
->
i_nlink
=
vnode
->
status
.
nlink
;
inode
->
i_uid
=
vnode
->
status
.
owner
;
inode
->
i_uid
=
vnode
->
status
.
owner
;
inode
->
i_gid
=
0
;
inode
->
i_gid
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_size
=
vnode
->
status
.
size
;
inode
->
i_size
=
vnode
->
status
.
size
;
inode
->
i_atime
.
tv_sec
=
inode
->
i_mtime
.
tv_sec
=
inode
->
i_ctime
.
tv_sec
=
vnode
->
status
.
mtime_server
;
inode
->
i_atime
.
tv_sec
=
inode
->
i_mtime
.
tv_sec
=
inode
->
i_ctime
.
tv_sec
=
vnode
->
status
.
mtime_server
;
inode
->
i_atime
.
tv_nsec
=
inode
->
i_atime
.
tv_nsec
=
...
...
fs/autofs4/inode.c
View file @
b9e8bb61
...
@@ -298,7 +298,6 @@ struct inode *autofs4_get_inode(struct super_block *sb,
...
@@ -298,7 +298,6 @@ struct inode *autofs4_get_inode(struct super_block *sb,
}
}
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
if
(
S_ISDIR
(
inf
->
mode
))
{
if
(
S_ISDIR
(
inf
->
mode
))
{
...
...
fs/devfs/base.c
View file @
b9e8bb61
...
@@ -2010,7 +2010,6 @@ static struct inode *_devfs_get_vfs_inode (struct super_block *sb,
...
@@ -2010,7 +2010,6 @@ static struct inode *_devfs_get_vfs_inode (struct super_block *sb,
inode
->
i_blksize
=
FAKE_BLOCK_SIZE
;
inode
->
i_blksize
=
FAKE_BLOCK_SIZE
;
inode
->
i_op
=
&
devfs_iops
;
inode
->
i_op
=
&
devfs_iops
;
inode
->
i_fop
=
&
devfs_fops
;
inode
->
i_fop
=
&
devfs_fops
;
inode
->
i_rdev
=
NODEV
;
if
(
S_ISCHR
(
de
->
mode
)
)
if
(
S_ISCHR
(
de
->
mode
)
)
{
{
inode
->
i_rdev
=
to_kdev_t
(
de
->
u
.
cdev
.
dev
);
inode
->
i_rdev
=
to_kdev_t
(
de
->
u
.
cdev
.
dev
);
...
@@ -2494,8 +2493,8 @@ static int devfs_mknod (struct inode *dir, struct dentry *dentry, int mode,
...
@@ -2494,8 +2493,8 @@ static int devfs_mknod (struct inode *dir, struct dentry *dentry, int mode,
struct
devfs_entry
*
parent
,
*
de
;
struct
devfs_entry
*
parent
,
*
de
;
struct
inode
*
inode
;
struct
inode
*
inode
;
DPRINTK
(
DEBUG_I_MKNOD
,
"(%s): mode: 0%o dev: %
d
\n
"
,
DPRINTK
(
DEBUG_I_MKNOD
,
"(%s): mode: 0%o dev: %
u:%u
\n
"
,
dentry
->
d_name
.
name
,
mode
,
rdev
);
dentry
->
d_name
.
name
,
mode
,
MAJOR
(
rdev
),
MINOR
(
rdev
)
);
parent
=
get_devfs_entry_from_vfs_inode
(
dir
);
parent
=
get_devfs_entry_from_vfs_inode
(
dir
);
if
(
parent
==
NULL
)
return
-
ENOENT
;
if
(
parent
==
NULL
)
return
-
ENOENT
;
de
=
_devfs_alloc_entry
(
dentry
->
d_name
.
name
,
dentry
->
d_name
.
len
,
mode
);
de
=
_devfs_alloc_entry
(
dentry
->
d_name
.
name
,
dentry
->
d_name
.
len
,
mode
);
...
...
fs/hfs/inode.c
View file @
b9e8bb61
...
@@ -322,7 +322,6 @@ struct inode *hfs_iget(struct hfs_cat_entry *entry, ino_t type,
...
@@ -322,7 +322,6 @@ struct inode *hfs_iget(struct hfs_cat_entry *entry, ino_t type,
/* Initialize the inode */
/* Initialize the inode */
struct
hfs_sb_info
*
hsb
=
HFS_SB
(
sb
);
struct
hfs_sb_info
*
hsb
=
HFS_SB
(
sb
);
inode
->
i_rdev
=
NODEV
;
inode
->
i_ctime
.
tv_sec
=
inode
->
i_atime
.
tv_sec
=
inode
->
i_mtime
.
tv_sec
=
inode
->
i_ctime
.
tv_sec
=
inode
->
i_atime
.
tv_sec
=
inode
->
i_mtime
.
tv_sec
=
hfs_m_to_utime
(
entry
->
modify_date
);
hfs_m_to_utime
(
entry
->
modify_date
);
inode
->
i_ctime
.
tv_nsec
=
0
;
inode
->
i_ctime
.
tv_nsec
=
0
;
...
...
fs/hugetlbfs/inode.c
View file @
b9e8bb61
...
@@ -406,7 +406,6 @@ static struct inode *hugetlbfs_get_inode(struct super_block *sb, uid_t uid,
...
@@ -406,7 +406,6 @@ static struct inode *hugetlbfs_get_inode(struct super_block *sb, uid_t uid,
inode
->
i_gid
=
gid
;
inode
->
i_gid
=
gid
;
inode
->
i_blksize
=
HPAGE_SIZE
;
inode
->
i_blksize
=
HPAGE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_mapping
->
a_ops
=
&
hugetlbfs_aops
;
inode
->
i_mapping
->
a_ops
=
&
hugetlbfs_aops
;
inode
->
i_mapping
->
backing_dev_info
=&
hugetlbfs_backing_dev_info
;
inode
->
i_mapping
->
backing_dev_info
=&
hugetlbfs_backing_dev_info
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
...
...
fs/jffs/inode-v23.c
View file @
b9e8bb61
...
@@ -362,7 +362,6 @@ jffs_new_inode(const struct inode * dir, struct jffs_raw_inode *raw_inode,
...
@@ -362,7 +362,6 @@ jffs_new_inode(const struct inode * dir, struct jffs_raw_inode *raw_inode,
inode
->
i_nlink
=
raw_inode
->
nlink
;
inode
->
i_nlink
=
raw_inode
->
nlink
;
inode
->
i_uid
=
raw_inode
->
uid
;
inode
->
i_uid
=
raw_inode
->
uid
;
inode
->
i_gid
=
raw_inode
->
gid
;
inode
->
i_gid
=
raw_inode
->
gid
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_size
=
raw_inode
->
dsize
;
inode
->
i_size
=
raw_inode
->
dsize
;
inode
->
i_atime
.
tv_sec
=
raw_inode
->
atime
;
inode
->
i_atime
.
tv_sec
=
raw_inode
->
atime
;
inode
->
i_mtime
.
tv_sec
=
raw_inode
->
mtime
;
inode
->
i_mtime
.
tv_sec
=
raw_inode
->
mtime
;
...
...
fs/jffs2/fs.c
View file @
b9e8bb61
...
@@ -147,7 +147,7 @@ void jffs2_read_inode (struct inode *inode)
...
@@ -147,7 +147,7 @@ void jffs2_read_inode (struct inode *inode)
case
S_IFSOCK
:
case
S_IFSOCK
:
case
S_IFIFO
:
case
S_IFIFO
:
inode
->
i_op
=
&
jffs2_file_inode_operations
;
inode
->
i_op
=
&
jffs2_file_inode_operations
;
init_special_inode
(
inode
,
inode
->
i_mode
,
kdev_t_to_nr
(
mk_kdev
(
je16_to_cpu
(
rdev
)
>>
8
,
je16_to_cpu
(
rdev
)
&
0xff
)
));
init_special_inode
(
inode
,
inode
->
i_mode
,
MKDEV
(
je16_to_cpu
(
rdev
)
>>
8
,
je16_to_cpu
(
rdev
)
&
0xff
));
break
;
break
;
default:
default:
...
...
fs/ncpfs/inode.c
View file @
b9e8bb61
...
@@ -220,7 +220,6 @@ static void ncp_set_attr(struct inode *inode, struct ncp_entry_info *nwinfo)
...
@@ -220,7 +220,6 @@ static void ncp_set_attr(struct inode *inode, struct ncp_entry_info *nwinfo)
inode
->
i_nlink
=
1
;
inode
->
i_nlink
=
1
;
inode
->
i_uid
=
server
->
m
.
uid
;
inode
->
i_uid
=
server
->
m
.
uid
;
inode
->
i_gid
=
server
->
m
.
gid
;
inode
->
i_gid
=
server
->
m
.
gid
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_blksize
=
NCP_BLOCK_SIZE
;
inode
->
i_blksize
=
NCP_BLOCK_SIZE
;
ncp_update_dates
(
inode
,
&
nwinfo
->
i
);
ncp_update_dates
(
inode
,
&
nwinfo
->
i
);
...
...
fs/ramfs/inode.c
View file @
b9e8bb61
...
@@ -58,7 +58,6 @@ static struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev
...
@@ -58,7 +58,6 @@ static struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_mapping
->
a_ops
=
&
ramfs_aops
;
inode
->
i_mapping
->
a_ops
=
&
ramfs_aops
;
inode
->
i_mapping
->
backing_dev_info
=
&
ramfs_backing_dev_info
;
inode
->
i_mapping
->
backing_dev_info
=
&
ramfs_backing_dev_info
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
...
...
fs/romfs/inode.c
View file @
b9e8bb61
...
@@ -542,10 +542,8 @@ romfs_read_inode(struct inode *i)
...
@@ -542,10 +542,8 @@ romfs_read_inode(struct inode *i)
default:
default:
/* depending on MBZ for sock/fifos */
/* depending on MBZ for sock/fifos */
nextfh
=
ntohl
(
ri
.
spec
);
nextfh
=
ntohl
(
ri
.
spec
);
/* convert back and forth for typechecking and
init_special_inode
(
i
,
ino
,
* source tagging */
MKDEV
(
nextfh
>>
16
,
nextfh
&
0xffff
));
nextfh
=
kdev_t_to_nr
(
mk_kdev
(
nextfh
>>
16
,
nextfh
&
0xffff
));
init_special_inode
(
i
,
ino
,
nextfh
);
}
}
}
}
...
...
fs/sysfs/inode.c
View file @
b9e8bb61
...
@@ -33,7 +33,6 @@ struct inode * sysfs_new_inode(mode_t mode)
...
@@ -33,7 +33,6 @@ struct inode * sysfs_new_inode(mode_t mode)
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_mapping
->
a_ops
=
&
sysfs_aops
;
inode
->
i_mapping
->
a_ops
=
&
sysfs_aops
;
inode
->
i_mapping
->
backing_dev_info
=
&
sysfs_backing_dev_info
;
inode
->
i_mapping
->
backing_dev_info
=
&
sysfs_backing_dev_info
;
...
...
mm/shmem.c
View file @
b9e8bb61
...
@@ -1040,7 +1040,6 @@ shmem_get_inode(struct super_block *sb, int mode, dev_t dev)
...
@@ -1040,7 +1040,6 @@ shmem_get_inode(struct super_block *sb, int mode, dev_t dev)
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_gid
=
current
->
fsgid
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blksize
=
PAGE_CACHE_SIZE
;
inode
->
i_blocks
=
0
;
inode
->
i_blocks
=
0
;
inode
->
i_rdev
=
NODEV
;
inode
->
i_mapping
->
a_ops
=
&
shmem_aops
;
inode
->
i_mapping
->
a_ops
=
&
shmem_aops
;
inode
->
i_mapping
->
backing_dev_info
=
&
shmem_backing_dev_info
;
inode
->
i_mapping
->
backing_dev_info
=
&
shmem_backing_dev_info
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment