Skip to content

Commit

Permalink
drivers: hv: dxgkrnl: Remove argument in eventfd_signal()
Browse files Browse the repository at this point in the history
Error Logs:
drivers/hv/dxgkrnl/dxgmodule.c: In function ‘signal_host_cpu_event’:
drivers/hv/dxgkrnl/dxgmodule.c:173:17: error: too many arguments to function ‘eventfd_signal’
  173 |                 eventfd_signal(event->cpu_event, 1);
      |                 ^~~~~~~~~~~~~~
In file included from drivers/hv/dxgkrnl/dxgmodule.c:15:
./include/linux/eventfd.h:87:20: note: declared here
   87 | static inline void eventfd_signal(struct eventfd_ctx *ctx)
      |                    ^~~~~~~~~~~~~~

 * In 3652117, eventfd_signal() has been simplified.
 * So We don't need to set "1" argument anymore.
 * This commit remove "1" argument in dxgmodule.c.

Signed-off-by: Yang Jeong Hun <[email protected]>
  • Loading branch information
Nevuly committed Jul 15, 2024
1 parent 0f443bb commit 3749fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/dxgkrnl/dxgmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void signal_host_cpu_event(struct dxghostevent *eventhdr)
}
if (event->cpu_event) {
DXG_TRACE("signal cpu event");
eventfd_signal(event->cpu_event, 1);
eventfd_signal(event->cpu_event);
if (event->destroy_after_signal)
eventfd_ctx_put(event->cpu_event);
} else {
Expand Down

0 comments on commit 3749fd6

Please sign in to comment.