Messages in this thread | | | Subject | Re: [PATCH] Staging: comedi: drivers: jr3_pci: fixed two warnings | From | Joe Perches <> | Date | Sun, 12 Apr 2020 09:56:44 -0700 |
| |
On Sun, 2020-04-12 at 16:25 +0200, carlosteniswarrior@gmail.com wrote: > Fixed two checkpatch warnings.
by introducing compiler errors.
> diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c [] > @@ -91,8 +91,8 @@ struct jr3_pci_dev_private { > };
> union jr3_pci_single_range { > - struct comedi_lrange l; > - char _reserved[offsetof(struct comedi_lrange, range[1])]; > + const comedi_lrange l; > + char _reserved[offsetof(const comedi_lrange, range[1])]; > };
try this:
$ make allyesconfig $ make drivers/staging/comedi/drivers/jr3_pci.o
_always_ compile the files modified by your patch before you post it to a mailing list or submit it to a maintainer.
| |