Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp452803lqo; Thu, 16 May 2024 10:45:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzP1N4XQraGXMBBMI/B7zlZX+Wn2SOW5pL28YieCWwZIB2MAnFCfLg1BllaTQx7eCBAWzS9njgLcpppfgQHCoGfATCt3RBsFGIask2vA== X-Google-Smtp-Source: AGHT+IEw5HqnE6Hdc0mwGbD+cu3aEJUhx8fl17+Wgx1yDqcySKd/LMX6WA+ZP7mXkmaPPOy9QY7u X-Received: by 2002:a17:906:684a:b0:a59:a64d:c5b9 with SMTP id a640c23a62f3a-a5a2d67635fmr1812368266b.76.1715881504824; Thu, 16 May 2024 10:45:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715881504; cv=pass; d=google.com; s=arc-20160816; b=eUABD+dbFfWWon+7LUWVcayB4RxeUsFCxSAATGHXuxPITczW2PskJASgGQJ9wD2o/N uDewDPM9bhoK+Ya5DGFcGJ3RaB5tozU+7sUiAyck1y6Vv7ZL3kV7Xqb7R2p203oo1xnW 3pEUvnYYqBcjula798Ndgr4xtXoI74SkRWsinhdwLByTIpJkivMK35oBu2kUdFHTmeEm Nodl5e4ZmKm17X3xef5x3E7hSU5LC9qG8kHAkcMzWMoa+PSnfncCzHHY/qW1nnUjiLR/ KrhkldCK3Qfjx0KKTDlmdVA0GDocHZy05f+xbp5xJeU3suAIk+0bGxVHNORzGqeohR2O MlFQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tZuRS8IeAScp8y/gysB1rc+IyuJyj3IoD2Z9IwMDBuQ=; fh=pJeqFU2S1I683Yjd5PyVRp05JBIM29AwjMD2lbxYCjM=; b=NkvOj2c+Y6YeFtPcXN6MFC+apa2Trw6jJtLZ3jtlAPa0xYQmvbOPHUWBnu3JSdWFIl ofY8RMVbVjDVl9WU+WaUXCel+usXlqj2kNMu4FXZIVooCCZKEeGQWM6GY1d16XdliSBi 2bcYpVrNUsJpAYpkyXAKw+zRpvf7P5y1OphoLf/UZ74gzWjyYh/4rjG7H2qxUICWvtXt JvOJrdBSrTZJzkTPgLG3OY15j4vsxKsFTpeEFd+v0fRi6R10kAZQUOR2hFad3Bqw/plX soRc9R9lJhxemzFQW1JJifz0iDnoS97WNwJvuXyGyqzj4A84C27QL7kqr6fs9zPI8sB4 qvQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iK+Hqie3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-181386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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-a5a17b20ddesi965946766b.474.2024.05.16.10.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 10:45:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181386-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=@gmail.com header.s=20230601 header.b=iK+Hqie3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-181386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 653021F22B36 for ; Thu, 16 May 2024 17:45:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC61D15696F; Thu, 16 May 2024 17:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iK+Hqie3" Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A78E7156F4A for ; Thu, 16 May 2024 17:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715881456; cv=none; b=Rg33QKOj6XKRsku86F6yzEwAtidPTrR3WOOMRGhrLfqpK2IzL69SxivMT4hcQwldsUk4f8M0Mbm6IyV9X+bh7kyw9eKFjLOIEkLL+2gS4+2i/iIJ7Gwnoai2+HORoxy1FCjkIEGHhLmJZTnSQO1Ir8pzn+8MrHw/wvXQvilC4GA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715881456; c=relaxed/simple; bh=ulmiXgsd906reEU5mkxZmxamZrST13sJiESSIufQs24=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cSj7dNO1RLJe0VWheaCVaGwfLqfUGbTsRxrqICOZ8qxADVJZFiRu499DI84IU3ZqKq1f9GC9DT8AEaUoGGI1K+yTwXM6b8g7N3qeY+xDh0GeiIEHXYTdJTETllNK3ARuXm4EAZkkmhdUeeYP6f80XziAy/lHTRS/IbCXfuEFOzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iK+Hqie3; arc=none smtp.client-ip=209.85.166.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f46.google.com with SMTP id ca18e2360f4ac-7e1b887c488so29571739f.0 for ; Thu, 16 May 2024 10:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715881454; x=1716486254; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tZuRS8IeAScp8y/gysB1rc+IyuJyj3IoD2Z9IwMDBuQ=; b=iK+Hqie3Bm7+gyhSFegedtjsEPIgudiEyfHO27PYuqV/6UIupKsmMZwHyK7STQgxhR aoZ8uUPTYTi/oRtkuVGGhUmmF1hRnN3s5GDayi+f5It+D9rpESP5mrzD1RGGVkf10vWE fytGiHO98nm3Ghiq5tRAJbyuofqA8YWRrTh0Iaw+UBQBWOTy264wctkjWOBVeVtRTixN nZcbWQeEQwR4rybGB1VabTCbVxrcR+IHr7waOwjaFoHaxyxaDRhS7QJvyYhsDYGpIZga 1C44HGs+cTQQ12Ziq9aSgi+dcGylPPpaf4ILRq0WBmTRuCu0y3U/pQhf14BQweGrwH+M S9ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715881454; x=1716486254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tZuRS8IeAScp8y/gysB1rc+IyuJyj3IoD2Z9IwMDBuQ=; b=VP1tj23HKJ8Mc0XHNN5/HdGHnosE435YUMocxjoOh/MJwK2Vzmfo6GiG7isiLpnAUg rX/8J59b4CWeKNo1VO2FeAlX4LjDHVm1PtgCsCJuHmLTf0OuQFJzL2OPKLcdn+W87ThH 8KwtBN2aMc6rU14XyWHWXiukwXkVK8kjroOLjvoQw4VSKZBt7u4KAPDVDDIsddIdYjyh cf0bOiZvvtU7tVf8S7nMEdR+xWWFvo+7p/CAFFQgHok7hRw52qKBdq0UFppLxncXh+79 UP10INdlqOSas78YAZ/dcSoQ2drra1+Bl5o82tRrI05TQipaGu5FiVjlj6BSiBMmD0xC eqaQ== X-Forwarded-Encrypted: i=1; AJvYcCVNAavsxhHo1/J0f/5eFQnyshnMmzY5ZxXGUpCYEBkYaLvxfzsa67SRZvkWvCg+5Y4i1kGYYecfwZCeELq6QZUW0sTXUZY2CUgSRXk+ X-Gm-Message-State: AOJu0YwgmijXWn4xQ2wwKuETE7CC8rc1IhYVBZxVxOy8FsFVXIYF6ZtD iasWV5yatG94C8c5zCeSVL3PQZyDc+6J7uOA32sb1r1uxloXqzgd X-Received: by 2002:a6b:dd0b:0:b0:7e1:be36:ac5a with SMTP id ca18e2360f4ac-7e1be36aea3mr1352182039f.10.1715881453884; Thu, 16 May 2024 10:44:13 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id 8926c6da1cb9f-4893715057csm4273595173.80.2024.05.16.10.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 10:44:13 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: ukaszb@chromium.org, linux@rasmusvillemoes.dk, joe@perches.com, mcgrof@kernel.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, Jim Cromie Subject: [PATCH v8-RESEND 04/33] dyndbg: make ddebug_class_param union members same size Date: Thu, 16 May 2024 11:43:28 -0600 Message-ID: <20240516174357.26755-5-jim.cromie@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240516174357.26755-1-jim.cromie@gmail.com> References: <20240516174357.26755-1-jim.cromie@gmail.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 struct ddebug_class_param keeps a ref to the state-storage of the param; make both class-types use the same unsigned long storage type. ISTM this is simpler and safer. Signed-off-by: Jim Cromie --- include/linux/dynamic_debug.h | 2 +- lib/dynamic_debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h index 4fcbf4d4fd0a..5231aaf361c4 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h @@ -124,7 +124,7 @@ struct _ddebug_info { struct ddebug_class_param { union { unsigned long *bits; - unsigned int *lvl; + unsigned long *lvl; }; char flags[8]; const struct ddebug_class_map *map; diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 73ccf947d4aa..152b04c05981 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -799,7 +799,7 @@ int param_get_dyndbg_classes(char *buffer, const struct kernel_param *kp) case DD_CLASS_TYPE_LEVEL_NAMES: case DD_CLASS_TYPE_LEVEL_NUM: - return scnprintf(buffer, PAGE_SIZE, "%d\n", *dcp->lvl); + return scnprintf(buffer, PAGE_SIZE, "%ld\n", *dcp->lvl); default: return -1; } -- 2.45.0