pkarashchenko commented on code in PR #10086:
URL: https://github.com/apache/nuttx/pull/10086#discussion_r1285158273


##########
include/sched.h:
##########
@@ -252,9 +252,10 @@ int    sched_setaffinity(pid_t pid, size_t cpusetsize,
                          FAR const cpu_set_t *mask);
 int    sched_getaffinity(pid_t pid, size_t cpusetsize, FAR cpu_set_t *mask);
 int    sched_cpucount(FAR const cpu_set_t *set);
-int    sched_getcpu(void);
 #endif /* CONFIG_SMP */
 
+int    sched_getcpu(void);

Review Comment:
   ```suggestion
   #else
   #  define sched_getcpu() 0
   #endif /* CONFIG_SMP */
   ```
   I mean in this way and keep the rest of the code unchanged



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to