Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 D643C266F00 for ; Tue, 10 Jun 2025 21:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749589976; cv=none; b=XdLIRfiPBba1wCZxyl2dCh3BtgGNCQBiCBoRkOhNUHomiUe4iWMa2uDi1zjj9sPaciRZig2jYPEeJrtFEvQ+H3rHlV3BtPglzUxd4iEyfdqEnnDISGhz/rIM07A3TDFZljRgi9MxIjQxt9IpgTkx6SAK8G8yFk3Nw2qo1wC5/eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749589976; c=relaxed/simple; bh=huEBjA3UxNbeNrW5uorw39DFn1/wTp9TfQsQtMmu7xg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RnvTbO531P4e9mYSVEXEr3hJwxJNLCwnbTC0WXdB4BVNsj0SyFG0jkiiAV4uL2ncOhPhEB5Bbpb+aEm0+L11COVAze3+ozEYp98HRb4v78tlyHcCpT90yHFHc9uT+15BaGzyltIqkeW5WaiMi7o4hhOIQv03faAYGCRYvOGeJoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MQz2r7gn; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MQz2r7gn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749589975; x=1781125975; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=huEBjA3UxNbeNrW5uorw39DFn1/wTp9TfQsQtMmu7xg=; b=MQz2r7gnMQZOoVrzQUp8FGfuq8EvN9KzFBKff5/3LIXWDGI1yXhFWIaU wnrOHo1Z1h6Bm8duU3StCCUwh3GqirxGPdzsFv4uhTf+RJ8RoCt9GFzs0 KeeBou3IlDe+5IF+rjos4g3VXETzJVMx5J0cGYHZgFnup0QcrqAW+9NeS 4eSiH2Ao/RYDTMx6mhlGuM9N+CaGuiDFO82t54t7p55l8TmOBK/mpvBeK OmyfdaFStvp0HGzqqvy4myOF0cslBvC2XE38vuhz1PBaLfnH6TqYfqhBC mIW/yR/hSBq5EYkQONgUEciaGHWbXKD2LJhyOemX4+Kywdf8y9dBlSeCi Q==; X-CSE-ConnectionGUID: dtp+Mh7KQ5uXGr1zY8kbUw== X-CSE-MsgGUID: +vM/msCcQMuUiN/lXxS2vQ== X-IronPort-AV: E=McAfee;i="6800,10657,11460"; a="51816939" X-IronPort-AV: E=Sophos;i="6.16,226,1744095600"; d="scan'208";a="51816939" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2025 14:12:55 -0700 X-CSE-ConnectionGUID: SAoSRXYrRJGGn6oIjK0f0g== X-CSE-MsgGUID: 9v/HgIYXTmOl7F5sRSjFnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,226,1744095600"; d="scan'208";a="146939821" Received: from mjruhl-desk.amr.corp.intel.com (HELO mjruhl-desk.intel.com) ([10.124.220.88]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2025 14:12:52 -0700 From: "Michael J. Ruhl" To: platform-driver-x86@vger.kernel.org, intel-xe@lists.freedesktop.org, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, lucas.demarchi@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com, airlied@gmail.com, simona@ffwll.ch, david.e.box@linux.intel.com Cc: "Michael J. Ruhl" Subject: [PATCH v4 06/10] platform/x86/intel/pmt: correct types Date: Tue, 10 Jun 2025 17:12:21 -0400 Message-ID: <20250610211225.1085901-7-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250610211225.1085901-1-michael.j.ruhl@intel.com> References: <20250610211225.1085901-1-michael.j.ruhl@intel.com> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A couple of auto variables do not match the return types of some of the functions. Update the mismatched types to match. Reviewed-by: David E. Box Signed-off-by: Michael J. Ruhl --- drivers/platform/x86/intel/pmt/crashlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/intel/pmt/crashlog.c b/drivers/platform/x86/intel/pmt/crashlog.c index 3d3b72451c01..ddb05d069fc6 100644 --- a/drivers/platform/x86/intel/pmt/crashlog.c +++ b/drivers/platform/x86/intel/pmt/crashlog.c @@ -137,7 +137,7 @@ static ssize_t enable_show(struct device *dev, struct device_attribute *attr, char *buf) { struct intel_pmt_entry *entry = dev_get_drvdata(dev); - int enabled = !pmt_crashlog_disabled(entry); + bool enabled = !pmt_crashlog_disabled(entry); return sprintf(buf, "%d\n", enabled); } @@ -168,7 +168,7 @@ static ssize_t trigger_show(struct device *dev, struct device_attribute *attr, char *buf) { struct intel_pmt_entry *entry; - int trigger; + bool trigger; entry = dev_get_drvdata(dev); trigger = pmt_crashlog_complete(entry); -- 2.49.0