$ make -j12 | grep error
/home/user/media_build/v4l/stid135_proc.c:105:21: error: variable 'fops_stid135' has initializer but incomplete type
static const struct proc_ops fops_stid135 = {
^~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:106:3: error: 'const struct proc_ops' has no member named 'proc_lseek'
.proc_lseek = seq_lseek,
^~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:106:16: warning: excess elements in struct initializer
.proc_lseek = seq_lseek,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:106:16: note: (near initialization for 'fops_stid135')
/home/user/media_build/v4l/stid135_proc.c:107:3: error: 'const struct proc_ops' has no member named 'proc_open'
.proc_open = open_stid135,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:107:15: warning: excess elements in struct initializer
.proc_open = open_stid135,
^~~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:107:15: note: (near initialization for 'fops_stid135')
/home/user/media_build/v4l/stid135_proc.c:108:3: error: 'const struct proc_ops' has no member named 'proc_release'
.proc_release = release,
^~~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:108:18: warning: excess elements in struct initializer
.proc_release = release,
^~~~~~~
/home/user/media_build/v4l/stid135_proc.c:108:18: note: (near initialization for 'fops_stid135')
/home/user/media_build/v4l/stid135_proc.c:109:6: error: 'const struct proc_ops' has no member named 'proc_read'
.proc_read = read,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:109:18: warning: excess elements in struct initializer
.proc_read = read,
^~~~
/home/user/media_build/v4l/stid135_proc.c:109:18: note: (near initialization for 'fops_stid135')
/home/user/media_build/v4l/stid135_proc.c:113:21: error: variable 'fops_soc' has initializer but incomplete type
static const struct proc_ops fops_soc = {
^~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:114:3: error: 'const struct proc_ops' has no member named 'proc_lseek'
.proc_lseek = seq_lseek,
^~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:114:16: warning: excess elements in struct initializer
.proc_lseek = seq_lseek,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:114:16: note: (near initialization for 'fops_soc')
/home/user/media_build/v4l/stid135_proc.c:115:3: error: 'const struct proc_ops' has no member named 'proc_open'
.proc_open = open_soc,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:115:15: warning: excess elements in struct initializer
.proc_open = open_soc,
^~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:115:15: note: (near initialization for 'fops_soc')
/home/user/media_build/v4l/stid135_proc.c:116:3: error: 'const struct proc_ops' has no member named 'proc_release'
.proc_release = release,
^~~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:116:18: warning: excess elements in struct initializer
.proc_release = release,
^~~~~~~
/home/user/media_build/v4l/stid135_proc.c:116:18: note: (near initialization for 'fops_soc')
/home/user/media_build/v4l/stid135_proc.c:117:6: error: 'const struct proc_ops' has no member named 'proc_read'
.proc_read = read,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:117:18: warning: excess elements in struct initializer
.proc_read = read,
^~~~
/home/user/media_build/v4l/stid135_proc.c:117:18: note: (near initialization for 'fops_soc')
/home/user/media_build/v4l/stid135_proc.c:121:21: error: variable 'fops_vglna' has initializer but incomplete type
static const struct proc_ops fops_vglna = {
^~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:122:3: error: 'const struct proc_ops' has no member named 'proc_lseek'
.proc_lseek = seq_lseek,
^~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:122:16: warning: excess elements in struct initializer
.proc_lseek = seq_lseek,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:122:16: note: (near initialization for 'fops_vglna')
/home/user/media_build/v4l/stid135_proc.c:123:3: error: 'const struct proc_ops' has no member named 'proc_open'
.proc_open = open_vglna,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:123:15: warning: excess elements in struct initializer
.proc_open = open_vglna,
^~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:123:15: note: (near initialization for 'fops_vglna')
/home/user/media_build/v4l/stid135_proc.c:124:3: error: 'const struct proc_ops' has no member named 'proc_release'
.proc_release = release,
^~~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:124:18: warning: excess elements in struct initializer
.proc_release = release,
^~~~~~~
/home/user/media_build/v4l/stid135_proc.c:124:18: note: (near initialization for 'fops_vglna')
/home/user/media_build/v4l/stid135_proc.c:125:6: error: 'const struct proc_ops' has no member named 'proc_read'
.proc_read = read,
^~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:125:18: warning: excess elements in struct initializer
.proc_read = read,
^~~~
/home/user/media_build/v4l/stid135_proc.c:125:18: note: (near initialization for 'fops_vglna')
/home/user/media_build/v4l/stid135_proc.c: In function 'chip_init_proc':
/home/user/media_build/v4l/stid135_proc.c:135:37: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types]
proc_create(filename, 0777, NULL, &fops_stid135);
^~~~~~~~~~~~~
In file included from ./include/acpi/acpi_bus.h:83,
from ./include/linux/acpi.h:32,
from ./include/linux/i2c.h:13,
from /home/user/media_build/v4l/compat.h:1045,
from <command-line>:
./include/linux/proc_fs.h:50:24: note: expected 'const struct file_operations *' but argument is of type 'const struct proc_ops *'
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops);
^~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:138:37: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types]
proc_create(filename, 0777, NULL, &fops_vglna);
^~~~~~~~~~~
In file included from ./include/acpi/acpi_bus.h:83,
from ./include/linux/acpi.h:32,
from ./include/linux/i2c.h:13,
from /home/user/media_build/v4l/compat.h:1045,
from <command-line>:
./include/linux/proc_fs.h:50:24: note: expected 'const struct file_operations *' but argument is of type 'const struct proc_ops *'
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops);
^~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:141:37: error: passing argument 4 of 'proc_create' from incompatible pointer type [-Werror=incompatible-pointer-types]
proc_create(filename, 0777, NULL, &fops_soc);
^~~~~~~~~
In file included from ./include/acpi/acpi_bus.h:83,
from ./include/linux/acpi.h:32,
from ./include/linux/i2c.h:13,
from /home/user/media_build/v4l/compat.h:1045,
from <command-line>:
./include/linux/proc_fs.h:50:24: note: expected 'const struct file_operations *' but argument is of type 'const struct proc_ops *'
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops);
^~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c: At top level:
/home/user/media_build/v4l/stid135_proc.c:105:30: error: storage size of 'fops_stid135' isn't known
static const struct proc_ops fops_stid135 = {
^~~~~~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:113:30: error: storage size of 'fops_soc' isn't known
static const struct proc_ops fops_soc = {
^~~~~~~~
/home/user/media_build/v4l/stid135_proc.c:121:30: error: storage size of 'fops_vglna' isn't known
static const struct proc_ops fops_vglna = {
^~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:270: /home/user/media_build/v4l/stid135_proc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1762: /home/user/media_build/v4l] Error 2
make[1]: *** [Makefile:53: default] Error 2
make: *** [Makefile:26: all] Error 2