# class\_attr\_driver\_version error compiling in kernel 4.13

**URL:** <https://forums.digi.com/t/class-attr-driver-version-error-compiling-in-kernel-4-13/18765>\
**Category:** Realport\
**Tags:** kernel, realport\
**Created:** [October 2, 2017, 8:33am UTC](https://forums.digi.com/t/class-attr-driver-version-error-compiling-in-kernel-4-13/18765 "2017-10-02T08:33:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![severach](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@severach](https://forums.digi.com/u/severach)\
**Post date:** [October 2, 2017, 8:33am UTC](https://forums.digi.com/t/class-attr-driver-version-error-compiling-in-kernel-4-13/18765/1 "2017-10-02T08:33:23Z")

</div>

src/dgrp-1.9/driver/build/dgrp\_sysfs.c:71:35: error: expected ‘)’ before numeric constant  
static CLASS\_ATTR(driver\_version, 0400, dgrp\_class\_version\_show, NULL);  
^~~~  
src/dgrp-1.9/driver/build/dgrp\_sysfs.c: In function ‘dgrp\_create\_class\_sysfs\_files’:  
src/dgrp-1.9/driver/build/dgrp\_sysfs.c:191:39: error: ‘class\_attr\_driver\_version’ undeclared (first use in this function); did you mean ‘class\_attribute\_string’?  
ret = class\_create\_file(dgrp\_class, &class\_attr\_driver\_version);  
^ ~~~~~~~~~~~~~~~~~~~~~~~~  
class\_attribute\_string  
src/dgrp-1.9/driver/build/dgrp\_sysfs.c:191:39: note: each undeclared identifier is reported only once for each function it appears in  
src/dgrp-1.9/driver/build/dgrp\_sysfs.c: In function ‘dgrp\_remove\_class\_sysfs\_files’:  
src/dgrp-1.9/driver/build/dgrp\_sysfs.c:223:33: error: ‘class\_attr\_driver\_version’ undeclared (first use in this function); did you mean ‘class\_attribute\_string’?  
class\_remove\_file(dgrp\_class, &class\_attr\_driver\_version);  
^ ~~~~~~~~~~~~~~~~~~~~~~~~  
class\_attribute\_string  
At top level:  
src/dgrp-1.9/driver/build/dgrp\_sysfs.c:64:16: warning: ‘dgrp\_class\_version\_show’ defined but not used [-Wunused-function]  
static ssize\_t dgrp\_class\_version\_show(struct class \*class, struct class\_attribute \*attr, char \*buf)  
^ ~~~~~~~~~~~~~~~~~~~~~~
