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
e55d92b9
Commit
e55d92b9
authored
Jul 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of create_proc_entry() abuses - proc_mkdir() is there for purpose
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e772aed3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
13 deletions
+9
-13
arch/arm/mach-bcmring/dma.c
arch/arm/mach-bcmring/dma.c
+1
-1
drivers/staging/rtl8187se/r8180_core.c
drivers/staging/rtl8187se/r8180_core.c
+1
-1
drivers/staging/rtl8192e/ieee80211/ieee80211_module.c
drivers/staging/rtl8192e/ieee80211/ieee80211_module.c
+1
-1
drivers/staging/rtl8192e/r8192E_core.c
drivers/staging/rtl8192e/r8192E_core.c
+2
-4
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
+1
-1
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/rtl8192u/r8192U_core.c
+2
-4
sound/core/info.c
sound/core/info.c
+1
-1
No files found.
arch/arm/mach-bcmring/dma.c
View file @
e55d92b9
...
@@ -835,7 +835,7 @@ int dma_init(void)
...
@@ -835,7 +835,7 @@ int dma_init(void)
/* Create /proc/dma/channels and /proc/dma/devices */
/* Create /proc/dma/channels and /proc/dma/devices */
gDmaDir
=
create_proc_entry
(
"dma"
,
S_IFDIR
|
S_IRUGO
|
S_IXUGO
,
NULL
);
gDmaDir
=
proc_mkdir
(
"dma"
,
NULL
);
if
(
gDmaDir
==
NULL
)
{
if
(
gDmaDir
==
NULL
)
{
printk
(
KERN_ERR
"Unable to create /proc/dma
\n
"
);
printk
(
KERN_ERR
"Unable to create /proc/dma
\n
"
);
...
...
drivers/staging/rtl8187se/r8180_core.c
View file @
e55d92b9
...
@@ -307,7 +307,7 @@ static int proc_get_stats_tx(char *page, char **start,
...
@@ -307,7 +307,7 @@ static int proc_get_stats_tx(char *page, char **start,
void
rtl8180_proc_module_init
(
void
)
void
rtl8180_proc_module_init
(
void
)
{
{
DMESG
(
"Initializing proc filesystem"
);
DMESG
(
"Initializing proc filesystem"
);
rtl8180_proc
=
create_proc_entry
(
RTL8180_MODULE_NAME
,
S_IFDIR
,
init_net
.
proc_net
);
rtl8180_proc
=
proc_mkdir
(
RTL8180_MODULE_NAME
,
init_net
.
proc_net
);
}
}
void
rtl8180_proc_module_remove
(
void
)
void
rtl8180_proc_module_remove
(
void
)
...
...
drivers/staging/rtl8192e/ieee80211/ieee80211_module.c
View file @
e55d92b9
...
@@ -311,7 +311,7 @@ int __init ieee80211_rtl_init(void)
...
@@ -311,7 +311,7 @@ int __init ieee80211_rtl_init(void)
}
}
ieee80211_debug_level
=
debug
;
ieee80211_debug_level
=
debug
;
ieee80211_proc
=
create_proc_entry
(
DRV_NAME
,
S_IFDIR
,
init_net
.
proc_net
);
ieee80211_proc
=
proc_mkdir
(
DRV_NAME
,
init_net
.
proc_net
);
if
(
ieee80211_proc
==
NULL
)
{
if
(
ieee80211_proc
==
NULL
)
{
IEEE80211_ERROR
(
"Unable to create "
DRV_NAME
IEEE80211_ERROR
(
"Unable to create "
DRV_NAME
" proc directory
\n
"
);
" proc directory
\n
"
);
...
...
drivers/staging/rtl8192e/r8192E_core.c
View file @
e55d92b9
...
@@ -508,7 +508,7 @@ static int proc_get_stats_rx(char *page, char **start,
...
@@ -508,7 +508,7 @@ static int proc_get_stats_rx(char *page, char **start,
static
void
rtl8192_proc_module_init
(
void
)
static
void
rtl8192_proc_module_init
(
void
)
{
{
RT_TRACE
(
COMP_INIT
,
"Initializing proc filesystem
\n
"
);
RT_TRACE
(
COMP_INIT
,
"Initializing proc filesystem
\n
"
);
rtl8192_proc
=
create_proc_entry
(
RTL819xE_MODULE_NAME
,
S_IFDIR
,
init_net
.
proc_net
);
rtl8192_proc
=
proc_mkdir
(
RTL819xE_MODULE_NAME
,
init_net
.
proc_net
);
}
}
...
@@ -540,9 +540,7 @@ static void rtl8192_proc_init_one(struct r8192_priv *priv)
...
@@ -540,9 +540,7 @@ static void rtl8192_proc_init_one(struct r8192_priv *priv)
struct
net_device
*
dev
=
priv
->
ieee80211
->
dev
;
struct
net_device
*
dev
=
priv
->
ieee80211
->
dev
;
struct
proc_dir_entry
*
e
;
struct
proc_dir_entry
*
e
;
priv
->
dir_dev
=
create_proc_entry
(
dev
->
name
,
priv
->
dir_dev
=
proc_mkdir
(
dev
->
name
,
rtl8192_proc
);
S_IFDIR
|
S_IRUGO
|
S_IXUGO
,
rtl8192_proc
);
if
(
!
priv
->
dir_dev
)
{
if
(
!
priv
->
dir_dev
)
{
RT_TRACE
(
COMP_ERR
,
"Unable to initialize /proc/net/rtl8192/%s
\n
"
,
RT_TRACE
(
COMP_ERR
,
"Unable to initialize /proc/net/rtl8192/%s
\n
"
,
dev
->
name
);
dev
->
name
);
...
...
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
View file @
e55d92b9
...
@@ -283,7 +283,7 @@ int __init ieee80211_debug_init(void)
...
@@ -283,7 +283,7 @@ int __init ieee80211_debug_init(void)
ieee80211_debug_level
=
debug
;
ieee80211_debug_level
=
debug
;
ieee80211_proc
=
create_proc_entry
(
DRV_NAME
,
S_IFDIR
,
init_net
.
proc_net
);
ieee80211_proc
=
proc_mkdir
(
DRV_NAME
,
init_net
.
proc_net
);
if
(
ieee80211_proc
==
NULL
)
{
if
(
ieee80211_proc
==
NULL
)
{
IEEE80211_ERROR
(
"Unable to create "
DRV_NAME
IEEE80211_ERROR
(
"Unable to create "
DRV_NAME
" proc directory
\n
"
);
" proc directory
\n
"
);
...
...
drivers/staging/rtl8192u/r8192U_core.c
View file @
e55d92b9
...
@@ -671,7 +671,7 @@ static int proc_get_stats_rx(char *page, char **start,
...
@@ -671,7 +671,7 @@ static int proc_get_stats_rx(char *page, char **start,
void
rtl8192_proc_module_init
(
void
)
void
rtl8192_proc_module_init
(
void
)
{
{
RT_TRACE
(
COMP_INIT
,
"Initializing proc filesystem"
);
RT_TRACE
(
COMP_INIT
,
"Initializing proc filesystem"
);
rtl8192_proc
=
create_proc_entry
(
RTL819xU_MODULE_NAME
,
S_IFDIR
,
init_net
.
proc_net
);
rtl8192_proc
=
proc_mkdir
(
RTL819xU_MODULE_NAME
,
init_net
.
proc_net
);
}
}
...
@@ -706,9 +706,7 @@ void rtl8192_proc_init_one(struct net_device *dev)
...
@@ -706,9 +706,7 @@ void rtl8192_proc_init_one(struct net_device *dev)
{
{
struct
proc_dir_entry
*
e
;
struct
proc_dir_entry
*
e
;
struct
r8192_priv
*
priv
=
(
struct
r8192_priv
*
)
ieee80211_priv
(
dev
);
struct
r8192_priv
*
priv
=
(
struct
r8192_priv
*
)
ieee80211_priv
(
dev
);
priv
->
dir_dev
=
create_proc_entry
(
dev
->
name
,
priv
->
dir_dev
=
proc_mkdir
(
dev
->
name
,
rtl8192_proc
);
S_IFDIR
|
S_IRUGO
|
S_IXUGO
,
rtl8192_proc
);
if
(
!
priv
->
dir_dev
)
{
if
(
!
priv
->
dir_dev
)
{
RT_TRACE
(
COMP_ERR
,
"Unable to initialize /proc/net/rtl8192/%s
\n
"
,
RT_TRACE
(
COMP_ERR
,
"Unable to initialize /proc/net/rtl8192/%s
\n
"
,
dev
->
name
);
dev
->
name
);
...
...
sound/core/info.c
View file @
e55d92b9
...
@@ -531,7 +531,7 @@ int __init snd_info_init(void)
...
@@ -531,7 +531,7 @@ int __init snd_info_init(void)
{
{
struct
proc_dir_entry
*
p
;
struct
proc_dir_entry
*
p
;
p
=
create_proc_entry
(
"asound"
,
S_IFDIR
|
S_IRUGO
|
S_IXUGO
,
NULL
);
p
=
proc_mkdir
(
"asound"
,
NULL
);
if
(
p
==
NULL
)
if
(
p
==
NULL
)
return
-
ENOMEM
;
return
-
ENOMEM
;
snd_proc_root
=
p
;
snd_proc_root
=
p
;
...
...
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