Re: [RFC PATCH 04/15] drivers/acrn: add the basic framework of acrn char device driver

From: Dan Carpenter
Date: Fri Aug 16 2019 - 07:28:41 EST


On Fri, Aug 16, 2019 at 10:25:45AM +0800, Zhao Yakui wrote:
> +static
> +int acrn_dev_open(struct inode *inodep, struct file *filep)
> +{
> + pr_info("%s: opening device node\n", __func__);
> +
> + return 0;
> +}
> +
> +static
> +long acrn_dev_ioctl(struct file *filep,
> + unsigned int ioctl_num, unsigned long ioctl_param)
> +{
> + long ret = 0;
> +
> + return ret;


This module is mostly stubs and debugging printks... :(

I looked ahead in the patch series to see if we do something with the
stubs later on and it turns out we do. Fold the two patches together so
that we don't have to review patches like this one. Each patch should
do "one thing" which makes sense and can be reviewed independently.

regards,
dan carpenter