Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp535868lqp; Wed, 12 Jun 2024 08:46:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFgbjkXMxj0Y6WiZogWxTzkVeSgJp+MLHuNygTeu2ufeXKvZtHRMPHv8+gYRMxzGLFdYVSdpGOHekBGDjbJosY5RXgvciNTjTI5Llnzw== X-Google-Smtp-Source: AGHT+IGDD+Brxci225DPyreiC4GsRA0Asp9+A5R/Fs7Owk0OIPUCdCYbc1Dys2P7JlKDo0bxyahQ X-Received: by 2002:a17:906:c9d5:b0:a6f:4a42:1976 with SMTP id a640c23a62f3a-a6f4a421ac7mr116285866b.37.1718207197433; Wed, 12 Jun 2024 08:46:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718207197; cv=pass; d=google.com; s=arc-20160816; b=hbtBLkXmmOV3hTJ8MmLhjEbJ9loQ7Fg8HJa+433a2xERbCTumWnIENyvmyzdaZlkiT EsUD/YNMBfV24WO7lVbB0ZxmO6awl2cr6Kj7vWqNie2YrGoAq/zW0JKPbXKk1L5snpsw yfKyZCwzzRPGwLYboLwg5PRv9w4hUroYS8iUVlubo8UiasYf8H+GNKvF8PHG8LeWGZ89 7d83AuuZYXluphT2/qJXkWxa6EK9cNtzR4fXi+qZU5sIXYrvdwNpSXcnKSkvGgUubRy1 jjrcql3vYNBQXJlIsPW/LKtgpCG3FF137uYBlgspGL7fX/aqefIzZzAz+K1iWR1zUysc KU0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=uRTS/1/7k9uLEpm4344Kh+NF7Wq4enN7raNJbrOkX2M=; fh=8KiPLg/P5rR1FYFCPTdXkbJ+TyDQausZXPmyFabBEBg=; b=R66Dnrj9Zd1+xv+9x2ijo5/5zgCGQj97y3VySJNE2GwTB7CSKUzukV04aJ3NbfpSwK uj1BzvUKyQd9TyOA6+0WDUoXAOSSzvcIJJheE802uJ29GrP96U/Nzig4sI6p7x6gwnjR Gj5HR6b2CKuBp+fltFK+1fqPG5RUzYM75K4UC1Tjmo7zIyGBjyO3MZny4mO06nxU1fBH rYUTAAFX/Rx+3/lGMpU+Ohr/jxPU7caO5pwXEfY5uwYeXULKIXdzZMGLxWExwRd3qVgq NpsKppvTi9dzf3P4j5goe0FWHGUua7qd4+2/9m9nw795GZKTK42VPUD0k/Cpxw0fpqeH F3TQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="OsRo/KQT"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211812-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6effd5bf92si476863166b.475.2024.06.12.08.46.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="OsRo/KQT"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211812-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1A63B1F28195 for ; Wed, 12 Jun 2024 15:46:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A64129CEA; Wed, 12 Jun 2024 15:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OsRo/KQT" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4ED6D1CAB4 for ; Wed, 12 Jun 2024 15:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718207190; cv=none; b=rw7+Nen4tMHPlAMt0W0Rbvfssmd3RZqmZ6aJ6RytKjkS8Q82OcTcS5dQcY1rUHwDL9hD7wf0G5vqVwHvnYzAZG16dqRJPXn/+mZuwcfE1pi1D4b7krpQs3OKlgreaNav/ploVy4v7kI1Mg6O/B9G7ownLE5HiCNVoGQ48LxNACo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718207190; c=relaxed/simple; bh=7ZkQvStndLOmVquQJ9fhk7f7/KaQtGuc/zUBftFVSqA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XIHU21E0bPG56Ml2Cj6lCxNWNftLQP7ViMaE33vTnowCcnOtwLmC8zy3GEt2FBg/d7KgFXv5HU3hLzQufDlImDK2nimfFD9r4d7ZhtI0u09Sg2mPxRydYHK+BdyWm35jyb9Ny1m3pm0nRSiv7WxvOeE/TYok7pN6RGN/Y5xu3L0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OsRo/KQT; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718207188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uRTS/1/7k9uLEpm4344Kh+NF7Wq4enN7raNJbrOkX2M=; b=OsRo/KQThFr2oTTvJ3/YES7CaIckXDK2Oblu+kST80C70P5kNU77bNaNUjIl9Ggnc1xNhj fqMyJKwcbtJaORHPZl0SGVakyyQMleyJ3sYsH1aePC8CHrzVhmpR35KqKTcxYVFdVK37mz wVMBaJ1M3FEO2GP1do8fnzXuH0wvK2s= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-577-_9fc-zS9MAK-KGZGOqqDpA-1; Wed, 12 Jun 2024 11:46:22 -0400 X-MC-Unique: _9fc-zS9MAK-KGZGOqqDpA-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E5D2C195606B; Wed, 12 Jun 2024 15:46:16 +0000 (UTC) Received: from swamp.brq.redhat.com (unknown [10.43.3.192]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 60C4619560AA; Wed, 12 Jun 2024 15:46:12 +0000 (UTC) From: Petr Oros To: netdev@vger.kernel.org Cc: ivecera@redhat.com, Petr Oros , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marcin Domagala , Eric Joyner , Konrad Knitter , Marcin Szycik , intel-wired-lan@lists.osuosl.org (moderated list:INTEL ETHERNET DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ice: use proper macro for testing bit Date: Wed, 12 Jun 2024 17:46:06 +0200 Message-ID: <20240612154607.131914-1-poros@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 Do not use _test_bit() macro for testing bit. The proper macro for this is one without underline. Fixes: 4da71a77fc3b ("ice: read internal temperature sensor") Signed-off-by: Petr Oros --- drivers/net/ethernet/intel/ice/ice_hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_hwmon.c b/drivers/net/ethernet/intel/ice/ice_hwmon.c index e4c2c1bff6c086..b7aa6812510a4f 100644 --- a/drivers/net/ethernet/intel/ice/ice_hwmon.c +++ b/drivers/net/ethernet/intel/ice/ice_hwmon.c @@ -96,7 +96,7 @@ static bool ice_is_internal_reading_supported(struct ice_pf *pf) unsigned long sensors = pf->hw.dev_caps.supported_sensors; - return _test_bit(ICE_SENSOR_SUPPORT_E810_INT_TEMP_BIT, &sensors); + return test_bit(ICE_SENSOR_SUPPORT_E810_INT_TEMP_BIT, &sensors); }; void ice_hwmon_init(struct ice_pf *pf) -- 2.44.2