<?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>topic Re: Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...) in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1606995#M24855</link>
    <description>&lt;P&gt;Thanks! This worked to fix the PTAT (Intel Thermal Analysis Tool) installing the driver in CentOS 9 (with kernel 5.14.0-457.el9.x86_64).&lt;/P&gt;&lt;P&gt;For anyone else looking for a fix, I had to edit the file &lt;STRONG&gt;ptusys_drv.c&lt;/STRONG&gt; and change following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ptusysClass = class_create(THIS_MODULE, CLASS_NAME);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ptusysClass = class_create(CLASS_NAME);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jun 2024 04:38:10 GMT</pubDate>
    <dc:creator>Hoon</dc:creator>
    <dc:date>2024-06-15T04:38:10Z</dc:date>
    <item>
      <title>Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1506664#M23692</link>
      <description>&lt;P&gt;VTune 2023.1.0&lt;BR /&gt;Manjaro 23.0.0&lt;BR /&gt;Linux 6.4.3&lt;BR /&gt;GCC 13.1.1&lt;/P&gt;&lt;LI-CODE lang="none"&gt;user@hostname:/opt/intel/oneapi/vtune/latest/sepdk/src
$ sudo ./build-driver

C compiler to use: [ /sbin/gcc ] 
C compiler version: 13.1.1

Make command to use: [ /sbin/make ] 
Make version: 4.4.1

Kernel source directory: [ /lib/modules/6.4.3-1-MANJARO/build ] 
Kernel version: 6.4.3-1-MANJARO

Cleaning workspaces ... 
Done

Building socperf driver ... 
In file included from ./include/linux/linkage.h:7,
                 from ./arch/x86/include/asm/cache.h:5,
                 from ./include/linux/cache.h:6,
                 from ./include/linux/time.h:5,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from /opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperfdrv.c:61:
/opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperfdrv.c: In function ‘socperf_Load’:
./include/linux/export.h:27:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   27 | #define THIS_MODULE (&amp;amp;__this_module)
      |                     ~^~~~~~~~~~~~~~~
      |                      |
      |                      struct module *
/opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperfdrv.c:1738:34: note: in expansion of macro ‘THIS_MODULE’
 1738 |         pmu_class = class_create(THIS_MODULE, SOCPERF_DRIVER_NAME);
      |                                  ^~~~~~~~~~~
In file included from ./include/linux/device.h:31,
                 from ./include/linux/cdev.h:8,
                 from /opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperfdrv.c:69:
./include/linux/device/class.h:230:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
  230 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperfdrv.c:1738:21: error: too many arguments to function ‘class_create’
 1738 |         pmu_class = class_create(THIS_MODULE, SOCPERF_DRIVER_NAME);
      |                     ^~~~~~~~~~~~
./include/linux/device/class.h:230:29: note: declared here
  230 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:252: /opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperfdrv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:2026: /opt/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src] Error 2
make[1]: *** [Makefile:145: default] Error 2
make: *** [Makefile:210: default] Error 2

Failed to build the drivers&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 18:14:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1506664#M23692</guid>
      <dc:creator>AckoftOvak</dc:creator>
      <dc:date>2023-07-20T18:14:09Z</dc:date>
    </item>
    <item>
      <title>Re:Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1506932#M23697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue may be because you are using an unsupported platform. Could you please refer the system requirements and try to use any supported OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html" rel="noopener noreferrer" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you have any further issue, please let us know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jul 2023 10:17:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1506932#M23697</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2023-07-21T10:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1508576#M23721</link>
      <description>&lt;P&gt;I am so happy with this answer. Great job! Thank you so much for your help! I always knew I can rely on Intel. You are the best, guys.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 01:25:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1508576#M23721</guid>
      <dc:creator>AckoftOvak</dc:creator>
      <dc:date>2023-07-27T01:25:46Z</dc:date>
    </item>
    <item>
      <title>Re:Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1509108#M23732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We believe that upon using a supported version of OS from the list (&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html&lt;/A&gt;), the issue will not reoccur. If you are running into issues after moving to a supported version of OS, please let us know and we can continue troubleshooting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:03:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1509108#M23732</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2023-07-28T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1509209#M23733</link>
      <description>&lt;P&gt;Right, changing the OS is an easy solution. No worries, I will fix your bug.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:33:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1509209#M23733</guid>
      <dc:creator>AckoftOvak</dc:creator>
      <dc:date>2023-07-28T17:33:28Z</dc:date>
    </item>
    <item>
      <title>Re:Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1510017#M23745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are sorry for the inconvenience caused. If you are facing any issue after moving to a supported version of OS,  please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Aug 2023 10:31:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1510017#M23745</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2023-08-01T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1510162#M23752</link>
      <description>&lt;P&gt;&amp;gt; We are sorry for the inconvenience caused.&lt;/P&gt;&lt;P&gt;You are not. If you were, you would have fixed it. It's a half an hour work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; If you are facing any issue after moving to a supported version of OS, please post a new question&lt;/P&gt;&lt;P&gt;I got it from the first time. What is your purpose of rubbing it in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;Fine with me. Buy.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:21:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1510162#M23752</guid>
      <dc:creator>AckoftOvak</dc:creator>
      <dc:date>2023-08-01T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1581170#M24473</link>
      <description>&lt;P&gt;replace&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;pmu_class = class_create(THIS_MODULE, SOCPERF_DRIVER_NAME);&lt;/LI-CODE&gt;&lt;P&gt;with&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;pmu_class = class_create(SOCPERF_DRIVER_NAME);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And maybe think about buying Intel again &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 21:11:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1581170#M24473</guid>
      <dc:creator>superlupo</dc:creator>
      <dc:date>2024-03-17T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1606995#M24855</link>
      <description>&lt;P&gt;Thanks! This worked to fix the PTAT (Intel Thermal Analysis Tool) installing the driver in CentOS 9 (with kernel 5.14.0-457.el9.x86_64).&lt;/P&gt;&lt;P&gt;For anyone else looking for a fix, I had to edit the file &lt;STRONG&gt;ptusys_drv.c&lt;/STRONG&gt; and change following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ptusysClass = class_create(THIS_MODULE, CLASS_NAME);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ptusysClass = class_create(CLASS_NAME);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 04:38:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1606995#M24855</guid>
      <dc:creator>Hoon</dc:creator>
      <dc:date>2024-06-15T04:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot build Intel Sampling Drivers (error: passing argument 1 of ‘class_create’ ...)</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1607114#M24860</link>
      <description>&lt;P&gt;There is one discussion of a similar issue, and bug fixes are posted in the following link.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Analyzers/redhat9-5-14-0-kernal-header-changes-break-sepdk-build/m-p/1605449#M24818" target="_blank"&gt;https://community.intel.com/t5/Analyzers/redhat9-5-14-0-kernal-header-changes-break-sepdk-build/m-p/1605449#M24818&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 04:06:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-build-Intel-Sampling-Drivers-error-passing-argument-1-of/m-p/1607114#M24860</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-06-16T04:06:59Z</dc:date>
    </item>
  </channel>
</rss>

