Project

General

Profile

Actions

Bug #5362

closed

invalid conversion when using asm/thread.h in c++ code

Added by Alexander Eremin over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2014-11-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

Any inline ASM usage in c++ code causes the compiler to fail:

/usr/include/asm/thread.h: In function '_kthread* threadp()':
/usr/include/asm/thread.h:64:17: error: invalid conversion from 'void*' to '_kthread*' [-fpermissive]
return (__value);

g++ allows to use "fpermissive" flag, clang does not allow such an extension and uniquely treats this as an error

Actions #1

Updated by Electric Monk over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit b808966a943db6fb9a110438cce8184c87e1f62b

commit  b808966a943db6fb9a110438cce8184c87e1f62b
Author: Alexander Eremin <a.eremin@nexenta.com>
Date:   2014-11-29T01:30:58.000Z

    5362 invalid conversion when using asm/thread.h in c++ code
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF