<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>SensorsのトピックProblem width linux driver for fxos8700/fxas2100x</title>
    <link>https://community.nxp.com/t5/Sensors/Problem-width-linux-driver-for-fxos8700-fxas2100x/m-p/841675#M5324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.&lt;BR /&gt;I connected FXAS21002C and FXOS8700CQ to my system via spi and i2c. Devices normally work if they are accessed directly. Now I wanted to add the drivers of these devices to the kernel, but when I compile, I get a bunch of errors. What can be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@Cherkanov-M:~/linux-socfpga-rel_socfpga-4.19_18.11.03_pr# make -j 4 uImage&lt;BR /&gt;scripts/kconfig/conf --syncconfig Kconfig&lt;BR /&gt; CALL scripts/checksyscalls.sh&lt;BR /&gt; CHK include/generated/compile.h&lt;BR /&gt; GZIP kernel/config_data.gz&lt;BR /&gt; UPD kernel/config_data.h&lt;BR /&gt; CC kernel/configs.o&lt;BR /&gt; AR kernel/built-in.a&lt;BR /&gt; CC drivers/misc/fxos8700.o&lt;BR /&gt; CC drivers/misc/fxas2100x.o&lt;BR /&gt;drivers/misc/fxos8700.c: In function ‘fxos8700_acc_ioctl’:&lt;BR /&gt;drivers/misc/fxos8700.c:299:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]&lt;BR /&gt; if(copy_from_user(&amp;amp;delay,argp,sizeof(int)));&lt;BR /&gt; ^~&lt;BR /&gt;drivers/misc/fxos8700.c:300:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’&lt;BR /&gt; {&lt;BR /&gt; ^&lt;BR /&gt;drivers/misc/fxos8700.c: In function ‘fxos8700_mag_ioctl’:&lt;BR /&gt;drivers/misc/fxos8700.c:405:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]&lt;BR /&gt; if(copy_from_user(&amp;amp;delay,argp,sizeof(int)));&lt;BR /&gt; ^~&lt;BR /&gt;drivers/misc/fxos8700.c:406:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’&lt;BR /&gt; {&lt;BR /&gt; ^&lt;BR /&gt;In file included from ./include/linux/kernel.h:15:0,&lt;BR /&gt; from ./include/linux/list.h:9,&lt;BR /&gt; from ./include/linux/module.h:9,&lt;BR /&gt; from drivers/misc/fxos8700.c:22:&lt;BR /&gt;drivers/misc/fxos8700.c: At top level:&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:595:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(enable, 0666,fxos8700_enable_show, fxos8700_enable_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:597:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(poll_delay,0666,fxos8700_poll_delay_show, fxos8700_poll_delay_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:599:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(position, 0666,fxos8700_position_show, fxos8700_position_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:601:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(data, 0666,fxos8700_data_show, NULL);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:628:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(motion_detect, 0666,fxos8700_motion_detect_show, fxos8700_motion_detect_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:807:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxos8700_probe’&lt;BR /&gt; static int __devinit fxos8700_probe(struct i2c_client *client,&lt;BR /&gt; ^~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:896:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxos8700_remove’&lt;BR /&gt; static int __devexit fxos8700_remove(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:946:11: error: ‘fxos8700_probe’ undeclared here (not in a function); did you mean ‘fxos8700_driver’?&lt;BR /&gt; .probe = fxos8700_probe,&lt;BR /&gt; ^~~~~~~~~~~~~~&lt;BR /&gt; fxos8700_driver&lt;BR /&gt;drivers/misc/fxos8700.c:947:12: error: implicit declaration of function ‘__devexit_p’; did you mean ‘__exit_p’? [-Werror=implicit-function-declaration]&lt;BR /&gt; .remove = __devexit_p(fxos8700_remove),&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt; __exit_p&lt;BR /&gt;drivers/misc/fxas2100x.c: In function ‘fxas2100x_ioctl’:&lt;BR /&gt;drivers/misc/fxas2100x.c:320:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]&lt;BR /&gt; if(copy_from_user(&amp;amp;delay,argp,sizeof(int)));&lt;BR /&gt; ^~&lt;BR /&gt;drivers/misc/fxas2100x.c:321:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’&lt;BR /&gt; {&lt;BR /&gt; ^&lt;BR /&gt;drivers/misc/fxos8700.c:947:24: error: ‘fxos8700_remove’ undeclared here (not in a function); did you mean ‘fxos8700_resume’?&lt;BR /&gt; .remove = __devexit_p(fxos8700_remove),&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt; fxos8700_resume&lt;BR /&gt;In file included from ./include/linux/kernel.h:15:0,&lt;BR /&gt; from ./include/linux/list.h:9,&lt;BR /&gt; from ./include/linux/module.h:9,&lt;BR /&gt; from drivers/misc/fxas2100x.c:20:&lt;BR /&gt;drivers/misc/fxas2100x.c: At top level:&lt;BR /&gt;drivers/misc/fxos8700.c:764:20: warning: ‘fxos8700_irq_handler’ defined but not used [-Wunused-function]&lt;BR /&gt; static irqreturn_t fxos8700_irq_handler(int irq, void *dev)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:460:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(enable, 0666, fxas2100x_enable_show, fxas2100x_enable_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:748:12: warning: ‘fxos8700_unregister_input_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_unregister_input_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:462:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(poll_delay, 0666,fxas2100x_poll_delay_show, fxas2100x_poll_delay_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:696:12: warning: ‘fxos8700_register_input_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_register_input_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:464:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(position, 0666,fxas2100x_position_show, fxas2100x_position_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:682:12: warning: ‘fxos8700_unregister_sysfs_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_unregister_sysfs_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:466:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(data, 0666,fxas2100x_data_show, NULL);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:656:12: warning: ‘fxos8700_register_sysfs_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_register_sysfs_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:503:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxas2100x_probe’&lt;BR /&gt; static int __devinit fxas2100x_probe(struct i2c_client *client,&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:462:26: warning: ‘fxos8700_mag_device’ defined but not used [-Wunused-variable]&lt;BR /&gt; static struct miscdevice fxos8700_mag_device = {&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:595:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxas2100x_remove’&lt;BR /&gt; static int __devexit fxas2100x_remove(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:456:26: warning: ‘fxos8700_acc_device’ defined but not used [-Wunused-variable]&lt;BR /&gt; static struct miscdevice fxos8700_acc_device = {&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:187:12: warning: ‘fxos8700_device_init’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_device_init(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:647:12: error: ‘fxas2100x_probe’ undeclared here (not in a function); did you mean ‘fxas2100x_driver’?&lt;BR /&gt; .probe = fxas2100x_probe,&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt; fxas2100x_driver&lt;BR /&gt;cc1: some warnings being treated as errors&lt;BR /&gt;drivers/misc/fxas2100x.c:648:13: error: implicit declaration of function ‘__devexit_p’; did you mean ‘__exit_p’? [-Werror=implicit-function-declaration]&lt;BR /&gt; .remove = __devexit_p(fxas2100x_remove),&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt; __exit_p&lt;BR /&gt;scripts/Makefile.build:305: recipe for target 'drivers/misc/fxos8700.o' failed&lt;BR /&gt;make[2]: *** [drivers/misc/fxos8700.o] Error 1&lt;BR /&gt;make[2]: *** Waiting for unfinished jobs....&lt;BR /&gt;drivers/misc/fxas2100x.c:648:25: error: ‘fxas2100x_remove’ undeclared here (not in a function); did you mean ‘fxas2100x_resume’?&lt;BR /&gt; .remove = __devexit_p(fxas2100x_remove),&lt;BR /&gt; ^~~~~~~~~~~~~~~~&lt;BR /&gt; fxas2100x_resume&lt;BR /&gt;drivers/misc/fxas2100x.c:481:20: warning: ‘fxas2100x_irq_handler’ defined but not used [-Wunused-function]&lt;BR /&gt; static irqreturn_t fxas2100x_irq_handler(int irq, void *dev)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:370:26: warning: ‘fxas2100x_device’ defined but not used [-Wunused-variable]&lt;BR /&gt; static struct miscdevice fxas2100x_device = {&lt;BR /&gt; ^~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:137:12: warning: ‘fxas2100x_device_init’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxas2100x_device_init(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;cc1: some warnings being treated as errors&lt;BR /&gt;scripts/Makefile.build:305: recipe for target 'drivers/misc/fxas2100x.o' failed&lt;BR /&gt;make[2]: *** [drivers/misc/fxas2100x.o] Error 1&lt;BR /&gt;scripts/Makefile.build:546: recipe for target 'drivers/misc' failed&lt;BR /&gt;make[1]: *** [drivers/misc] Error 2&lt;BR /&gt;make[1]: *** Waiting for unfinished jobs....&lt;BR /&gt;Makefile:1052: recipe for target 'drivers' failed&lt;BR /&gt;make: *** [drivers] Error 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 21:55:23 GMT</pubDate>
    <dc:creator>r6mf49t2</dc:creator>
    <dc:date>2026-02-03T21:55:23Z</dc:date>
    <item>
      <title>Problem width linux driver for fxos8700/fxas2100x</title>
      <link>https://community.nxp.com/t5/Sensors/Problem-width-linux-driver-for-fxos8700-fxas2100x/m-p/841675#M5324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.&lt;BR /&gt;I connected FXAS21002C and FXOS8700CQ to my system via spi and i2c. Devices normally work if they are accessed directly. Now I wanted to add the drivers of these devices to the kernel, but when I compile, I get a bunch of errors. What can be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@Cherkanov-M:~/linux-socfpga-rel_socfpga-4.19_18.11.03_pr# make -j 4 uImage&lt;BR /&gt;scripts/kconfig/conf --syncconfig Kconfig&lt;BR /&gt; CALL scripts/checksyscalls.sh&lt;BR /&gt; CHK include/generated/compile.h&lt;BR /&gt; GZIP kernel/config_data.gz&lt;BR /&gt; UPD kernel/config_data.h&lt;BR /&gt; CC kernel/configs.o&lt;BR /&gt; AR kernel/built-in.a&lt;BR /&gt; CC drivers/misc/fxos8700.o&lt;BR /&gt; CC drivers/misc/fxas2100x.o&lt;BR /&gt;drivers/misc/fxos8700.c: In function ‘fxos8700_acc_ioctl’:&lt;BR /&gt;drivers/misc/fxos8700.c:299:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]&lt;BR /&gt; if(copy_from_user(&amp;amp;delay,argp,sizeof(int)));&lt;BR /&gt; ^~&lt;BR /&gt;drivers/misc/fxos8700.c:300:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’&lt;BR /&gt; {&lt;BR /&gt; ^&lt;BR /&gt;drivers/misc/fxos8700.c: In function ‘fxos8700_mag_ioctl’:&lt;BR /&gt;drivers/misc/fxos8700.c:405:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]&lt;BR /&gt; if(copy_from_user(&amp;amp;delay,argp,sizeof(int)));&lt;BR /&gt; ^~&lt;BR /&gt;drivers/misc/fxos8700.c:406:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’&lt;BR /&gt; {&lt;BR /&gt; ^&lt;BR /&gt;In file included from ./include/linux/kernel.h:15:0,&lt;BR /&gt; from ./include/linux/list.h:9,&lt;BR /&gt; from ./include/linux/module.h:9,&lt;BR /&gt; from drivers/misc/fxos8700.c:22:&lt;BR /&gt;drivers/misc/fxos8700.c: At top level:&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:595:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(enable, 0666,fxos8700_enable_show, fxos8700_enable_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:597:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(poll_delay,0666,fxos8700_poll_delay_show, fxos8700_poll_delay_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:599:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(position, 0666,fxos8700_position_show, fxos8700_position_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:601:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(data, 0666,fxos8700_data_show, NULL);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:628:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(motion_detect, 0666,fxos8700_motion_detect_show, fxos8700_motion_detect_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:807:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxos8700_probe’&lt;BR /&gt; static int __devinit fxos8700_probe(struct i2c_client *client,&lt;BR /&gt; ^~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:896:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxos8700_remove’&lt;BR /&gt; static int __devexit fxos8700_remove(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:946:11: error: ‘fxos8700_probe’ undeclared here (not in a function); did you mean ‘fxos8700_driver’?&lt;BR /&gt; .probe = fxos8700_probe,&lt;BR /&gt; ^~~~~~~~~~~~~~&lt;BR /&gt; fxos8700_driver&lt;BR /&gt;drivers/misc/fxos8700.c:947:12: error: implicit declaration of function ‘__devexit_p’; did you mean ‘__exit_p’? [-Werror=implicit-function-declaration]&lt;BR /&gt; .remove = __devexit_p(fxos8700_remove),&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt; __exit_p&lt;BR /&gt;drivers/misc/fxas2100x.c: In function ‘fxas2100x_ioctl’:&lt;BR /&gt;drivers/misc/fxas2100x.c:320:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]&lt;BR /&gt; if(copy_from_user(&amp;amp;delay,argp,sizeof(int)));&lt;BR /&gt; ^~&lt;BR /&gt;drivers/misc/fxas2100x.c:321:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’&lt;BR /&gt; {&lt;BR /&gt; ^&lt;BR /&gt;drivers/misc/fxos8700.c:947:24: error: ‘fxos8700_remove’ undeclared here (not in a function); did you mean ‘fxos8700_resume’?&lt;BR /&gt; .remove = __devexit_p(fxos8700_remove),&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt; fxos8700_resume&lt;BR /&gt;In file included from ./include/linux/kernel.h:15:0,&lt;BR /&gt; from ./include/linux/list.h:9,&lt;BR /&gt; from ./include/linux/module.h:9,&lt;BR /&gt; from drivers/misc/fxas2100x.c:20:&lt;BR /&gt;drivers/misc/fxas2100x.c: At top level:&lt;BR /&gt;drivers/misc/fxos8700.c:764:20: warning: ‘fxos8700_irq_handler’ defined but not used [-Wunused-function]&lt;BR /&gt; static irqreturn_t fxos8700_irq_handler(int irq, void *dev)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:460:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(enable, 0666, fxas2100x_enable_show, fxas2100x_enable_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:748:12: warning: ‘fxos8700_unregister_input_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_unregister_input_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:462:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(poll_delay, 0666,fxas2100x_poll_delay_show, fxas2100x_poll_delay_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:696:12: warning: ‘fxos8700_register_input_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_register_input_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:464:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(position, 0666,fxas2100x_position_show, fxas2100x_position_store);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:682:12: warning: ‘fxos8700_unregister_sysfs_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_unregister_sysfs_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/build_bug.h:29:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))&lt;BR /&gt; ^&lt;BR /&gt;./include/linux/kernel.h:1033:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/sysfs.h:103:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;./include/linux/device.h:591:45: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)&lt;BR /&gt; ^~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:466:8: note: in expansion of macro ‘DEVICE_ATTR’&lt;BR /&gt; static DEVICE_ATTR(data, 0666,fxas2100x_data_show, NULL);&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:656:12: warning: ‘fxos8700_register_sysfs_device’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_register_sysfs_device(struct fxos8700_data *pdata)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:503:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxas2100x_probe’&lt;BR /&gt; static int __devinit fxas2100x_probe(struct i2c_client *client,&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:462:26: warning: ‘fxos8700_mag_device’ defined but not used [-Wunused-variable]&lt;BR /&gt; static struct miscdevice fxos8700_mag_device = {&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:595:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fxas2100x_remove’&lt;BR /&gt; static int __devexit fxas2100x_remove(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:456:26: warning: ‘fxos8700_acc_device’ defined but not used [-Wunused-variable]&lt;BR /&gt; static struct miscdevice fxos8700_acc_device = {&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxos8700.c:187:12: warning: ‘fxos8700_device_init’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxos8700_device_init(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:647:12: error: ‘fxas2100x_probe’ undeclared here (not in a function); did you mean ‘fxas2100x_driver’?&lt;BR /&gt; .probe = fxas2100x_probe,&lt;BR /&gt; ^~~~~~~~~~~~~~~&lt;BR /&gt; fxas2100x_driver&lt;BR /&gt;cc1: some warnings being treated as errors&lt;BR /&gt;drivers/misc/fxas2100x.c:648:13: error: implicit declaration of function ‘__devexit_p’; did you mean ‘__exit_p’? [-Werror=implicit-function-declaration]&lt;BR /&gt; .remove = __devexit_p(fxas2100x_remove),&lt;BR /&gt; ^~~~~~~~~~~&lt;BR /&gt; __exit_p&lt;BR /&gt;scripts/Makefile.build:305: recipe for target 'drivers/misc/fxos8700.o' failed&lt;BR /&gt;make[2]: *** [drivers/misc/fxos8700.o] Error 1&lt;BR /&gt;make[2]: *** Waiting for unfinished jobs....&lt;BR /&gt;drivers/misc/fxas2100x.c:648:25: error: ‘fxas2100x_remove’ undeclared here (not in a function); did you mean ‘fxas2100x_resume’?&lt;BR /&gt; .remove = __devexit_p(fxas2100x_remove),&lt;BR /&gt; ^~~~~~~~~~~~~~~~&lt;BR /&gt; fxas2100x_resume&lt;BR /&gt;drivers/misc/fxas2100x.c:481:20: warning: ‘fxas2100x_irq_handler’ defined but not used [-Wunused-function]&lt;BR /&gt; static irqreturn_t fxas2100x_irq_handler(int irq, void *dev)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:370:26: warning: ‘fxas2100x_device’ defined but not used [-Wunused-variable]&lt;BR /&gt; static struct miscdevice fxas2100x_device = {&lt;BR /&gt; ^~~~~~~~~~~~~~~~&lt;BR /&gt;drivers/misc/fxas2100x.c:137:12: warning: ‘fxas2100x_device_init’ defined but not used [-Wunused-function]&lt;BR /&gt; static int fxas2100x_device_init(struct i2c_client *client)&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;cc1: some warnings being treated as errors&lt;BR /&gt;scripts/Makefile.build:305: recipe for target 'drivers/misc/fxas2100x.o' failed&lt;BR /&gt;make[2]: *** [drivers/misc/fxas2100x.o] Error 1&lt;BR /&gt;scripts/Makefile.build:546: recipe for target 'drivers/misc' failed&lt;BR /&gt;make[1]: *** [drivers/misc] Error 2&lt;BR /&gt;make[1]: *** Waiting for unfinished jobs....&lt;BR /&gt;Makefile:1052: recipe for target 'drivers' failed&lt;BR /&gt;make: *** [drivers] Error 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Problem-width-linux-driver-for-fxos8700-fxas2100x/m-p/841675#M5324</guid>
      <dc:creator>r6mf49t2</dc:creator>
      <dc:date>2026-02-03T21:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem width linux driver for fxos8700/fxas2100x</title>
      <link>https://community.nxp.com/t5/Sensors/Problem-width-linux-driver-for-fxos8700-fxas2100x/m-p/841676#M5325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;fixed the driver, now they are compiled. If someone encounters the same problem:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:41:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Problem-width-linux-driver-for-fxos8700-fxas2100x/m-p/841676#M5325</guid>
      <dc:creator>r6mf49t2</dc:creator>
      <dc:date>2018-12-07T09:41:49Z</dc:date>
    </item>
  </channel>
</rss>

