Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* Sparse errors
@ 2019-03-28 18:34 Bharath Vedartham
  2019-03-28 18:37 ` Greg KH
  2019-03-28 18:57 ` Ozgur Kara
  0 siblings, 2 replies; 6+ messages in thread
From: Bharath Vedartham @ 2019-03-28 18:34 UTC (permalink / raw)
  To: kernelnewbies

Hey all,

When I run sparse, I get sparse errors. Sparse says "too many errors".
For example when I run: make C=2 fs/ext4/
This is the error messages I get for one of the files. 
  CHECK   fs/ext4/ioctl.c
  ./arch/x86/include/asm/nospec-branch.h:146:38: warning: Unknown escape
  '@'
  ./include/linux/compiler.h:190:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/compiler.h:208:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/compiler.h:214:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./arch/x86/include/asm/barrier.h:36:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/kasan-checks.h:9:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/kasan-checks.h:11:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/compiler.h:271:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/compiler.h:302:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./arch/x86/include/asm/bitops.h:66:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:89:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:104:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:126:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:132:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:137:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:162:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:177:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:191:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:212:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:224:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:239:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:258:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:279:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:291:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:311:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:316:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:322:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:354:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:368:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:382:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:404:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:445:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/bitops.h:487:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/sched.h:13:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/arch_hweight.h:17:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/arch_hweight.h:28:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/arch_hweight.h:33:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/asm/arch_hweight.h:45:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/uapi/asm/swab.h:8:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./arch/x86/include/uapi/asm/swab.h:15:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/swab.h:47:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:56:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:65:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:78:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:87:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:161:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:174:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:187:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:202:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:217:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:230:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:242:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:255:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:270:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/swab.h:285:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:44:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:48:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:52:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:56:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:60:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:64:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:68:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:72:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:76:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:80:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:84:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/uapi/linux/byteorder/little_endian.h:88:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:144:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:149:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:154:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:160:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:168:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:176:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:181:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:186:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:191:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/byteorder/generic.h:199:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:12:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:18:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:24:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:53:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:58:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:63:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:68:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:73:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:78:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:83:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:88:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/asm-generic/bitops/le.h:93:8: error: attribute
  '__gnu_inline__': unknown attribute
  ./include/linux/bitops.h:43:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:51:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:61:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:71:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:81:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:91:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:101:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:111:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:121:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:131:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:143:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:154:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:160:8: error: attribute '__gnu_inline__':
  unknown attribute
  ./include/linux/bitops.h:167:8: error: too many errors

I am using gcc 5.4. 

I am unable to debug this issue and am not finding much help on the
internet.

Please do ask if more info is required.

Thank you

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Sparse errors
  2019-03-28 18:34 Sparse errors Bharath Vedartham
@ 2019-03-28 18:37 ` Greg KH
  2019-03-28 19:03   ` Ozgur Kara
  2019-03-28 19:23   ` Bharath Vedartham
  2019-03-28 18:57 ` Ozgur Kara
  1 sibling, 2 replies; 6+ messages in thread
From: Greg KH @ 2019-03-28 18:37 UTC (permalink / raw)
  To: Bharath Vedartham; +Cc: kernelnewbies

On Fri, Mar 29, 2019 at 12:04:17AM +0530, Bharath Vedartham wrote:
> Hey all,
> 
> When I run sparse, I get sparse errors. Sparse says "too many errors".
> For example when I run: make C=2 fs/ext4/
> This is the error messages I get for one of the files. 
>   CHECK   fs/ext4/ioctl.c
>   ./arch/x86/include/asm/nospec-branch.h:146:38: warning: Unknown escape
>   '@'
>   ./include/linux/compiler.h:190:8: error: attribute '__gnu_inline__':
>   unknown attribute

<snip>

Upgrade your version of sparse, use the version on git.kernel.org and
you should be fine.

good luck!

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Sparse errors
  2019-03-28 18:34 Sparse errors Bharath Vedartham
  2019-03-28 18:37 ` Greg KH
@ 2019-03-28 18:57 ` Ozgur Kara
  2019-03-28 19:24   ` Bharath Vedartham
  1 sibling, 1 reply; 6+ messages in thread
From: Ozgur Kara @ 2019-03-28 18:57 UTC (permalink / raw)
  To: Bharath Vedartham, kernelnewbies



28.03.2019, 22:34, "Bharath Vedartham" <linux.bhar@gmail.com>:
> Hey all,
>
> When I run sparse, I get sparse errors. Sparse says "too many errors".
> For example when I run: make C=2 fs/ext4/
> This is the error messages I get for one of the files.
>   CHECK fs/ext4/ioctl.c
>   ./arch/x86/include/asm/nospec-branch.h:146:38: warning: Unknown escape
>   '@'
>   ./include/linux/compiler.h:190:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/compiler.h:208:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/compiler.h:214:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./arch/x86/include/asm/barrier.h:36:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/kasan-checks.h:9:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/kasan-checks.h:11:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/compiler.h:271:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/compiler.h:302:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./arch/x86/include/asm/bitops.h:66:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:89:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:104:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:126:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:132:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:137:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:162:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:177:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:191:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:212:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:224:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:239:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:258:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:279:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:291:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:311:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:316:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:322:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:354:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:368:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:382:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:404:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:445:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/bitops.h:487:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/sched.h:13:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/arch_hweight.h:17:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/arch_hweight.h:28:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/arch_hweight.h:33:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/asm/arch_hweight.h:45:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/uapi/asm/swab.h:8:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./arch/x86/include/uapi/asm/swab.h:15:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/swab.h:47:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:56:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:65:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:78:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:87:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:161:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:174:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:187:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:202:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:217:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:230:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:242:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:255:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:270:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/swab.h:285:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:44:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:48:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:52:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:56:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:60:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:64:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:68:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:72:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:76:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:80:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:84:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/uapi/linux/byteorder/little_endian.h:88:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:144:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:149:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:154:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:160:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:168:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:176:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:181:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:186:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:191:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/byteorder/generic.h:199:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:12:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:18:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:24:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:53:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:58:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:63:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:68:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:73:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:78:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:83:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:88:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/asm-generic/bitops/le.h:93:8: error: attribute
>   '__gnu_inline__': unknown attribute
>   ./include/linux/bitops.h:43:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:51:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:61:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:71:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:81:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:91:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:101:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:111:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:121:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:131:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:143:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:154:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:160:8: error: attribute '__gnu_inline__':
>   unknown attribute
>   ./include/linux/bitops.h:167:8: error: too many errors
>
> I am using gcc 5.4.


Hello,

what is your sparse version?
the latest version 0.6.0 has been released.

git://git.kernel.org/pub/scm/devel/sparse/sparse.git

Regards

> I am unable to debug this issue and am not finding much help on the
> internet.
>
> Please do ask if more info is required.
>
> Thank you
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Sparse errors
  2019-03-28 18:37 ` Greg KH
@ 2019-03-28 19:03   ` Ozgur Kara
  2019-03-28 19:23   ` Bharath Vedartham
  1 sibling, 0 replies; 6+ messages in thread
From: Ozgur Kara @ 2019-03-28 19:03 UTC (permalink / raw)
  To: Greg KH, Bharath Vedartham; +Cc: kernelnewbies



28.03.2019, 22:38, "Greg KH" <greg@kroah.com>:
> On Fri, Mar 29, 2019 at 12:04:17AM +0530, Bharath Vedartham wrote:
>>  Hey all,
>>
>>  When I run sparse, I get sparse errors. Sparse says "too many errors".
>>  For example when I run: make C=2 fs/ext4/
>>  This is the error messages I get for one of the files.
>>    CHECK fs/ext4/ioctl.c
>>    ./arch/x86/include/asm/nospec-branch.h:146:38: warning: Unknown escape
>>    '@'
>>    ./include/linux/compiler.h:190:8: error: attribute '__gnu_inline__':
>>    unknown attribute
>
> <snip>
>
> Upgrade your version of sparse, use the version on git.kernel.org and
> you should be fine.
>

ops, i don't seen your e-mail and yes allright.
not problem with v0.6.0.

Regards

> good luck!
>
> greg k-h
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Sparse errors
  2019-03-28 18:37 ` Greg KH
  2019-03-28 19:03   ` Ozgur Kara
@ 2019-03-28 19:23   ` Bharath Vedartham
  1 sibling, 0 replies; 6+ messages in thread
From: Bharath Vedartham @ 2019-03-28 19:23 UTC (permalink / raw)
  To: Greg KH; +Cc: kernelnewbies

On Thu, Mar 28, 2019 at 07:37:46PM +0100, Greg KH wrote:
> On Fri, Mar 29, 2019 at 12:04:17AM +0530, Bharath Vedartham wrote:
> > Hey all,
> > 
> > When I run sparse, I get sparse errors. Sparse says "too many errors".
> > For example when I run: make C=2 fs/ext4/
> > This is the error messages I get for one of the files. 
> >   CHECK   fs/ext4/ioctl.c
> >   ./arch/x86/include/asm/nospec-branch.h:146:38: warning: Unknown escape
> >   '@'
> >   ./include/linux/compiler.h:190:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> 
> <snip>
> 
> Upgrade your version of sparse, use the version on git.kernel.org and
> you should be fine.
> 
> good luck!
> 
> greg k-h
Just did that and it worked! Thanks!

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Sparse errors
  2019-03-28 18:57 ` Ozgur Kara
@ 2019-03-28 19:24   ` Bharath Vedartham
  0 siblings, 0 replies; 6+ messages in thread
From: Bharath Vedartham @ 2019-03-28 19:24 UTC (permalink / raw)
  To: Ozgur Kara; +Cc: kernelnewbies

On Thu, Mar 28, 2019 at 10:57:34PM +0400, Ozgur Kara wrote:
> 
> 
> 28.03.2019, 22:34, "Bharath Vedartham" <linux.bhar@gmail.com>:
> > Hey all,
> >
> > When I run sparse, I get sparse errors. Sparse says "too many errors".
> > For example when I run: make C=2 fs/ext4/
> > This is the error messages I get for one of the files.
> >   CHECK fs/ext4/ioctl.c
> >   ./arch/x86/include/asm/nospec-branch.h:146:38: warning: Unknown escape
> >   '@'
> >   ./include/linux/compiler.h:190:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/compiler.h:208:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/compiler.h:214:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./arch/x86/include/asm/barrier.h:36:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/kasan-checks.h:9:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/kasan-checks.h:11:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/compiler.h:271:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/compiler.h:302:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./arch/x86/include/asm/bitops.h:66:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:89:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:104:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:126:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:132:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:137:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:162:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:177:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:191:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:212:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:224:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:239:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:258:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:279:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:291:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:311:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:316:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:322:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:354:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:368:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:382:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:404:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:445:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/bitops.h:487:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/sched.h:13:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/arch_hweight.h:17:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/arch_hweight.h:28:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/arch_hweight.h:33:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/asm/arch_hweight.h:45:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/uapi/asm/swab.h:8:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./arch/x86/include/uapi/asm/swab.h:15:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/swab.h:47:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:56:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:65:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:78:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:87:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:161:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:174:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:187:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:202:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:217:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:230:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:242:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:255:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:270:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/swab.h:285:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:44:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:48:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:52:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:56:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:60:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:64:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:68:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:72:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:76:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:80:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:84:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/uapi/linux/byteorder/little_endian.h:88:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:144:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:149:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:154:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:160:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:168:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:176:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:181:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:186:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:191:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/byteorder/generic.h:199:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:12:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:18:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:24:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:53:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:58:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:63:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:68:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:73:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:78:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:83:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:88:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/asm-generic/bitops/le.h:93:8: error: attribute
> >   '__gnu_inline__': unknown attribute
> >   ./include/linux/bitops.h:43:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:51:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:61:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:71:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:81:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:91:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:101:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:111:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:121:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:131:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:143:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:154:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:160:8: error: attribute '__gnu_inline__':
> >   unknown attribute
> >   ./include/linux/bitops.h:167:8: error: too many errors
> >
> > I am using gcc 5.4.
> 
> 
> Hello,
> 
> what is your sparse version?
> the latest version 0.6.0 has been released.
> 
> git://git.kernel.org/pub/scm/devel/sparse/sparse.git
> 
> Regards
>
I am running sparse 0.5.0. Everything is fine after 0.6.0! Thanks!
> > I am unable to debug this issue and am not finding much help on the
> > internet.
> >
> > Please do ask if more info is required.
> >
> > Thank you
> >

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28 18:34 Sparse errors Bharath Vedartham
2019-03-28 18:37 ` Greg KH
2019-03-28 19:03   ` Ozgur Kara
2019-03-28 19:23   ` Bharath Vedartham
2019-03-28 18:57 ` Ozgur Kara
2019-03-28 19:24   ` Bharath Vedartham

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox