Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp688938lqs; Fri, 14 Jun 2024 02:44:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcNJDm+taG5GjEKG6DgTpYAxt+B5vHv+Xm+r46/rCP2LZwulYfAhBwZdxiFBpFBf4UvD3LxWkUfV1F4VdGLgoWKthNXYTjVgIsbDOEoQ== X-Google-Smtp-Source: AGHT+IFzoLxLnmvkgawD5XyUeKRMF0k4GrdZUcepWnHWTbXsFQLPeBogJbFXp8FPIKzNmI2U5w/k X-Received: by 2002:a05:620a:4011:b0:795:5d9b:110 with SMTP id af79cd13be357-798d2588f1dmr220311985a.55.1718358281008; Fri, 14 Jun 2024 02:44:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718358280; cv=pass; d=google.com; s=arc-20160816; b=GBD9OQaHmY/c370LYFKT6gaWL4jTp7skfLS/GTqf4ebtQqT24EiySmpxz4FICgoZo/ 1KMpEVawCdo8Cn/1v0qG/AYuse1nPBxLJXJxP9BfmtYjLxHyHUHOfY2uMWS29m5AUzwq JTI67j0aNjpP0I2JmIxxrZBendpWBXHSusp0nVk71tGQvr9HUN3eqptI/ZNnMRe3zu84 UrtUwCHAwxhZ7M+D8z8K92b5IS/97FDdEH2xMfDQFzKiERNd2fGuHDnT7pXfyZY1sPx7 5q8sVtl9JBmTNujj4NgB6Mk/uBEMpG/z4gePJCVKwG2FHziyaEPIVoKJYrhteVY7Jlcu 8+Ew== 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=MfqTN/CbY1HyFIhalUL/iKeJVM9fDG1FDPUMa7yrEEo=; fh=V3EFdbQWt3xv42FW4QjsJQQHuvJW4rfwBDfotSfBzqA=; b=ESk53rqOGlvpSfylM6FVMIeqMsMVmPQwTI2McraeI55tCiEogAQoL2BDIhSFyTYnlF /Rv+76wHBJeMXji8Eg6lwwnnWmoD3Y9+sDNeG4sUU3eGjVfT19GRpYyRWjYfpxvSD93B jMgL2pXljVWCVy6SsoAyd0S08uJ6K7DnhyWsz6HzIAn38614iLkbZhMYJr6JxGZvjrSq DHGJ8WECVNpz4+ePIUVwt04IiLY+ltlTnQbp2dGbg3xwQsnxa+1QvpFDZjI2t5oS/akF jr98p1gpWocMJ8eGfRr4gtfL9DKgJHxBxRbf/5bDcxqskqjlEmZ1p2iirHGflC2mHorf ujlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OTFhVD5X; 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-214660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798aac9cbfdsi331643885a.19.2024.06.14.02.44.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OTFhVD5X; 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-214660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214660-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B7DCF1C222AB for ; Fri, 14 Jun 2024 09:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68E2C194081; Fri, 14 Jun 2024 09:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OTFhVD5X" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 32BC8192B90 for ; Fri, 14 Jun 2024 09:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358237; cv=none; b=SfQhLJgBGA5tCCsCASedg/jMh9l7vz2RAdYXuL9WBZ/ac4wQAG/BZ7SHIvF7AIpIubj5IxIW9okKCYYvZL0htowrGmv/uH9JKgqUFMUd/REiQWJqt3sOEKsjLAsouP909VY+7dJ/CCNzjsGIn73JKLHWXZIRLsh8+qDjvn0TnkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358237; c=relaxed/simple; bh=kOpVHQ8v8RsfD5nMX+U2u0NgqPZFZdrU4RP0CSCPj1I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EDj2kfyd4Qk1lEHrSTJXmNb8WRIUf/t7VYHVlxVjVoWX0aBrFLs5s7/ZRO6KjGytSEyp8XNsn80OCjOVeoIEBv3BVpd6CzwLcV+K5Pv+99X/mbi+QGMPwQHXSOolAB5HbMn9ajaZBpkdkUPBe4wIcpFdzVcQPeZLgyrMQ4chNGw= 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=OTFhVD5X; arc=none smtp.client-ip=170.10.133.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=1718358235; 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=MfqTN/CbY1HyFIhalUL/iKeJVM9fDG1FDPUMa7yrEEo=; b=OTFhVD5XvMG538y+AcC6eshdzNQstLANFeIQGpwYVw5FOkHMcwhaPSNgJGdv+3rcBTmZa7 uV0+k3qgo3xUTWluSON5m6jRG0KBV+ECZ4aGMzLEu2ZC0hLZKWSjCjXXLOWCQ4cvNfc+0P VzM+SCREyllZ4IcjCd5zZf/q2VfPr38= Received: from mx-prod-mc-05.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-314-ZQfYF44uPSqh_GPFT--fjA-1; Fri, 14 Jun 2024 05:43:51 -0400 X-MC-Unique: ZQfYF44uPSqh_GPFT--fjA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5FF941956086; Fri, 14 Jun 2024 09:43:49 +0000 (UTC) Received: from swamp.redhat.com (unknown [10.45.224.22]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 07AFC1955E91; Fri, 14 Jun 2024 09:43:44 +0000 (UTC) From: Petr Oros To: netdev@vger.kernel.org Cc: ivecera@redhat.com, przemyslaw.kitszel@intel.com, Petr Oros , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marcin Szycik , Konrad Knitter , Marcin Domagala , intel-wired-lan@lists.osuosl.org (moderated list:INTEL ETHERNET DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net v2] ice: use proper macro for testing bit Date: Fri, 14 Jun 2024 11:43:38 +0200 Message-ID: <20240614094338.467052-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.15 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 Acked-by: Ivan Vecera --- Changes for v2: - added target tree --- 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