From: Stephen Rothwell <sfr@canb.auug.org.au>
To: "George Spelvin" <linux@horizon.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
rdunlap@infradead.org, rusty@rustcorp.com.au
Subject: Re: [PATCH v2] VERIFY_OCTAL_PERMISSIONS: Move to <linux/sysfs.h> where it belongs
Date: Tue, 16 Dec 2014 11:31:17 +1100 [thread overview]
Message-ID: <20141216113117.1c8b0bb6@canb.auug.org.au> (raw)
In-Reply-To: <20141216001453.1808.qmail@ns.horizon.com>
[-- Attachment #1: Type: text/plain, Size: 2535 bytes --]
Hi George,
On 15 Dec 2014 19:14:53 -0500 "George Spelvin" <linux@horizon.com> wrote:
>
> Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > Please do *not* mix changes up like this. Split this out into a
> > separate patch, please (1 logical change per patch).
>
> Um... I thought I was doing that. More particularly, the task of
> untangling header file dependencies eseemed sufficiently cohesive
> that it could be considered one logical change.
Well, given the subject of the commit, I expected a simple change that
just did the move (and any immediately associated include changes).
You then said "Some other extraneous header files pruned while I was at
it" and that part I would expect to be in a separate patch.
> It was one round of thinking and analysis about what declarations the
> affected files depend on.
Which is separate from what VERIFY_OCTAL_PERMISSIONS() requires.
> Although syntactically possible, given the small size of the change (I
> deleted a total of 5 #includes, 2 from moduleparam.h and 3 from sysfs.h),
> it didn't seem worth breaking it up further.
>
> > And testing only
> > on x86_64 is not "sure" when talking about header file pruning (but at
> > least you did the "all" configs).
>
> Well, the first round was reading and understanding the headers; the
> compile was just to make sure.
Understood, it was more a "actually changing architectures was more
likely to show breakage than building lots of stuff". I guess I see
more breakage from pruning includes than most people since I build for
multiple architectures more than most.
> The files I was messing with (moduleparam.h and sysfs.h) don't have a
> lot of architecture-specificness within them. The main danger is that
> they're used in a zillion places and some caller might depend on the
> over-inclusion.
The problem is not the direct includes and direct architecture
depenedencies, but the fact that lost of stuff ends up include asm/
include files at some point in the chain and that affects the set of
files implicitly included. X86 seems to implicitly include more than
some other architectures.
> If my haste made me judge wrong, I apologize. Was I very wrong, or
> just a bit over the line?
Probably just a bit over the line. The advantage of the split would be
that when it hits Andrew's tree and then breaks linux-next (for me), I
can pick on a smaller patch to get rid of/correct.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2014-12-16 0:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-06 0:07 [PATCH] VERIFY_OCTAL_PERMISSIONS needs <linux/bug.h> George Spelvin
2014-12-06 0:12 ` Randy Dunlap
2014-12-06 0:15 ` Andrew Morton
2014-12-06 1:18 ` [PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to <linux/sysfs.h> where it belongs George Spelvin
2014-12-06 1:28 ` Andrew Morton
2014-12-06 2:49 ` George Spelvin
2014-12-06 2:53 ` Joe Perches
2014-12-06 2:57 ` Jeff Kirsher
2014-12-06 2:58 ` Andrew Morton
2014-12-06 3:23 ` [PATCH v2] " George Spelvin
2014-12-15 3:56 ` Rusty Russell
2014-12-15 23:09 ` Stephen Rothwell
2014-12-16 0:14 ` George Spelvin
2014-12-16 0:31 ` Stephen Rothwell [this message]
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=20141216113117.1c8b0bb6@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@horizon.com \
--cc=rdunlap@infradead.org \
--cc=rusty@rustcorp.com.au \
/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
Powered by JetHome