Commit c0f81a9
mm/slub: remove unused parameter in setup_object*()
setup_object_debug() and setup_object() has unused parameter, "struct
slab *slab". Remove it.
By the commit 3ec0974 ("SLUB: Simplify debug code"),
setup_object_debug() were introduced to refactor previous code blocks
in the setup_object(). Previous code used SlabDebug() to init_object()
and init_tracking(). As the SlabDebug() takes "struct page *page" as
argument, the setup_object_debug() checks flag of "struct kmem_cache *s"
which doesn't require "struct page *page".
As the struct page were changed into struct slab by commit bb192ed
("mm/slub: Convert most struct page to struct slab by spatch"), but it's
still unused parameter.
Suggested-by: Ohhoon Kwon <ohkwon1043@gmail.com>
Signed-off-by: JaeSang Yoo <jsyoo5b@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/r/20220411072534.3372768-1-jsyoo5b@gmail.com1 parent a8f23dd commit c0f81a9
1 file changed
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
1271 | | - | |
1272 | | - | |
| 1271 | + | |
1273 | 1272 | | |
1274 | 1273 | | |
1275 | 1274 | | |
| |||
1631 | 1630 | | |
1632 | 1631 | | |
1633 | 1632 | | |
1634 | | - | |
1635 | | - | |
| 1633 | + | |
1636 | 1634 | | |
1637 | 1635 | | |
1638 | 1636 | | |
| |||
1775 | 1773 | | |
1776 | 1774 | | |
1777 | 1775 | | |
1778 | | - | |
1779 | | - | |
| 1776 | + | |
1780 | 1777 | | |
1781 | | - | |
| 1778 | + | |
1782 | 1779 | | |
1783 | 1780 | | |
1784 | 1781 | | |
| |||
1897 | 1894 | | |
1898 | 1895 | | |
1899 | 1896 | | |
1900 | | - | |
| 1897 | + | |
1901 | 1898 | | |
1902 | 1899 | | |
1903 | 1900 | | |
1904 | 1901 | | |
1905 | 1902 | | |
1906 | | - | |
| 1903 | + | |
1907 | 1904 | | |
1908 | 1905 | | |
1909 | 1906 | | |
| |||
1974 | 1971 | | |
1975 | 1972 | | |
1976 | 1973 | | |
1977 | | - | |
| 1974 | + | |
1978 | 1975 | | |
1979 | 1976 | | |
1980 | 1977 | | |
1981 | | - | |
| 1978 | + | |
1982 | 1979 | | |
1983 | 1980 | | |
1984 | 1981 | | |
| |||
0 commit comments