]> git.baikalelectronics.ru Git - kernel.git/commit
xen-swiotlb: remove xen_set_nslabs
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Mar 2021 07:44:29 +0000 (08:44 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Mar 2021 00:35:34 +0000 (00:35 +0000)
commitb8ff357b1e926abc16d1b642712b207f53766439
tree12fd5f255610d8e8080fdd40eca326335994a6c1
parent161b44722c6d6e2f8733ae69eedbcba7f88ee47c
xen-swiotlb: remove xen_set_nslabs

The xen_set_nslabs function is a little weird, as it has just one
caller, that caller passes a global variable as the argument,
which is then overriden in the function and a derivative of it
returned.  Just add a cpp symbol for the default size using a readable
constant and open code the remaining three lines in the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c