From 1334e8ef946758b93172aa283c3562b81ac76632 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 10:47:31 +0200 Subject: [GCC4] fix build error in drivers/block/paride/pd.c This patch fixes this error with gcc 4 : pd.c:358: error: static declaration of 'pd_fops' follows non-static declaration pd.c:346: error: previous declaration of 'pd_fops' was here --- drivers/block/paride/pd.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/pd.c index 4db93fe..31acbed 100644 --- a/drivers/block/paride/pd.c +++ b/drivers/block/paride/pd.c @@ -343,7 +343,14 @@ static char *pd_errs[17] = { "ERR","INDE /* kernel glue structures */ -extern struct block_device_operations pd_fops; +static struct block_device_operations pd_fops = { + owner: THIS_MODULE, + open: pd_open, + release: pd_release, + ioctl: pd_ioctl, + check_media_change: pd_check_media, + revalidate: pd_revalidate +}; static struct gendisk pd_gendisk = { major: PD_MAJOR, @@ -355,15 +362,6 @@ static struct gendisk pd_gendisk = { fops: &pd_fops, }; -static struct block_device_operations pd_fops = { - owner: THIS_MODULE, - open: pd_open, - release: pd_release, - ioctl: pd_ioctl, - check_media_change: pd_check_media, - revalidate: pd_revalidate -}; - void pd_init_units( void ) { int unit, j; -- 1.4.2