mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Maurer <mmaurer@google.com>
To: mcgrof@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org,
	 samitolvanen@google.com, Matthew Maurer <mmaurer@google.com>,
	 Petr Pavlu <petr.pavlu@suse.com>,
	Daniel Gomez <da.gomez@samsung.com>
Subject: [PATCH 12/12] module: Reformat struct for code style
Date: Tue, 15 Oct 2024 23:16:46 +0000	[thread overview]
Message-ID: <20241015231651.3851138-13-mmaurer@google.com> (raw)
In-Reply-To: <20241015231651.3851138-1-mmaurer@google.com>

Using commas to declare struct members makes adding new members to this
struct not as nice with patch management.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
---
 kernel/module/internal.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/kernel/module/internal.h b/kernel/module/internal.h
index 2ebece8a789f..daef2be83902 100644
--- a/kernel/module/internal.h
+++ b/kernel/module/internal.h
@@ -80,7 +80,12 @@ struct load_info {
 	unsigned int used_pages;
 #endif
 	struct {
-		unsigned int sym, str, mod, vers, info, pcpu;
+		unsigned int sym;
+		unsigned int str;
+		unsigned int mod;
+		unsigned int vers;
+		unsigned int info;
+		unsigned int pcpu;
 	} index;
 };
 
-- 
2.47.0.rc1.288.g06298d1525-goog


  parent reply	other threads:[~2024-10-15 23:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 23:16 [PATCH 00/12] Module Validation Refactor Matthew Maurer
2024-10-15 23:16 ` [PATCH 01/12] module: Take const arg in validate_section_offset Matthew Maurer
2024-10-15 23:16 ` [PATCH 02/12] module: Factor out elf_validity_ehdr Matthew Maurer
2024-10-15 23:16 ` [PATCH 03/12] module: Factor out elf_validity_cache_sechdrs Matthew Maurer
2024-10-15 23:16 ` [PATCH 04/12] module: Factor out elf_validity_cache_secstrings Matthew Maurer
2024-10-15 23:16 ` [PATCH 05/12] module: Factor out elf_validity_cache_index_info Matthew Maurer
2024-10-15 23:16 ` [PATCH 06/12] module: Factor out elf_validity_cache_index_mod Matthew Maurer
2024-10-15 23:16 ` [PATCH 07/12] module: Factor out elf_validity_cache_index_sym Matthew Maurer
2024-10-15 23:16 ` [PATCH 08/12] module: Factor out elf_validity_cache_index_str Matthew Maurer
2024-10-15 23:16 ` [PATCH 09/12] module: Group section index calculations together Matthew Maurer
2024-10-15 23:16 ` [PATCH 10/12] module: Factor out elf_validity_cache_strtab Matthew Maurer
2024-10-15 23:16 ` [PATCH 11/12] module: Additional validation in elf_validity_cache_strtab Matthew Maurer
2024-10-15 23:16 ` Matthew Maurer [this message]
2024-10-17  0:44 ` [PATCH 00/12] Module Validation Refactor Sami Tolvanen
2024-10-19 22:10 ` Luis Chamberlain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241015231651.3851138-13-mmaurer@google.com \
    --to=mmaurer@google.com \
    --cc=da.gomez@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=petr.pavlu@suse.com \
    --cc=samitolvanen@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®