virt_to_phys improve failed attempte to use kmalloc, but still fails

This commit is contained in:
Ciro Santilli
2017-07-14 13:49:10 +01:00
parent 63d8bbfc89
commit 5ec0858244
3 changed files with 20 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ Bibliography:
#include <linux/module.h>
#include <linux/printk.h> /* pr_info */
#include <linux/seq_file.h> /* seq_read, seq_lseek, single_release */
#include <linux/slab.h>
#include <linux/slab.h> /* kmalloc, kfree */
#include <uapi/linux/stat.h> /* S_IRUSR */
static int max = 2;