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
Kirill Smelkov
linux
Commits
a536a9b2
Commit
a536a9b2
authored
May 22, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Zap non-netdevice usage of SET_MODULE_OWNER.
parent
f110e985
Changes
29
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
30 additions
and
30 deletions
+30
-30
arch/i386/kernel/apm.c
arch/i386/kernel/apm.c
+1
-1
drivers/char/i8k.c
drivers/char/i8k.c
+1
-1
drivers/isdn/act2000/module.c
drivers/isdn/act2000/module.c
+1
-1
drivers/isdn/eicon/eicon_mod.c
drivers/isdn/eicon/eicon_mod.c
+1
-1
drivers/isdn/hardware/avm/b1isa.c
drivers/isdn/hardware/avm/b1isa.c
+1
-1
drivers/isdn/hardware/avm/b1pci.c
drivers/isdn/hardware/avm/b1pci.c
+2
-2
drivers/isdn/hardware/avm/b1pcmcia.c
drivers/isdn/hardware/avm/b1pcmcia.c
+1
-1
drivers/isdn/hardware/avm/c4.c
drivers/isdn/hardware/avm/c4.c
+1
-1
drivers/isdn/hardware/avm/t1isa.c
drivers/isdn/hardware/avm/t1isa.c
+1
-1
drivers/isdn/hardware/avm/t1pci.c
drivers/isdn/hardware/avm/t1pci.c
+1
-1
drivers/isdn/hardware/eicon/capimain.c
drivers/isdn/hardware/eicon/capimain.c
+1
-1
drivers/isdn/hardware/eicon/i4lididrv.c
drivers/isdn/hardware/eicon/i4lididrv.c
+1
-1
drivers/isdn/hisax/config.c
drivers/isdn/hisax/config.c
+1
-1
drivers/isdn/hisax/hisax_fcclassic.c
drivers/isdn/hisax/hisax_fcclassic.c
+1
-1
drivers/isdn/hisax/hisax_fcpcipnp.c
drivers/isdn/hisax/hisax_fcpcipnp.c
+1
-1
drivers/isdn/hisax/hisax_hfcpci.c
drivers/isdn/hisax/hisax_hfcpci.c
+1
-1
drivers/isdn/hisax/st5481_init.c
drivers/isdn/hisax/st5481_init.c
+1
-1
drivers/isdn/hysdn/hycapi.c
drivers/isdn/hysdn/hycapi.c
+1
-1
drivers/isdn/icn/icn.c
drivers/isdn/icn/icn.c
+1
-1
drivers/isdn/isdnloop/isdnloop.c
drivers/isdn/isdnloop/isdnloop.c
+1
-1
drivers/isdn/pcbit/drv.c
drivers/isdn/pcbit/drv.c
+1
-1
drivers/isdn/sc/init.c
drivers/isdn/sc/init.c
+1
-1
drivers/isdn/tpam/tpam_main.c
drivers/isdn/tpam/tpam_main.c
+1
-1
drivers/macintosh/apm_emu.c
drivers/macintosh/apm_emu.c
+1
-1
drivers/net/wan/comx-hw-munich.c
drivers/net/wan/comx-hw-munich.c
+1
-1
drivers/net/wan/cycx_x25.c
drivers/net/wan/cycx_x25.c
+1
-1
net/ipv4/esp.c
net/ipv4/esp.c
+1
-1
net/ipv4/ipcomp.c
net/ipv4/ipcomp.c
+1
-1
net/ipv4/xfrm4_tunnel.c
net/ipv4/xfrm4_tunnel.c
+1
-1
No files found.
arch/i386/kernel/apm.c
View file @
a536a9b2
...
...
@@ -2013,7 +2013,7 @@ static int __init apm_init(void)
apm_proc
=
create_proc_info_entry
(
"apm"
,
0
,
NULL
,
apm_get_info
);
if
(
apm_proc
)
SET_MODULE_OWNER
(
apm_proc
)
;
apm_proc
->
owner
=
THIS_MODULE
;
kernel_thread
(
apm
,
NULL
,
CLONE_FS
|
CLONE_FILES
|
CLONE_SIGHAND
|
SIGCHLD
);
...
...
drivers/char/i8k.c
View file @
a536a9b2
...
...
@@ -757,7 +757,7 @@ int __init i8k_init(void)
return
-
ENOENT
;
}
proc_i8k
->
proc_fops
=
&
i8k_fops
;
SET_MODULE_OWNER
(
proc_i8k
)
;
proc_i8k
->
owner
=
THIS_MODULE
;
printk
(
KERN_INFO
"Dell laptop SMM driver v%s Massimo Dal Zotto (dz@debian.org)
\n
"
,
...
...
drivers/isdn/act2000/module.c
View file @
a536a9b2
...
...
@@ -587,7 +587,7 @@ act2000_alloccard(int bus, int port, int irq, char *id)
INIT_WORK
(
&
card
->
rcv_tq
,
(
void
*
)
(
void
*
)
actcapi_dispatch
,
card
);
INIT_WORK
(
&
card
->
poll_tq
,
(
void
*
)
(
void
*
)
act2000_receive
,
card
);
init_timer
(
&
card
->
ptimer
);
SET_MODULE_OWNER
(
&
card
->
interface
)
;
card
->
interface
.
owner
=
THIS_MODULE
;
card
->
interface
.
channels
=
ACT2000_BCH
;
card
->
interface
.
maxbufsize
=
4000
;
card
->
interface
.
command
=
if_command
;
...
...
drivers/isdn/eicon/eicon_mod.c
View file @
a536a9b2
...
...
@@ -834,7 +834,7 @@ eicon_alloccard(int Type, int membase, int irq, char *id, int card_id)
tasklet_init
(
&
card
->
snd_tq
,
eicon_transmit
,
(
unsigned
long
)
card
);
tasklet_init
(
&
card
->
rcv_tq
,
eicon_rcv_dispatch
,
(
unsigned
long
)
card
);
tasklet_init
(
&
card
->
ack_tq
,
eicon_ack_dispatch
,
(
unsigned
long
)
card
);
SET_MODULE_OWNER
(
&
card
->
interface
)
;
card
->
interface
.
owner
=
THIS_MODULE
;
card
->
interface
.
maxbufsize
=
4000
;
card
->
interface
.
command
=
if_command
;
card
->
interface
.
writebuf_skb
=
if_sendbuf
;
...
...
drivers/isdn/hardware/avm/b1isa.c
View file @
a536a9b2
...
...
@@ -118,7 +118,7 @@ static int __init b1isa_probe(struct pci_dev *pdev)
cinfo
->
capi_ctrl
.
procinfo
=
b1isa_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
b1ctl_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/hardware/avm/b1pci.c
View file @
a536a9b2
...
...
@@ -111,7 +111,7 @@ static int b1pci_probe(struct capicardparams *p, struct pci_dev *pdev)
cinfo
->
capi_ctrl
.
procinfo
=
b1pci_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
b1ctl_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
@@ -249,7 +249,7 @@ static int b1pciv4_probe(struct capicardparams *p, struct pci_dev *pdev)
cinfo
->
capi_ctrl
.
procinfo
=
b1pciv4_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
b1dmactl_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/hardware/avm/b1pcmcia.c
View file @
a536a9b2
...
...
@@ -105,7 +105,7 @@ static int b1pcmcia_add_card(unsigned int port, unsigned irq,
cinfo
->
capi_ctrl
.
procinfo
=
b1pcmcia_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
b1ctl_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/hardware/avm/c4.c
View file @
a536a9b2
...
...
@@ -1166,7 +1166,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev,
cinfo
->
capi_ctrl
.
procinfo
=
c4_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
c4_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/hardware/avm/t1isa.c
View file @
a536a9b2
...
...
@@ -411,7 +411,7 @@ static int __init t1isa_probe(struct pci_dev *pdev, int cardnr)
cinfo
->
capi_ctrl
.
procinfo
=
t1isa_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
b1ctl_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/hardware/avm/t1pci.c
View file @
a536a9b2
...
...
@@ -119,7 +119,7 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev)
cinfo
->
capi_ctrl
.
procinfo
=
t1pci_procinfo
;
cinfo
->
capi_ctrl
.
ctr_read_proc
=
b1dmactl_read_proc
;
strcpy
(
cinfo
->
capi_ctrl
.
name
,
card
->
name
);
SET_MODULE_OWNER
(
&
cinfo
->
capi_ctrl
)
;
cinfo
->
capi_ctrl
.
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
&
cinfo
->
capi_ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/hardware/eicon/capimain.c
View file @
a536a9b2
...
...
@@ -149,7 +149,7 @@ void diva_os_set_controller_struct(struct capi_ctr *ctrl)
ctrl
->
load_firmware
=
0
;
ctrl
->
reset_ctr
=
0
;
ctrl
->
ctr_read_proc
=
diva_ctl_read_proc
;
SET_MODULE_OWNER
(
ctrl
)
;
ctrl
->
owner
=
THIS_MODULE
;
}
/*
...
...
drivers/isdn/hardware/eicon/i4lididrv.c
View file @
a536a9b2
...
...
@@ -913,7 +913,7 @@ eicon_alloccard(DESCRIPTOR *d)
skb_queue_head_init
(
&
card
->
sackq
);
skb_queue_head_init
(
&
card
->
statq
);
card
->
statq_entries
=
0
;
SET_MODULE_OWNER
(
&
card
->
interface
)
;
card
->
interface
.
owner
=
THIS_MODULE
;
card
->
interface
.
maxbufsize
=
4000
;
card
->
interface
.
command
=
if_command
;
card
->
interface
.
writebuf_skb
=
if_sendbuf
;
...
...
drivers/isdn/hisax/config.c
View file @
a536a9b2
...
...
@@ -889,7 +889,7 @@ static int __devinit checkcard(int cardnr, char *id, int *busy_flag)
"HiSax: Card Type %d out of range
\n
"
,
card
->
typ
);
goto
outf_cs
;
}
SET_MODULE_OWNER
(
&
cs
->
iif
)
;
cs
->
iif
.
owner
=
THIS_MODULE
;
strcpy
(
cs
->
iif
.
id
,
id
);
cs
->
iif
.
channels
=
2
;
cs
->
iif
.
maxbufsize
=
MAX_DATA_SIZE
;
...
...
drivers/isdn/hisax/hisax_fcclassic.c
View file @
a536a9b2
...
...
@@ -293,7 +293,7 @@ new_adapter(struct pci_dev *pdev)
memset
(
adapter
,
0
,
sizeof
(
struct
fritz_adapter
));
SET_MODULE_OWNER
(
&
adapter
->
isac
.
hisax_d_if
)
;
adapter
->
isac
.
hisax_d_if
.
owner
=
THIS_MODULE
;
adapter
->
isac
.
hisax_d_if
.
ifc
.
priv
=
&
adapter
->
isac
;
adapter
->
isac
.
hisax_d_if
.
ifc
.
l2l1
=
isac_d_l2l1
;
...
...
drivers/isdn/hisax/hisax_fcpcipnp.c
View file @
a536a9b2
...
...
@@ -827,7 +827,7 @@ new_adapter(struct pci_dev *pdev)
memset
(
adapter
,
0
,
sizeof
(
struct
fritz_adapter
));
SET_MODULE_OWNER
(
&
adapter
->
isac
.
hisax_d_if
)
;
adapter
->
isac
.
hisax_d_if
.
owner
=
THIS_MODULE
;
adapter
->
isac
.
hisax_d_if
.
ifc
.
priv
=
&
adapter
->
isac
;
adapter
->
isac
.
hisax_d_if
.
ifc
.
l2l1
=
isac_d_l2l1
;
...
...
drivers/isdn/hisax/hisax_hfcpci.c
View file @
a536a9b2
...
...
@@ -1484,7 +1484,7 @@ new_adapter(struct pci_dev *pdev)
memset
(
adapter
,
0
,
sizeof
(
struct
hfcpci_adapter
));
SET_MODULE_OWNER
(
&
adapter
->
d_if
)
;
adapter
->
d_if
.
owner
=
THIS_MODULE
;
adapter
->
d_if
.
ifc
.
priv
=
adapter
;
adapter
->
d_if
.
ifc
.
l2l1
=
hfcpci_d_l2l1
;
...
...
drivers/isdn/hisax/st5481_init.c
View file @
a536a9b2
...
...
@@ -80,7 +80,7 @@ static int probe_st5481(struct usb_interface *intf,
adapter
->
number_of_leds
=
number_of_leds
;
adapter
->
usb_dev
=
dev
;
SET_MODULE_OWNER
(
&
adapter
->
hisax_d_if
)
;
adapter
->
hisax_d_if
.
owner
=
THIS_MODULE
;
adapter
->
hisax_d_if
.
ifc
.
priv
=
adapter
;
adapter
->
hisax_d_if
.
ifc
.
l2l1
=
st5481_d_l2l1
;
...
...
drivers/isdn/hysdn/hycapi.c
View file @
a536a9b2
...
...
@@ -778,7 +778,7 @@ hycapi_capi_create(hysdn_card *card)
ctrl
->
procinfo
=
hycapi_procinfo
;
ctrl
->
ctr_read_proc
=
hycapi_read_proc
;
strcpy
(
ctrl
->
name
,
cinfo
->
cardname
);
SET_MODULE_OWNER
(
ctrl
)
;
ctrl
->
owner
=
THIS_MODULE
;
retval
=
attach_capi_ctr
(
ctrl
);
if
(
retval
)
{
...
...
drivers/isdn/icn/icn.c
View file @
a536a9b2
...
...
@@ -1545,7 +1545,7 @@ icn_initcard(int port, char *id)
}
memset
((
char
*
)
card
,
0
,
sizeof
(
icn_card
));
card
->
port
=
port
;
SET_MODULE_OWNER
(
&
card
->
interface
)
;
card
->
interface
.
owner
=
THIS_MODULE
;
card
->
interface
.
hl_hdrlen
=
1
;
card
->
interface
.
channels
=
ICN_BCH
;
card
->
interface
.
maxbufsize
=
4000
;
...
...
drivers/isdn/isdnloop/isdnloop.c
View file @
a536a9b2
...
...
@@ -1450,7 +1450,7 @@ isdnloop_initcard(char *id)
return
(
isdnloop_card
*
)
0
;
}
memset
((
char
*
)
card
,
0
,
sizeof
(
isdnloop_card
));
SET_MODULE_OWNER
(
&
card
->
interface
)
;
card
->
interface
.
owner
=
THIS_MODULE
;
card
->
interface
.
channels
=
ISDNLOOP_BCH
;
card
->
interface
.
hl_hdrlen
=
1
;
/* scratch area for storing ack flag*/
card
->
interface
.
maxbufsize
=
4000
;
...
...
drivers/isdn/pcbit/drv.c
View file @
a536a9b2
...
...
@@ -171,7 +171,7 @@ int pcbit_init_dev(int board, int mem_base, int irq)
dev
->
dev_if
=
dev_if
;
SET_MODULE_OWNER
(
dev_if
)
;
dev_if
->
owner
=
THIS_MODULE
;
dev_if
->
channels
=
2
;
...
...
drivers/isdn/sc/init.c
View file @
a536a9b2
...
...
@@ -287,7 +287,7 @@ static int __init sc_init(void)
}
memset
(
interface
,
0
,
sizeof
(
isdn_if
));
SET_MODULE_OWNER
(
interface
)
;
interface
->
owner
=
THIS_MODULE
;
interface
->
hl_hdrlen
=
0
;
interface
->
channels
=
channels
;
interface
->
maxbufsize
=
BUFFER_SIZE
;
...
...
drivers/isdn/tpam/tpam_main.c
View file @
a536a9b2
...
...
@@ -132,7 +132,7 @@ static int __devinit tpam_probe(struct pci_dev *dev, const struct pci_device_id
copy_to_pam_dword
(
card
,
(
void
*
)
0x01840070
,
0x00000010
);
/* fill the ISDN link layer structure */
SET_MODULE_OWNER
(
&
card
->
interface
)
;
card
->
interface
.
owner
=
THIS_MODULE
;
card
->
interface
.
channels
=
TPAM_NBCHANNEL
;
card
->
interface
.
maxbufsize
=
TPAM_MAXBUFSIZE
;
card
->
interface
.
features
=
...
...
drivers/macintosh/apm_emu.c
View file @
a536a9b2
...
...
@@ -524,7 +524,7 @@ static int __init apm_emu_init(void)
apm_proc
=
create_proc_info_entry
(
"apm"
,
0
,
NULL
,
apm_emu_get_info
);
if
(
apm_proc
)
SET_MODULE_OWNER
(
apm_proc
)
;
apm_proc
->
owner
=
THIS_MODULE
;
misc_register
(
&
apm_device
);
...
...
drivers/net/wan/comx-hw-munich.c
View file @
a536a9b2
...
...
@@ -858,7 +858,7 @@ static int munich_probe(void)
board
->
linecode
=
SLICECOM_LINECODE_DEFAULT
;
board
->
clock_source
=
SLICECOM_CLOCK_SOURCE_DEFAULT
;
board
->
loopback
=
SLICECOM_LOOPBACK_DEFAULT
;
SET_MODULE_OWNER
(
board
)
;
board
->
owner
=
THIS_MODULE
;
}
else
{
...
...
drivers/net/wan/cycx_x25.c
View file @
a536a9b2
...
...
@@ -82,7 +82,7 @@
#include <linux/errno.h>
/* return codes */
#include <linux/if_arp.h>
/* ARPHRD_HWX25 */
#include <linux/kernel.h>
/* printk(), and other useful stuff */
#include <linux/module.h>
/* SET_MODULE_OWNER */
#include <linux/module.h>
#include <linux/string.h>
/* inline memset(), etc. */
#include <linux/slab.h>
/* kmalloc(), kfree() */
#include <linux/stddef.h>
/* offsetof(), etc. */
...
...
net/ipv4/esp.c
View file @
a536a9b2
...
...
@@ -578,7 +578,7 @@ int __init esp4_init(void)
decap_data_too_small
();
}
SET_MODULE_OWNER
(
&
esp_type
)
;
esp_type
.
owner
=
THIS_MODULE
;
if
(
xfrm_register_type
(
&
esp_type
,
AF_INET
)
<
0
)
{
printk
(
KERN_INFO
"ip esp init: can't add xfrm type
\n
"
);
return
-
EAGAIN
;
...
...
net/ipv4/ipcomp.c
View file @
a536a9b2
...
...
@@ -400,7 +400,7 @@ static struct inet_protocol ipcomp4_protocol = {
static
int
__init
ipcomp4_init
(
void
)
{
SET_MODULE_OWNER
(
&
ipcomp_type
)
;
ipcomp_type
.
owner
=
THIS_MODULE
;
if
(
xfrm_register_type
(
&
ipcomp_type
,
AF_INET
)
<
0
)
{
printk
(
KERN_INFO
"ipcomp init: can't add xfrm type
\n
"
);
return
-
EAGAIN
;
...
...
net/ipv4/xfrm4_tunnel.c
View file @
a536a9b2
...
...
@@ -229,7 +229,7 @@ static struct inet_protocol ipip_protocol = {
static
int
__init
ipip_init
(
void
)
{
SET_MODULE_OWNER
(
&
ipip_type
)
;
ipip_type
.
owner
=
THIS_MODULE
;
if
(
xfrm_register_type
(
&
ipip_type
,
AF_INET
)
<
0
)
{
printk
(
KERN_INFO
"ipip init: can't add xfrm type
\n
"
);
return
-
EAGAIN
;
...
...
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