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
3b24d0f5
Commit
3b24d0f5
authored
May 29, 2003
by
Stephen Hemminger
Committed by
David S. Miller
May 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Kill deprecated if_port_text and users.
parent
3ced350d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
include/linux/netdevice.h
include/linux/netdevice.h
+0
-2
net/core/net-sysfs.c
net/core/net-sysfs.c
+0
-25
net/netsyms.c
net/netsyms.c
+0
-2
No files found.
include/linux/netdevice.h
View file @
3b24d0f5
...
...
@@ -147,8 +147,6 @@ enum {
#ifdef __KERNEL__
extern
const
char
*
if_port_text
[];
#include <linux/cache.h>
#include <linux/skbuff.h>
...
...
net/core/net-sysfs.c
View file @
3b24d0f5
...
...
@@ -16,16 +16,6 @@
#include <net/sock.h>
#include <linux/rtnetlink.h>
const
char
*
if_port_text
[]
=
{
[
IF_PORT_UNKNOWN
]
=
"unknown"
,
[
IF_PORT_10BASE2
]
=
"BNC"
,
[
IF_PORT_10BASET
]
=
"10baseT"
,
[
IF_PORT_AUI
]
=
"AUI"
,
[
IF_PORT_100BASET
]
=
"100baseT"
,
[
IF_PORT_100BASETX
]
=
"100baseTX"
,
[
IF_PORT_100BASEFX
]
=
"100baseFX"
};
#define to_net_dev(class) container_of((class), struct net_device, class_dev)
/* generate a show function for simple field */
...
...
@@ -66,20 +56,6 @@ NETDEVICE_ATTR(ifindex, "%d\n");
NETDEVICE_ATTR
(
features
,
"%#x
\n
"
);
NETDEVICE_ATTR
(
type
,
"%d
\n
"
);
/* TODO: only a few devices set this now should fix others. */
static
ssize_t
show_port
(
struct
class_device
*
dev
,
char
*
buf
)
{
unsigned
char
port
=
to_net_dev
(
dev
)
->
if_port
;
char
*
cp
=
buf
;
cp
+=
sprintf
(
cp
,
"%d"
,
port
);
if
(
port
<
ARRAY_SIZE
(
if_port_text
))
cp
+=
sprintf
(
cp
,
" (%s)"
,
if_port_text
[
port
]);
*
cp
++
=
'\n'
;
return
cp
-
buf
;
}
static
CLASS_DEVICE_ATTR
(
if_port
,
S_IRUGO
,
show_port
,
NULL
);
static
ssize_t
format_addr
(
char
*
buf
,
const
unsigned
char
*
addr
,
int
len
)
{
int
i
;
...
...
@@ -175,7 +151,6 @@ static struct class_device_attribute *net_class_attributes[] = {
&
class_device_attr_features
,
&
class_device_attr_mtu
,
&
class_device_attr_flags
,
&
class_device_attr_if_port
,
&
class_device_attr_type
,
&
class_device_attr_address
,
&
class_device_attr_broadcast
,
...
...
net/netsyms.c
View file @
3b24d0f5
...
...
@@ -609,8 +609,6 @@ EXPORT_SYMBOL(dev_mc_delete);
EXPORT_SYMBOL
(
dev_mc_upload
);
EXPORT_SYMBOL
(
__kill_fasync
);
EXPORT_SYMBOL
(
if_port_text
);
#ifdef CONFIG_HIPPI
EXPORT_SYMBOL
(
hippi_type_trans
);
#endif
...
...
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