From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) (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 D3FF82741DC for ; Tue, 1 Jul 2025 15:20:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751383227; cv=none; b=sRkTiV6B8hQ2sJMq45t1msEwftuFuyVZeRY/ghmBbyVSLLTq7+DkAuIwC9HPuzAHQPx3qF7bfOlIc4Xa0fkxJuDGAW7dg2PYBtuY80jyL8ujKfDsjQ+pEzQWVzMvlnsbYuCYfiFUMvWM4x03FqZta21EEYukMmTgiVWh2LxjdcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751383227; c=relaxed/simple; bh=4HxDKDVDuqVFjjRQfc2NTTjXMx7SXDrod/9PZy2w8QA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RvuV7tLScC78nlCjDhG62MBf05O5QROsUQQVVdDrjB6bDYW7wddijKIeUj2k//VwlEP5bqrqNt03vFMg2b2Q3TrYcoYGRbuuiGU95r+w7eRhrLobLQNUGMv3+tFdBd8nor/HiDnAjl70EgDeUtHw+W105w/nkp2mp0qKNFksvJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--gprocida.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=QQxqQFHV; arc=none smtp.client-ip=209.85.221.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--gprocida.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QQxqQFHV" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-3a4f3796779so3166503f8f.1 for ; Tue, 01 Jul 2025 08:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1751383223; x=1751988023; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=HS0leYMDlHYokYSQ7rOzdx0mYa3EoAXRbAoaC0gzq8o=; b=QQxqQFHVsJA3LIg146JX0V3i8xK8uLjncfhhNg2/xvlaH0sRbI946Y7q46aoJuExkr FrXctz80G0HaYUe+MivuMKrl6Z3tzzJKUHvJPjhBg8haPDjDLcmdQzra+AsvJYzHNc/D w9b+3z/hp9i4I5HSM3LyKRqZuIvymj+5K8tUj7QheTj9gYFXzdCnlu4rbO+ugYAfnciI xUu/ZSyL7uDz6Rf4+/LCypO86D6YVocLGTco8X541wZgM04xpKgwulkyhYAfXEOfbqKj uuMMzCf+oM/gQUCWev+Rm/8LzrVRV6rNttKvgTGO1GFuKtHFvqRvB++XU0mt0DZdq18L VgPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751383223; x=1751988023; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HS0leYMDlHYokYSQ7rOzdx0mYa3EoAXRbAoaC0gzq8o=; b=jHIpsiW3D8h5zNuBoWIuHjtRcj2VSLozaeEMXx4+J/8XmGZ9CFnDbK9uZou2ovtu5v UZ53XeGnR8900UzhySZmHS/FZL+TsRGHMi8Q+0dQbjI1bmEkcbz/qKYb0fuxYNnalSvV i91YVkfLNSAS50OqCezTIcPkiqR39KSTep6NrWGrO0kBHOeNhKColCu/ilkNJVBf0V8s noKySzR3K6Eyy8IrzrCjmxeDRMsEei+7vwOOKCUPHNTVKTjBabbOuzn+k8XAZY3/nzp0 EBmnjeik8Ul9qA5JfQzRd0ZiXM8EHMsnbptwa0XUiJn+4pe8efia2omZP4zss9ZYM7Gg 864A== X-Forwarded-Encrypted: i=1; AJvYcCWx1caSp8tGuOJxPmwfRysg0dPamEqL3DxR2a+g/dRrQb8DU33L7BXeKrCIjrlf/AW8Ph0uuFT0C6RPlqQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9126Az7sDx5jWzL9ZKppO2tW24oAnurn7EC6Sg6bUXIUAnFwi Zlu0Jhr37akYOo8RYeP/5Igut3rfxkM0PnVwJvPtGD/NiYhClFrwc5HSY7LKzZ7mPpQ0NPKSwW7 VqQ4SQXQ1yiR6GA== X-Google-Smtp-Source: AGHT+IFnMJ61wTYiwe+Gnktsjz4/HaiRP/F54x21/++tHXd37+SoOD+fZukTxHtrkdZFAOLWvY//EsBG9SDmAQ== X-Received: from wmpz17.prod.google.com ([2002:a05:600c:a11:b0:453:8b14:6e0c]) (user=gprocida job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6000:42c1:b0:3a4:fb33:85ce with SMTP id ffacd0b85a97d-3a91818bae2mr10702455f8f.46.1751383223349; Tue, 01 Jul 2025 08:20:23 -0700 (PDT) Date: Tue, 1 Jul 2025 16:19:09 +0100 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.50.0.727.gbf7dc18ff4-goog Message-ID: <20250701152000.2477659-1-gprocida@google.com> Subject: [PATCH v2 0/2] gendwarfksyms - improve symtypes output From: Giuliano Procida To: Masahiro Yamada , Sami Tolvanen , Greg Kroah-Hartman Cc: Giuliano Procida , linux-modules@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" When investigating MODVERSIONS CRC changes from one build to the next, we need to diff corresponding symtypes files. However, gendwarfksyms did not order these files. The first change in this series makes gendwarfksyms code conform to the preferred style for the size parameter passed to allocation functions. https://github.com/torvalds/linux/blob/v6.15/Documentation/process/coding-style.rst?plain=1#L941 The second change in this series ensures symtypes are output in key order. The series is marked as v2 to distinguish it from earlier versions where the changes were posted individually. Giuliano Procida (2): gendwarfksyms: use preferred form of sizeof for allocation gendwarfksyms: order -T symtypes output by name scripts/gendwarfksyms/cache.c | 2 +- scripts/gendwarfksyms/die.c | 4 ++-- scripts/gendwarfksyms/dwarf.c | 2 +- scripts/gendwarfksyms/kabi.c | 2 +- scripts/gendwarfksyms/symbols.c | 2 +- scripts/gendwarfksyms/types.c | 33 ++++++++++++++++++++++++++++----- 6 files changed, 34 insertions(+), 11 deletions(-) -- 2.50.0.727.gbf7dc18ff4-goog