Commit b0871aa
Drivers: hv: Fix the check for HYPERVISOR_CALLBACK_VECTOR
__is_defined(HYPERVISOR_CALLBACK_VECTOR) would return 1, only if
HYPERVISOR_CALLBACK_VECTOR macro is defined as 1. However its value is
0xf3 and this leads to __is_defined() returning 0. The expectation
was to just check whether this MACRO is defined or not and get 1 if
it's defined. Replace __is_defined with #ifdef blocks instead to
fix it.
Fixes: 1dc5df1 ("Drivers: hv: vmbus: Get the IRQ number from DeviceTree")
Cc: stable@kernel.org
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250707084322.1763-1-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250707084322.1763-1-namjain@linux.microsoft.com>1 parent 0d86a8d commit b0871aa
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2509 | 2509 | | |
2510 | 2510 | | |
2511 | 2511 | | |
2512 | | - | |
| 2512 | + | |
2513 | 2513 | | |
2514 | 2514 | | |
2515 | 2515 | | |
| |||
2534 | 2534 | | |
2535 | 2535 | | |
2536 | 2536 | | |
| 2537 | + | |
2537 | 2538 | | |
2538 | 2539 | | |
2539 | 2540 | | |
| |||
2549 | 2550 | | |
2550 | 2551 | | |
2551 | 2552 | | |
2552 | | - | |
2553 | | - | |
| 2553 | + | |
| 2554 | + | |
2554 | 2555 | | |
2555 | 2556 | | |
2556 | | - | |
| 2557 | + | |
2557 | 2558 | | |
2558 | 2559 | | |
2559 | 2560 | | |
| |||
0 commit comments