From nobody Tue Oct 7 19:53:01 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DF2C1C5D7D; Mon, 7 Jul 2025 08:51:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751878291; cv=none; b=MZZaHYKwmKYG++gGSokcJccsJkmn8ok176jy4WArY0J+Y9uMu3OgU/inwfrYe68t04P12rnaW7r41DHdqJNbdwpw/fST+xt4P94pdToZt/60fdCLP4fZEQfitqUXDSOMN7vY/t3qTnIjqbmZoUrICmcLOqCnJmUwiQB0exnJCuE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751878291; c=relaxed/simple; bh=xyXSjUac5AGCu2QSk4UshgnsvQfLhCvPryWR7LixtPs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VqOfwF4HxSDCvlmmMv1yRlkhe0dyujas/VenTQaiRWMm8uyoGvcVZ7lpDoqIsGSXV+879qUPEGBXANoqpKtmjFtaQ6iEOPX9HPkeZtCsJcPZ7GzhQ9lPJRqJS4jGsn28yV8udHIsEFCOBViRZjDi94jZux7sqA4lnXmtOw2jEDo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=IvUGnz3t; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="IvUGnz3t" Received: from namjain-Virtual-Machine.mshome.net (unknown [4.213.232.46]) by linux.microsoft.com (Postfix) with ESMTPSA id C5632211159A; Mon, 7 Jul 2025 01:43:28 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C5632211159A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1751877811; bh=IzZxjdEKdUzEmCBBclWYxqtPmDvV/k2c6OKLkjo+vRU=; h=From:To:Cc:Subject:Date:From; b=IvUGnz3t3Y0x8uLWeFSC+jA8vYApPVKomRvcYkSTFIzpp5dQq12KESKd5CL3NJVkx jBvaF72SOGq5YbF+FCtQo6JToz3V5TMFHJVY1bWBn68czDBV1tTH9ML4F+rL2a0gPu PZAiLKOdB7813nsGixFM0bDnhiITwh2bAGOtHPQo= From: Naman Jain To: "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Michael Kelley , Roman Kisel Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, stable@kernel.org, namjain@microsoft.com Subject: [PATCH] Drivers: hv: Fix the check for HYPERVISOR_CALLBACK_VECTOR Date: Mon, 7 Jul 2025 14:13:22 +0530 Message-Id: <20250707084322.1763-1-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" __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: 1dc5df133b98 ("Drivers: hv: vmbus: Get the IRQ number from DeviceTre= e") Cc: stable@kernel.org Signed-off-by: Naman Jain Reviewed-by: Roman Kisel