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
b3602488
Commit
b3602488
authored
Feb 11, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
8316120b
85e8ac71
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
28 deletions
+40
-28
Makefile
Makefile
+9
-8
fs/nfs/nfs3xdr.c
fs/nfs/nfs3xdr.c
+8
-5
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+8
-7
scripts/Makefile.build
scripts/Makefile.build
+1
-1
scripts/Makefile.lib
scripts/Makefile.lib
+7
-5
scripts/Makefile.modver
scripts/Makefile.modver
+3
-2
scripts/fixdep.c
scripts/fixdep.c
+4
-0
No files found.
Makefile
View file @
b3602488
...
@@ -36,7 +36,8 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
...
@@ -36,7 +36,8 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
SUBARCH
:=
$(
shell
uname
-m
|
sed
-e
s/i.86/i386/
-e
s/sun4u/sparc64/
-e
s/arm.
*
/arm/
-e
s/sa110/arm/
)
SUBARCH
:=
$(
shell
uname
-m
|
sed
-e
s/i.86/i386/
-e
s/sun4u/sparc64/
-e
s/arm.
*
/arm/
-e
s/sa110/arm/
)
ARCH
:=
$(SUBARCH)
ARCH
:=
$(SUBARCH)
KERNELPATH
=
kernel-
$(
shell
echo
$(KERNELRELEASE)
|
sed
-e
"s/-//g"
)
# Remove hyphens since they have special meaning in RPM filenames
KERNELPATH
=
kernel-
$(
subst
-,,
$(KERNELRELEASE)
)
UTS_MACHINE
:=
$(ARCH)
UTS_MACHINE
:=
$(ARCH)
...
@@ -355,7 +356,7 @@ LDFLAGS_vmlinux += -T arch/$(ARCH)/vmlinux.lds.s
...
@@ -355,7 +356,7 @@ LDFLAGS_vmlinux += -T arch/$(ARCH)/vmlinux.lds.s
# It's a three stage process:
# It's a three stage process:
# o .tmp_vmlinux1 has all symbols and sections, but __kallsyms is
# o .tmp_vmlinux1 has all symbols and sections, but __kallsyms is
# empty
# empty
# Running kallsyms on that gives
a
s .tmp_kallsyms1.o with
# Running kallsyms on that gives
u
s .tmp_kallsyms1.o with
# the right size
# the right size
# o .tmp_vmlinux2 now has a __kallsyms section of the right size,
# o .tmp_vmlinux2 now has a __kallsyms section of the right size,
# but due to the added section, some addresses have shifted
# but due to the added section, some addresses have shifted
...
@@ -689,7 +690,7 @@ defconfig: scripts/kconfig/conf
...
@@ -689,7 +690,7 @@ defconfig: scripts/kconfig/conf
# make clean Delete all automatically generated files, including
# make clean Delete all automatically generated files, including
# tools and firmware.
# tools and firmware.
# make mrproper Delete the current configuration, and related files
# make mrproper Delete the current configuration, and related files
# Any core files spread around
is
deleted as well
# Any core files spread around
are
deleted as well
# make distclean Remove editor backup files, patch leftover files and the like
# make distclean Remove editor backup files, patch leftover files and the like
# Files removed with 'make clean'
# Files removed with 'make clean'
...
@@ -884,9 +885,9 @@ if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\
...
@@ -884,9 +885,9 @@ if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\
$(
filter-out
$
(
cmd_
$(1)
)
,
$
(
cmd_
$@
))
\
$(
filter-out
$
(
cmd_
$(1)
)
,
$
(
cmd_
$@
))
\
$(
filter-out
$
(
cmd_
$@
)
,
$
(
cmd_
$(1)
)))
,
\
$(
filter-out
$
(
cmd_
$@
)
,
$
(
cmd_
$(1)
)))
,
\
@set
-e
;
\
@set
-e
;
\
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1
)
)
'
;
)
\
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
'
$(
subst
'
,
'\'',$(
$(quiet)
cmd_
$(1)
))
'
;
)
\
$
(
cmd_
$(1)
)
;
\
$
(
cmd_
$(1)
)
;
\
scripts/fixdep
$(depfile)
$@
'$(
cmd_
$(1
)
)
'
>
$
(
@D
)
/.
$
(
@F
)
.tmp
;
\
scripts/fixdep
$(depfile)
$@
'
$(
subst
$$,$$$$,
$(
subst
'
,
'\'',$(cmd_
$(1)
)
))
'
>
$
(
@D
)
/.
$
(
@F
)
.tmp
;
\
rm
-f
$(depfile)
;
\
rm
-f
$(depfile)
;
\
mv
-f
$
(
@D
)
/.
$
(
@F
)
.tmp
$
(
@D
)
/.
$
(
@F
)
.cmd
)
mv
-f
$
(
@D
)
/.
$
(
@F
)
.tmp
$
(
@D
)
/.
$
(
@F
)
.cmd
)
...
@@ -913,19 +914,19 @@ define update-if-changed
...
@@ -913,19 +914,19 @@ define update-if-changed
fi
fi
endef
endef
# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj=
# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj=
dir
# Usage:
# Usage:
# $(Q)$(MAKE) $(build)=dir
# $(Q)$(MAKE) $(build)=dir
build
:=
-f
scripts/Makefile.build obj
build
:=
-f
scripts/Makefile.build obj
# Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir
# Shorthand for $(Q)$(MAKE)
-f
scripts/Makefile.clean obj=dir
# Usage:
# Usage:
# $(Q)$(MAKE) $(clean)=dir
# $(Q)$(MAKE) $(clean)=dir
clean
:=
-f
scripts/Makefile.clean obj
clean
:=
-f
scripts/Makefile.clean obj
# $(call descend,<dir>,<target>)
# $(call descend,<dir>,<target>)
# Recursively call a sub-make in <dir> with target <target>
# Recursively call a sub-make in <dir> with target <target>
# Usage is deprecated, because make do not see this as an invocation of make.
# Usage is deprecated, because make do
es
not see this as an invocation of make.
descend
=
$(Q)$(MAKE)
-f
scripts/Makefile.build
obj
=
$(1)
$(2)
descend
=
$(Q)$(MAKE)
-f
scripts/Makefile.build
obj
=
$(1)
$(2)
FORCE
:
FORCE
:
fs/nfs/nfs3xdr.c
View file @
b3602488
...
@@ -146,7 +146,7 @@ xdr_decode_time3(u32 *p, struct timespec *timep)
...
@@ -146,7 +146,7 @@ xdr_decode_time3(u32 *p, struct timespec *timep)
static
u32
*
static
u32
*
xdr_decode_fattr
(
u32
*
p
,
struct
nfs_fattr
*
fattr
)
xdr_decode_fattr
(
u32
*
p
,
struct
nfs_fattr
*
fattr
)
{
{
unsigned
int
type
;
unsigned
int
type
,
major
,
minor
;
int
fmode
;
int
fmode
;
type
=
ntohl
(
*
p
++
);
type
=
ntohl
(
*
p
++
);
...
@@ -160,9 +160,12 @@ xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr)
...
@@ -160,9 +160,12 @@ xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr)
fattr
->
gid
=
ntohl
(
*
p
++
);
fattr
->
gid
=
ntohl
(
*
p
++
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
size
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
size
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
du
.
nfs3
.
used
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
du
.
nfs3
.
used
);
/* Turn remote device info into Linux-specific dev_t */
/* Turn remote device info into Linux-specific dev_t */
fattr
->
rdev
=
ntohl
(
*
p
++
)
<<
MINORBITS
;
major
=
ntohl
(
*
p
++
);
fattr
->
rdev
|=
ntohl
(
*
p
++
)
&
MINORMASK
;
minor
=
ntohl
(
*
p
++
);
fattr
->
rdev
=
MKDEV
(
major
,
minor
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fsid_u
.
nfs3
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fsid_u
.
nfs3
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fileid
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fileid
);
p
=
xdr_decode_time3
(
p
,
&
fattr
->
atime
);
p
=
xdr_decode_time3
(
p
,
&
fattr
->
atime
);
...
@@ -412,8 +415,8 @@ nfs3_xdr_mknodargs(struct rpc_rqst *req, u32 *p, struct nfs3_mknodargs *args)
...
@@ -412,8 +415,8 @@ nfs3_xdr_mknodargs(struct rpc_rqst *req, u32 *p, struct nfs3_mknodargs *args)
*
p
++
=
htonl
(
args
->
type
);
*
p
++
=
htonl
(
args
->
type
);
p
=
xdr_encode_sattr
(
p
,
args
->
sattr
);
p
=
xdr_encode_sattr
(
p
,
args
->
sattr
);
if
(
args
->
type
==
NF3CHR
||
args
->
type
==
NF3BLK
)
{
if
(
args
->
type
==
NF3CHR
||
args
->
type
==
NF3BLK
)
{
*
p
++
=
htonl
(
args
->
rdev
>>
MINORBITS
);
*
p
++
=
htonl
(
MAJOR
(
args
->
rdev
)
);
*
p
++
=
htonl
(
args
->
rdev
&
MINORMASK
);
*
p
++
=
htonl
(
MINOR
(
args
->
rdev
)
);
}
}
req
->
rq_slen
=
xdr_adjust_iovec
(
req
->
rq_svec
,
p
);
req
->
rq_slen
=
xdr_adjust_iovec
(
req
->
rq_svec
,
p
);
...
...
fs/nfs/nfs4xdr.c
View file @
b3602488
...
@@ -1385,13 +1385,14 @@ decode_getattr(struct xdr_stream *xdr, struct nfs4_getattr *getattr)
...
@@ -1385,13 +1385,14 @@ decode_getattr(struct xdr_stream *xdr, struct nfs4_getattr *getattr)
dprintk
(
"read_attrs: gid=%d
\n
"
,
(
int
)
nfp
->
gid
);
dprintk
(
"read_attrs: gid=%d
\n
"
,
(
int
)
nfp
->
gid
);
}
}
if
(
bmval1
&
FATTR4_WORD1_RAWDEV
)
{
if
(
bmval1
&
FATTR4_WORD1_RAWDEV
)
{
READ_BUF
(
8
);
uint32_t
major
,
minor
;
len
+=
8
;
READ32
(
dummy32
);
READ_BUF
(
8
);
nfp
->
rdev
=
(
dummy32
<<
MINORBITS
);
len
+=
8
;
READ32
(
dummy32
);
READ32
(
major
);
nfp
->
rdev
|=
(
dummy32
&
MINORMASK
);
READ32
(
minor
);
dprintk
(
"read_attrs: rdev=%d
\n
"
,
nfp
->
rdev
);
nfp
->
rdev
=
MKDEV
(
major
,
minor
);
dprintk
(
"read_attrs: rdev=0x%x
\n
"
,
nfp
->
rdev
);
}
}
if
(
bmval1
&
FATTR4_WORD1_SPACE_AVAIL
)
{
if
(
bmval1
&
FATTR4_WORD1_SPACE_AVAIL
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
...
...
scripts/Makefile.build
View file @
b3602488
...
@@ -94,7 +94,7 @@ define rule_vcc_o_c
...
@@ -94,7 +94,7 @@ define rule_vcc_o_c
else
\
else
\
$(CPP)
-D__GENKSYMS__
$(c_flags)
$<
\
$(CPP)
-D__GENKSYMS__
$(c_flags)
$<
\
|
$(GENKSYMS)
-k
$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
\
|
$(GENKSYMS)
-k
$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
\
|
sed
-n
's/\#define __ver_\(
\w*\)\W*\(\w
*\)/__crc_\1 = 0x\2 ;/gp'
\
|
sed
-n
's/\#define __ver_\(
[^ ]*\)[ ]*\([^ ]
*\)/__crc_\1 = 0x\2 ;/gp'
\
> $(@D)/.tmp_$(@F
:
.o=.ver);
\
> $(@D)/.tmp_$(@F
:
.o=.ver);
\
\
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F)
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F)
\
...
...
scripts/Makefile.lib
View file @
b3602488
...
@@ -165,7 +165,7 @@ cmd_ld = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) \
...
@@ -165,7 +165,7 @@ cmd_ld = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) \
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
quiet_cmd_objcopy
=
OBJCOPY
$@
quiet_cmd_objcopy
=
OBJCOPY
$@
cmd_objcopy
=
$(OBJCOPY)
$(OBJCOPYFLAGS)
$<
$@
cmd_objcopy
=
$(OBJCOPY)
$(OBJCOPYFLAGS)
$
(
OBJCOPYFLAGS_
$
(
@F
))
$
<
$@
# Gzip
# Gzip
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
...
@@ -178,14 +178,16 @@ cmd_gzip = gzip -f -9 < $< > $@
...
@@ -178,14 +178,16 @@ cmd_gzip = gzip -f -9 < $< > $@
# ===========================================================================
# ===========================================================================
# function to only execute the passed command if necessary
# function to only execute the passed command if necessary
# >'< substitution is for echo to work, >$< substitution to preserve $ when reloading .cmd file
# note: when using inline perl scripts [perl -e '...$$t=1;...'] in $(cmd_xxx) double $$ your perl vars
if_changed
=
$(
if
$(
strip
$?
\
if_changed
=
$(
if
$(
strip
$?
\
$(
filter-out
$
(
cmd_
$(1)
)
,
$
(
cmd_
$@
))
\
$(
filter-out
$
(
cmd_
$(1)
)
,
$
(
cmd_
$@
))
\
$(
filter-out
$
(
cmd_
$@
)
,
$
(
cmd_
$(1)
)))
,
\
$(
filter-out
$
(
cmd_
$@
)
,
$
(
cmd_
$(1)
)))
,
\
@set
-e
;
\
@set
-e
;
\
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1
)
)
'
;
)
\
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
'
$(
subst
'
,
'\'',$(
$(quiet)
cmd_
$(1)
))
'
;
)
\
$
(
cmd_
$(1)
)
;
\
$
(
cmd_
$(1)
)
;
\
echo
'cmd_$@ := $(
cmd_
$(1
)
)
'
>
$
(
@D
)
/.
$
(
@F
)
.cmd
)
echo
'cmd_$@ :=
$(
subst
$$,$$$$,
$(
subst
'
,
'\'',$(cmd_
$(1)
)
))
'
>
$
(
@D
)
/.
$
(
@F
)
.cmd
)
# execute the command and also postprocess generated .d dependencies
# execute the command and also postprocess generated .d dependencies
...
@@ -195,9 +197,9 @@ if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\
...
@@ -195,9 +197,9 @@ if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\
$(
filter-out
$
(
cmd_
$(1)
)
,
$
(
cmd_
$@
))
\
$(
filter-out
$
(
cmd_
$(1)
)
,
$
(
cmd_
$@
))
\
$(
filter-out
$
(
cmd_
$@
)
,
$
(
cmd_
$(1)
)))
,
\
$(
filter-out
$
(
cmd_
$@
)
,
$
(
cmd_
$(1)
)))
,
\
@set
-e
;
\
@set
-e
;
\
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1
)
)
'
;
)
\
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
'
$(
subst
'
,
'\'',$(
$(quiet)
cmd_
$(1)
))
'
;
)
\
$
(
cmd_
$(1)
)
;
\
$
(
cmd_
$(1)
)
;
\
scripts/fixdep
$(depfile)
$@
'$(
cmd_
$(1
)
)
'
>
$
(
@D
)
/.
$
(
@F
)
.tmp
;
\
scripts/fixdep
$(depfile)
$@
'
$(
subst
$$,$$$$,
$(
subst
'
,
'\'',$(cmd_
$(1)
)
))
'
>
$
(
@D
)
/.
$
(
@F
)
.tmp
;
\
rm
-f
$(depfile)
;
\
rm
-f
$(depfile)
;
\
mv
-f
$
(
@D
)
/.
$
(
@F
)
.tmp
$
(
@D
)
/.
$
(
@F
)
.cmd
)
mv
-f
$
(
@D
)
/.
$
(
@F
)
.tmp
$
(
@D
)
/.
$
(
@F
)
.cmd
)
...
...
scripts/Makefile.modver
View file @
b3602488
...
@@ -9,11 +9,12 @@ include scripts/Makefile.lib
...
@@ -9,11 +9,12 @@ include scripts/Makefile.lib
#
#
__modules
:=
$(
shell
c
d
$(MODVERDIR)
;
cat
*
.mod
)
__modules
:=
$(
shell
c
at
/dev/null
$(
wildcard
$(MODVERDIR)
/
*
.mod
)
)
modules
:=
$(
patsubst
%.o,%.ko,
$(
wildcard
$(__modules:.ko=.o)
))
modules
:=
$(
patsubst
%.o,%.ko,
$(
wildcard
$(__modules:.ko=.o)
))
ifneq
($(filter-out $(modules),$(__modules)),)
ifneq
($(filter-out $(modules),$(__modules)),)
$(warning
***
Uh-oh,
you
have
stale
module
entries.
You
messed
with
SUBDIRS,
don't
complain
if
something
goes
wrong.)
$(warning
***
Uh-oh,
you
have
stale
module
entries.
You
messed
with
SUBDIRS,)
$(warning
do
not
complain
if
something
goes
wrong.)
endif
endif
__modversions
:
$(modules)
__modversions
:
$(modules)
...
...
scripts/fixdep.c
View file @
b3602488
...
@@ -277,6 +277,8 @@ void do_config_file(char *filename)
...
@@ -277,6 +277,8 @@ void do_config_file(char *filename)
parse_config_file
(
map
,
st
.
st_size
);
parse_config_file
(
map
,
st
.
st_size
);
munmap
(
map
,
st
.
st_size
);
munmap
(
map
,
st
.
st_size
);
close
(
fd
);
}
}
void
parse_dep_file
(
void
*
map
,
size_t
len
)
void
parse_dep_file
(
void
*
map
,
size_t
len
)
...
@@ -346,6 +348,8 @@ void print_deps(void)
...
@@ -346,6 +348,8 @@ void print_deps(void)
parse_dep_file
(
map
,
st
.
st_size
);
parse_dep_file
(
map
,
st
.
st_size
);
munmap
(
map
,
st
.
st_size
);
munmap
(
map
,
st
.
st_size
);
close
(
fd
);
}
}
void
traps
(
void
)
void
traps
(
void
)
...
...
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