From: "Art Haas" <ahaas@airmail.net>
To: parisc-linux@parisc-linux.org, Matthew Wilcox <matthew@wil.cx>,
Grant Grundler <grundler@parisc-linux.org>
Cc: linux-kernel@vger.kernel.org
Subject: [parisc-linux] [PATCH] C99 cleanup in kernel/sysctl.c
Date: Sat, 25 Oct 2003 10:51:07 -0500 [thread overview]
Message-ID: <20031025155107.GA2718@artsapartment.org> (raw)
Hi.
Looking at the file kernel/sysctl.c I saw this HP-PA specfic block of
code. Here's an untested patch to format the code with C99 named
initializers.
Art Haas
===== kernel/sysctl.c 1.55 vs edited =====
--- 1.55/kernel/sysctl.c Thu Oct 2 02:12:07 2003
+++ edited/kernel/sysctl.c Sat Oct 25 10:45:03 2003
@@ -336,10 +336,22 @@
},
#endif
#ifdef __hppa__
- {KERN_HPPA_PWRSW, "soft-power", &pwrsw_enabled, sizeof (int),
- 0644, NULL, &proc_dointvec},
- {KERN_HPPA_UNALIGNED, "unaligned-trap", &unaligned_enabled, sizeof (int),
- 0644, NULL, &proc_dointvec},
+ {
+ .ctl_name = KERN_HPPA_PWRSW,
+ .procname = "soft-power",
+ .data = &pwrsw_enabled,
+ .maxlen = sizeof (int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec,
+ },
+ {
+ .ctl_name = KERN_HPPA_UNALIGNED,
+ .procname = "unaligned-trap",
+ .data = &unaligned_enabled,
+ .maxlen = sizeof (int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec,
+ },
#endif
#if defined(CONFIG_PPC32) && defined(CONFIG_6xx)
{
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
next reply other threads:[~2003-10-25 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-25 15:51 Art Haas [this message]
2003-10-25 16:01 ` [parisc-linux] [PATCH] C99 cleanup in kernel/sysctl.c Randolph Chung
2003-10-25 16:01 ` Randolph Chung
-- strict thread matches above, loose matches on Subject: below --
2003-10-25 15:51 Art Haas
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=20031025155107.GA2718@artsapartment.org \
--to=ahaas@airmail.net \
--cc=grundler@parisc-linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=parisc-linux@parisc-linux.org \
/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