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
2be1da8d
Commit
2be1da8d
authored
Nov 14, 2017
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s390/mm: remove unused code
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
78ca4fe3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
arch/s390/mm/gmap.c
arch/s390/mm/gmap.c
+3
-6
No files found.
arch/s390/mm/gmap.c
View file @
2be1da8d
...
@@ -1187,12 +1187,11 @@ static void gmap_unshadow_pgt(struct gmap *sg, unsigned long raddr)
...
@@ -1187,12 +1187,11 @@ static void gmap_unshadow_pgt(struct gmap *sg, unsigned long raddr)
static
void
__gmap_unshadow_sgt
(
struct
gmap
*
sg
,
unsigned
long
raddr
,
static
void
__gmap_unshadow_sgt
(
struct
gmap
*
sg
,
unsigned
long
raddr
,
unsigned
long
*
sgt
)
unsigned
long
*
sgt
)
{
{
unsigned
long
asce
,
*
pgt
;
unsigned
long
*
pgt
;
struct
page
*
page
;
struct
page
*
page
;
int
i
;
int
i
;
BUG_ON
(
!
gmap_is_shadow
(
sg
));
BUG_ON
(
!
gmap_is_shadow
(
sg
));
asce
=
(
unsigned
long
)
sgt
|
_ASCE_TYPE_SEGMENT
;
for
(
i
=
0
;
i
<
_CRST_ENTRIES
;
i
++
,
raddr
+=
_SEGMENT_SIZE
)
{
for
(
i
=
0
;
i
<
_CRST_ENTRIES
;
i
++
,
raddr
+=
_SEGMENT_SIZE
)
{
if
(
!
(
sgt
[
i
]
&
_SEGMENT_ENTRY_ORIGIN
))
if
(
!
(
sgt
[
i
]
&
_SEGMENT_ENTRY_ORIGIN
))
continue
;
continue
;
...
@@ -1245,12 +1244,11 @@ static void gmap_unshadow_sgt(struct gmap *sg, unsigned long raddr)
...
@@ -1245,12 +1244,11 @@ static void gmap_unshadow_sgt(struct gmap *sg, unsigned long raddr)
static
void
__gmap_unshadow_r3t
(
struct
gmap
*
sg
,
unsigned
long
raddr
,
static
void
__gmap_unshadow_r3t
(
struct
gmap
*
sg
,
unsigned
long
raddr
,
unsigned
long
*
r3t
)
unsigned
long
*
r3t
)
{
{
unsigned
long
asce
,
*
sgt
;
unsigned
long
*
sgt
;
struct
page
*
page
;
struct
page
*
page
;
int
i
;
int
i
;
BUG_ON
(
!
gmap_is_shadow
(
sg
));
BUG_ON
(
!
gmap_is_shadow
(
sg
));
asce
=
(
unsigned
long
)
r3t
|
_ASCE_TYPE_REGION3
;
for
(
i
=
0
;
i
<
_CRST_ENTRIES
;
i
++
,
raddr
+=
_REGION3_SIZE
)
{
for
(
i
=
0
;
i
<
_CRST_ENTRIES
;
i
++
,
raddr
+=
_REGION3_SIZE
)
{
if
(
!
(
r3t
[
i
]
&
_REGION_ENTRY_ORIGIN
))
if
(
!
(
r3t
[
i
]
&
_REGION_ENTRY_ORIGIN
))
continue
;
continue
;
...
@@ -1303,12 +1301,11 @@ static void gmap_unshadow_r3t(struct gmap *sg, unsigned long raddr)
...
@@ -1303,12 +1301,11 @@ static void gmap_unshadow_r3t(struct gmap *sg, unsigned long raddr)
static
void
__gmap_unshadow_r2t
(
struct
gmap
*
sg
,
unsigned
long
raddr
,
static
void
__gmap_unshadow_r2t
(
struct
gmap
*
sg
,
unsigned
long
raddr
,
unsigned
long
*
r2t
)
unsigned
long
*
r2t
)
{
{
unsigned
long
asce
,
*
r3t
;
unsigned
long
*
r3t
;
struct
page
*
page
;
struct
page
*
page
;
int
i
;
int
i
;
BUG_ON
(
!
gmap_is_shadow
(
sg
));
BUG_ON
(
!
gmap_is_shadow
(
sg
));
asce
=
(
unsigned
long
)
r2t
|
_ASCE_TYPE_REGION2
;
for
(
i
=
0
;
i
<
_CRST_ENTRIES
;
i
++
,
raddr
+=
_REGION2_SIZE
)
{
for
(
i
=
0
;
i
<
_CRST_ENTRIES
;
i
++
,
raddr
+=
_REGION2_SIZE
)
{
if
(
!
(
r2t
[
i
]
&
_REGION_ENTRY_ORIGIN
))
if
(
!
(
r2t
[
i
]
&
_REGION_ENTRY_ORIGIN
))
continue
;
continue
;
...
...
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