You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] slab: remove SLAB_KERNEL
SLAB_KERNEL is an alias of GFP_KERNEL. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
54e6ecb239
commit
e94b176609
+2
-2
@@ -360,7 +360,7 @@ spi_alloc_master(struct device *dev, unsigned size)
|
||||
if (!dev)
|
||||
return NULL;
|
||||
|
||||
master = kzalloc(size + sizeof *master, SLAB_KERNEL);
|
||||
master = kzalloc(size + sizeof *master, GFP_KERNEL);
|
||||
if (!master)
|
||||
return NULL;
|
||||
|
||||
@@ -607,7 +607,7 @@ static int __init spi_init(void)
|
||||
{
|
||||
int status;
|
||||
|
||||
buf = kmalloc(SPI_BUFSIZ, SLAB_KERNEL);
|
||||
buf = kmalloc(SPI_BUFSIZ, GFP_KERNEL);
|
||||
if (!buf) {
|
||||
status = -ENOMEM;
|
||||
goto err0;
|
||||
|
||||
@@ -196,7 +196,7 @@ int spi_bitbang_setup(struct spi_device *spi)
|
||||
return -EINVAL;
|
||||
|
||||
if (!cs) {
|
||||
cs = kzalloc(sizeof *cs, SLAB_KERNEL);
|
||||
cs = kzalloc(sizeof *cs, GFP_KERNEL);
|
||||
if (!cs)
|
||||
return -ENOMEM;
|
||||
spi->controller_state = cs;
|
||||
|
||||
Reference in New Issue
Block a user