From: Greg KH <greg@kroah.com>
To: Vipin Mehta <Vipin.Mehta@Atheros.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>
Subject: Re: [PATCH] staging: ath6kl: Including a header file to fix a compilation error
Date: Fri, 17 Sep 2010 16:46:27 -0700 [thread overview]
Message-ID: <20100917234627.GA26329@kroah.com> (raw)
In-Reply-To: <35B17FE5076C7040809188FBE7913F983F23A275AF@SC1EXMB-MBCL.global.atheros.com>
On Fri, Sep 17, 2010 at 04:26:41PM -0700, Vipin Mehta wrote:
> >
> > Ok, I'll not apply this until it is all resolved.
> The error popped up due a recent commit which happened after I generated the patch below. I can regenerate the patch that takes care of these new errors as well but the following patch does fix the problem originally reported.
{sigh} Line length please...
> > > > diff --git a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h
> > b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h
> > > > index 4358834..4e5b7bf 100644
> > > > --- a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h
> > > > +++ b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h
> > > > @@ -36,15 +36,11 @@
> > > >
> > > > #include <linux/fs.h>
> > > > #include <linux/errno.h>
> > > > -#include <linux/string.h>
> > > > #include <linux/signal.h>
> > > > -#include <linux/timer.h>
> > > >
> > > >
> > > > #include <linux/ioctl.h>
> > > > -#include <linux/skbuff.h>
> > > > #include <linux/firmware.h>
> > > > -#include <linux/wait.h>
> >
> > Why are you removing these?
> The header files being removed are already included by a common header file osapi_linux.h. The file osapi_linux.h is included by all the source files. I saw little point in including these header files again.
But that has nothing to do with this fix, right? Don't mix things in a
single patch. Cleanup is good and nice, but don't do that in a "fix a
problem" patch at the same time.
Remember:
One patch per "thing" you do.
> > > > -#include <linux/semaphore.h>
> > > > #include <linux/wireless.h>
> > > > #ifdef ATH6K_CONFIG_CFG80211
> > > > #include <net/cfg80211.h>
> >
> > And these?
> >
> > All to fix the one build error?
> No. The header files being removed are just a minor clean up that I thought can be included along with the fix as they were kind of related. I guess I could use a separate patch.
Yes, that is required.
> > > > #include <linux/timer.h>
> > > > #include <linux/delay.h>
> > > > #include <linux/wait.h>
> > > > +#include <linux/semaphore.h>
> >
> > Don't put #include in a .h file if at all possible please.
> I guess the header files can be included explicitly within the source files but it requires a bigger change to the driver. There are some header files which are included by all the source files and contain some commonly used header files. These commonly used header files will otherwise have to be included separately in each of the source files.
That's work that can be done later, let's just fix this build error
first please.
thanks,
greg k-h
next prev parent reply other threads:[~2010-09-17 23:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-17 16:54 [PATCH] staging: ath6kl: Including a header file to fix a compilation error Vipin Mehta
2010-09-17 17:23 ` Randy Dunlap
2010-09-17 18:00 ` Greg KH
2010-09-17 23:26 ` Vipin Mehta
2010-09-17 23:46 ` Greg KH [this message]
2010-09-18 2:06 ` Vipin Mehta
2010-09-18 5:11 ` Greg KH
2010-09-17 23:11 ` Vipin Mehta
2010-09-17 23:26 ` Greg KH
2010-09-18 2:00 ` Vipin Mehta
2010-09-18 5:12 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2010-09-17 0:08 Vipin Mehta
2010-09-17 0:10 ` Luis R. Rodriguez
2010-09-17 0:13 ` Vipin Mehta
2010-09-17 0:17 ` Greg KH
2010-09-17 0:14 ` Greg KH
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=20100917234627.GA26329@kroah.com \
--to=greg@kroah.com \
--cc=Vipin.Mehta@Atheros.com \
--cc=devel@driverdev.osuosl.org \
--cc=linux-wireless@vger.kernel.org \
--cc=randy.dunlap@oracle.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;
as well as URLs for NNTP newsgroup(s).