]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit4035b43da6daa51668830becfe8537841414946b
tree12fd5f255610d8e8080fdd40eca326335994a6c1
parent6223d1cef7b462de9aeede5846e6dcdbbd1c4d60
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