Johannes Berg [Fri, 5 Apr 2013 15:44:11 +0000 (17:44 +0200)]
backport a define for SOCK_SELECT_ERR_QUEUE
This is a bit tricky, but it works because adding 14 to
SOCK_QUEUE_SHRUNK will always reach a bit that can't be
set on older kernels anyway.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 15:23:05 +0000 (17:23 +0200)]
backport PDE_DATA for Bluetooth in linux-next
This backports "procfs: new helper - PDE_DATA(inode)".
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 16:04:47 +0000 (18:04 +0200)]
gentree: fix file copying bug
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 12:26:52 +0000 (14:26 +0200)]
git tracker: handle temporary failures better
If there are multiple commits in the source kernel, one
of which causes backporting failures (ie. patches don't
apply), and a subsequent one fixes it, the output is
very confusing because it skips the failing commit.
Change the script to generate a combination commit in
this case that contains the shortlog of all the commits
inbetween that were broken.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 12:26:07 +0000 (14:26 +0200)]
git tracker: rename 'prefail' to 'last-success'
That's more obvious ...
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 12:11:28 +0000 (14:11 +0200)]
git tracker: override committer/author in commits
For commits generated by the git tracker, the committer
should always be set to the script, and for those that
are "meta commits" (like failures or backport updates)
the author should also be set to it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 10:14:29 +0000 (12:14 +0200)]
doc: clarify why symbol renaming is needed
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Andy Gospodarek [Fri, 5 Apr 2013 02:04:47 +0000 (22:04 -0400)]
more symbol fixup needed for latest RHEL6.3 kernels
These changes will allow compat.ko to load properly on the latest released
RHEL6.3 errata kernels.
Reported here: https://bugzilla.kernel.org/show_bug.cgi?id=55971
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Andy Gospodarek [Fri, 5 Apr 2013 02:04:46 +0000 (22:04 -0400)]
fixup error when LINUX_BACKPORT macro was added
Commit
a05e783cb8853210628bd1f2bd82d17dd004c9d1 did not properly
backport the symbols for:
schedule_delayed_work
schedule_delayed_work_on
as it left the 'compat' string there when adding the LINUX_BACKPORT
symbol. This resulted in these two not getting redefined and kernels
with these backported resulted in duplicate symbols when trying to load
compat.ko.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Fri, 5 Apr 2013 08:21:21 +0000 (10:21 +0200)]
build system: handle int Kconfig options in autoconf header
Add a line of shell script code to handle int Kconfig
options when creating the autoconf header.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Thu, 4 Apr 2013 22:29:26 +0000 (00:29 +0200)]
refresh patches against next-
20130328
The patches were last refreshed against that same tree,
so the only change is that now we have -p in there, which
results in changes like this (only):
-@@ -1593,7 +1593,7 @@
+@@ -1593,7 +1593,7 @@ static int nl80211_dump_wiphy(struct sk_
This makes the patches more readable.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Thu, 4 Apr 2013 22:28:42 +0000 (00:28 +0200)]
gentree: add -p option to diff when refreshing patches
This generally makes patches more readable to humans
and has no impact on the tools.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Thu, 4 Apr 2013 22:11:32 +0000 (00:11 +0200)]
gentree: fix describe version bug
With the --git-revision option, that revision needs
to be used for the output version, not 'HEAD'.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Thu, 4 Apr 2013 21:36:43 +0000 (23:36 +0200)]
add some kconfig/make system documentation
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Thu, 4 Apr 2013 19:56:05 +0000 (21:56 +0200)]
git tracker: don't chdir, remove verbose argument
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Thu, 4 Apr 2013 18:10:28 +0000 (20:10 +0200)]
gitignore: add more build artifacts
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 16:25:02 +0000 (18:25 +0200)]
git tracker: allow creating defconfig symlink
This makes it possible to do just 'make' in the output
tree, rather than having to configure first.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 16:08:57 +0000 (18:08 +0200)]
kconfig: add --as-needed
18:07 < *thierryE> It's seems that for my ld version, parameters order matters
18:07 < *thierryE> Yep
18:07 < *thierryE> mconf: LDFLAGS = -Wl,--no-as-needed -lncurses
18:08 < johill> so just add the -Wl,--no-as-needed ?
18:08 < *thierryE> Yes
18:08 < *thierryE> --as-needed is enabled by default for some config
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 16:07:56 +0000 (18:07 +0200)]
add more stuff to output .gitignore
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 16:03:54 +0000 (18:03 +0200)]
add kconfig binaries to output .gitignore
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 16:01:51 +0000 (18:01 +0200)]
git tracker: override versions file
Otherwise it keeps changing.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 16:00:05 +0000 (18:00 +0200)]
gentree: fix bug in version file writing
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 15:55:35 +0000 (17:55 +0200)]
git lib: suppress messages from shortlog
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 15:53:11 +0000 (17:53 +0200)]
git-tracker: fix small bug
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 15:00:12 +0000 (17:00 +0200)]
add .gitignore to output directory
When using the git-tracker, this is very useful.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 14:50:00 +0000 (16:50 +0200)]
devel: add git tracker helper script
This allows creating a git tree based on the backport
output automatically, to track an upstream kernel tree.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Thu, 4 Apr 2013 00:11:09 +0000 (02:11 +0200)]
gentree: remove pointless code
There's no need to join a path with nothing ...
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 23:52:41 +0000 (01:52 +0200)]
gentree: make lib directory a python module
That will make it easier to use gentree and/or git
helpers from other scripts.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 23:28:47 +0000 (01:28 +0200)]
build: add defconfig files
This enables users to more easily select the driver that
they need, and us to ship default configurations that we
prefer for that driver. Add iwlwifi as the first example.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 22:50:47 +0000 (00:50 +0200)]
build: add simple 'install' target
This really just installs the modules, everything else
is still missing.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 22:24:56 +0000 (00:24 +0200)]
build: fix defconfig usage
The make target vs. filename got confusing and the
invocation of the conf program was wrong as well;
fix both issues.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 22:01:49 +0000 (00:01 +0200)]
build: read KLIB variable
Some scripts may rely on setting KLIB rather than
KLIB_BUILD, particularly for an install target,
so read that variable.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 15:28:43 +0000 (17:28 +0200)]
gentree: make output configurable
It might not always have to go to stdout, so make
a function to print it and use that.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 15:25:15 +0000 (17:25 +0200)]
gentree: fix return code
The recent shuffling broke the return value, return it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 12:07:36 +0000 (14:07 +0200)]
Revert "fix compat dependencies"
This reverts commit
4f321aefd84259e8f44ff9d080ffdf7ac41290c4.
That didn't work if the symbol isn't defined at all ...
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 12:04:58 +0000 (14:04 +0200)]
fix compat dependencies
Apparently "depends on !FOO" will be OK if FOO=m,
which isn't what we want, so make it FOO = n.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 11:47:12 +0000 (13:47 +0200)]
correct crc8 include file
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 11:44:16 +0000 (13:44 +0200)]
explain Kconfig recipe better, adjust existing code
The Kconfig recipes for backporting need a bit more
explanation, add that. Also adjust the existing ones.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 09:46:00 +0000 (11:46 +0200)]
correct makefile/kconfig mangling
Due to reordering the steps, the makefile and kconfig
mangling needs to be changed a bit, make it more robust.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 3 Apr 2013 09:32:23 +0000 (11:32 +0200)]
gentree: change to make external use possible
Change the scripting a bit to make it possible to
import the gentree script as a module to call it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 23:12:28 +0000 (01:12 +0200)]
ckmake: parallelise even allyesconfig/allnoconfig
There are two C files to build in there :-)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 23:09:16 +0000 (01:09 +0200)]
hard-code list of backport files
This avoids accidentally copying files that are in the
local, possibly dirty, working directory.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 22:46:12 +0000 (00:46 +0200)]
fix EWMA backport
If backporting to a kernel that already has it, the
symbol mangling shouldn't be done ...
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:57:15 +0000 (23:57 +0200)]
add more .PHONY
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:54:53 +0000 (23:54 +0200)]
some makefile cleanups
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:50:10 +0000 (23:50 +0200)]
allow defconfig to work
This allows shipping a 'defconfig' file in the output and
then just "make" works, taking the config from there and
setting everything else to the default.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:30:14 +0000 (23:30 +0200)]
ckmake: default to just building compat
but add --allyesconfig option
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:17:57 +0000 (23:17 +0200)]
build fw loader only for kernel 2.6.32 and lower
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:11:01 +0000 (23:11 +0200)]
fix the previous commit ...
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 21:01:08 +0000 (23:01 +0200)]
add compat testing option
Add the BACKPORT_USERSEL_BUILD_ALL option that selects
all the backported stuff drivers would otherwise have.
This allows testing all the backported code without
compiling all drivers.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 20:56:58 +0000 (22:56 +0200)]
add comments, small fixes
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Luis R. Rodriguez [Sun, 31 Mar 2013 00:26:04 +0000 (17:26 -0700)]
compat: backport poll_requested_events() and poll_does_not_wait()
The main thing for the backport was the poll_table key and qproc
fields renames. We only enable this for kernels > 2.6.31 given that
these old fields only exist as of that kernel and this is currently
only used by video drivers which are only supported as of v3.2.
mcgrof@frijol ~/linux-next (git::master)$ git describe --contains
626cf236
v3.4-rc1~109^2~52
commit
626cf236608505d376e4799adb4f7eb00a8594af
Author: Hans Verkuil <hans.verkuil@cisco.com>
Date: Fri Mar 23 15:02:27 2012 -0700
poll: add poll_requested_events() and poll_does_not_wait() functions
In some cases the poll() implementation in a driver has to do different
things depending on the events the caller wants to poll for. An example
is when a driver needs to start a DMA engine if the caller polls for
POLLIN, but doesn't want to do that if POLLIN is not requested but instead
only POLLOUT or POLLPRI is requested. This is something that can happen
in the video4linux subsystem among others.
Unfortunately, the current epoll/poll/select implementation doesn't
provide that information reliably. The poll_table_struct does have it: it
has a key field with the event mask. But once a poll() call matches one
or more bits of that mask any following poll() calls are passed a NULL
poll_table pointer.
Also, the eventpoll implementation always left the key field at ~0 instead
of using the requested events mask.
This was changed in eventpoll.c so the key field now contains the actual
events that should be polled for as set by the caller.
The solution to the NULL poll_table pointer is to set the qproc field to
NULL in poll_table once poll() matches the events, not the poll_table
pointer itself. That way drivers can obtain the mask through a new
poll_requested_events inline.
The poll_table_struct can still be NULL since some kernel code calls it
internally (netfs_state_poll() in ./drivers/staging/pohmelfs/netfs.h). In
that case poll_requested_events() returns ~0 (i.e. all events).
Very rarely drivers might want to know whether poll_wait will actually
wait. If another earlier file descriptor in the set already matched the
events the caller wanted to wait for, then the kernel will return from the
select() call without waiting. This might be useful information in order
to avoid doing expensive work.
A new helper function poll_does_not_wait() is added that drivers can use
to detect this situation. This is now used in sock_poll_wait() in
include/net/sock.h. This was the only place in the kernel that needed
this information.
Drivers should no longer access any of the poll_table internals, but use
the poll_requested_events() and poll_does_not_wait() access functions
instead. In order to enforce that the poll_table fields are now prepended
with an underscore and a comment was added warning against using them
directly.
This required a change in unix_dgram_poll() in unix/af_unix.c which used
the key field to get the requested events. It's been replaced by a call
to poll_requested_events().
For qproc it was especially important to change its name since the
behavior of that field changes with this patch since this function pointer
can now be NULL when that wasn't possible in the past.
Any driver accessing the qproc or key fields directly will now fail to compile.
Some notes regarding the correctness of this patch: the driver's poll()
function is called with a 'struct poll_table_struct *wait' argument. This
pointer may or may not be NULL, drivers can never rely on it being one or
the other as that depends on whether or not an earlier file descriptor in
the select()'s fdset matched the requested events.
There are only three things a driver can do with the wait argument:
1) obtain the key field:
events = wait ? wait->key : ~0;
This will still work although it should be replaced with the new
poll_requested_events() function (which does exactly the same).
This will now even work better, since wait is no longer set to NULL
unnecessarily.
2) use the qproc callback. This could be deadly since qproc can now be
NULL. Renaming qproc should prevent this from happening. There are no
kernel drivers that actually access this callback directly, BTW.
3) test whether wait == NULL to determine whether poll would return without
waiting. This is no longer sufficient as the correct test is now
wait == NULL || wait->_qproc == NULL.
However, the worst that can happen here is a slight performance hit in
the case where wait != NULL and wait->_qproc == NULL. In that case the
driver will assume that poll_wait() will actually add the fd to the set
of waiting file descriptors. Of course, poll_wait() will not do that
since it tests for wait->_qproc. This will not break anything, though.
There is only one place in the whole kernel where this happens
(sock_poll_wait() in include/net/sock.h) and that code will be replaced
by a call to poll_does_not_wait() in the next patch.
Note that even if wait->_qproc != NULL drivers cannot rely on poll_wait()
actually waiting. The next file descriptor from the set might match the
event mask and thus any possible waits will never happen.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Jonathan Corbet <corbet@lwn.net>
Reviewed-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Fri, 29 Mar 2013 23:13:17 +0000 (16:13 -0700)]
compat: backport memweight()
mcgrof@frijol ~/linux-next (git::master)$ git describe --contains
639b9e34
v3.6-rc1~41^2~73
commit
639b9e34f15e4b2c30068a4e4485586af0cdf709
Author: Akinobu Mita <akinobu.mita@gmail.com>
Date: Mon Jul 30 14:40:55 2012 -0700
string: introduce memweight()
memweight() is the function that counts the total number of bits set in
memory area. Unlike bitmap_weight(), memweight() takes pointer and size
in bytes to specify a memory area which does not need to be aligned to
long-word boundary.
[akpm@linux-foundation.org: rename `w' to `ret']
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Anders Larsen <al@alarsen.net>
Cc: Alasdair Kergon <agk@redhat.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Tony Luck <tony.luck@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Johannes Berg [Tue, 2 Apr 2013 20:16:16 +0000 (22:16 +0200)]
backport ETH_P_802_3_MIN
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 20:13:40 +0000 (22:13 +0200)]
add the ability to include ALX
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 20:11:37 +0000 (22:11 +0200)]
do post-processing after applying patches
Otherwise some patches might not apply, and anything
added in patches to the Kconfig won't work correctly.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 19:31:33 +0000 (21:31 +0200)]
add ethernet back
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 19:08:35 +0000 (21:08 +0200)]
add ability to read source files from git
Instead of having to have a checked-out kernel tree the
script can now read the files from a git revision when
passed the --git-revision <rev> argument. In this case
the kerneldir is taken as the git tree to use.
This helps when generating for multiple different trees.
Note that due to the need to invoke git many times this
is considerably slower than copying from a checkout. If
taking into account the time to create the checkout it's
still faster though.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 18:48:25 +0000 (20:48 +0200)]
remove copy sanity check
If you get this wrong, it will error out while copying anyway.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 17:27:23 +0000 (19:27 +0200)]
rename compat dir to backport
Then we can also move all the plumbing/ stuff into it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 17:02:14 +0000 (19:02 +0200)]
restore RHEL 6 configuration selections
This was trickier in the previous compat, but I think
this restores the required options for RHEL6.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 13:26:21 +0000 (15:26 +0200)]
remove forgotten commented out line
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 13:07:44 +0000 (15:07 +0200)]
add own EXPERT Kconfig
Otherwise it depends on the kernel's configuration
which doesn't make all that much sense.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 12:23:22 +0000 (14:23 +0200)]
adjust/fix ckmake
* adjust to make allyesconfig ; make, it is necessary
to pass KCONFIG_ALLCONFIG to "make allyesconfig"
* don't use shell, build command ourselves
* remove pointless ignore pattern with \
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 12:12:55 +0000 (14:12 +0200)]
add ckmake back under devel/ dir
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:56:41 +0000 (13:56 +0200)]
change rfkill backport for RFKILL_TYPE_FM
RFKILL_TYPE_FM was only added in kernel 2.6.33.
Maybe we should just always add rfkill?
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:54:35 +0000 (13:54 +0200)]
fix rfkill backport version
The API changes were only done in kernel 2.6.32.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:51:40 +0000 (13:51 +0200)]
fix tracing backport
For kernels that didn't have correct tracing, it was broken.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:32:21 +0000 (13:32 +0200)]
disable unused-but-set-variable warning
This warning happens all the time ...
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:20:30 +0000 (13:20 +0200)]
allow multiple kernel version dependencies
I've been adding a bunch of dependencies that
override earlier ones but could be removed, so
make it more maintainable by allowing multiple
to be listed.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:18:07 +0000 (13:18 +0200)]
disable BT_HIDP on kernels below 2.6.33
Only 2.6.33 introduced HID_QUIRK_NO_INIT_REPORTS, and
we don't backport that right now.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:06:24 +0000 (13:06 +0200)]
make RFKILL_REGULATOR depend on 3.0
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 11:01:03 +0000 (13:01 +0200)]
disable BCMA_DRIVER_GPIO until 3.0
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 09:50:02 +0000 (11:50 +0200)]
make Bluetooth depend on 2.6.29
AMP code requires crypto shash, which was only added in
2.6.29.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 09:45:39 +0000 (11:45 +0200)]
add kernel version dependency for BCMA/SSB GPIO
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 09:38:46 +0000 (11:38 +0200)]
always use included rfkill
This isn't really desirable, but for now fixes build on
some kernels.
What we really should do is rename all the rfkill to be
backport symbols, and use it only on kernels that didn't
have a usable rfkill. OTOH, on new kernels one may want
to use a backported rfkill if the base configuration
doesn't include it?
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 09:24:54 +0000 (11:24 +0200)]
correct makefile for cordic/crc8
I allowed these to be modules by themselves, so they
need to be in the makefile as obj-$(...).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 09:00:23 +0000 (11:00 +0200)]
add rt2x00 LED dependency
We don't carry a patch to disable uses of blink_set() in
the LED API, so rt2x00 LED support must depend on 2.6.25.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:55:45 +0000 (10:55 +0200)]
add LIBIPW_DEBUG 2.6.25 dependency
due to proc_create()
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:52:43 +0000 (10:52 +0200)]
disable codel on 2.6.24
It doesn't build there, the old commentry said it was
due to the qdisc API but it also doesn't build because
of is_vmalloc_addr().
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:45:54 +0000 (10:45 +0200)]
fix COMPAT_USB_URB_THREAD_FIX option
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:42:03 +0000 (10:42 +0200)]
properly add SSB and BCMA
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:37:10 +0000 (10:37 +0200)]
add some non-verbose output
Now that it prints nothing at all, it's eery, add back some output :)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:33:20 +0000 (10:33 +0200)]
add kernel version dependencies
Some drivers/subsystems/... can only build on certain newer
kernels, or were never tested elsewhere. Insert their version
dependencies into the output Kconfig.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Tue, 2 Apr 2013 08:25:28 +0000 (10:25 +0200)]
suppress patching output (unless in verbose mode)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 23:02:38 +0000 (01:02 +0200)]
add dependencies file
This will be used to modify the Kconfig that we get to
make some things depend on certain kernel versions.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 23:01:31 +0000 (01:01 +0200)]
add a few compile time checks
Do a few sanity checks at compile time.
Actually it would be possible to do them at Kconfig time
and simply disable mac80211/cfg80211, but that wouldn't
be very discoverable, and it's a corner case anyway.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 22:31:05 +0000 (00:31 +0200)]
properly backport EWMA functions
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 22:23:35 +0000 (00:23 +0200)]
simplify and correct backported FW loader
The backported loader is selected by drivers
needing it, unless the in-kernel one is used,
so there's no need to provide the functions
for when it isn't built.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 22:18:39 +0000 (00:18 +0200)]
copy rfkill header
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 22:14:48 +0000 (00:14 +0200)]
fix backported fw loader
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 21:36:32 +0000 (23:36 +0200)]
fix bluetooth ifdef
The recent kconfig shuffle broke this.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 21:34:53 +0000 (23:34 +0200)]
add ath5k tracing fix
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 20:06:15 +0000 (22:06 +0200)]
add kernel license/maintainers file to output
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 19:50:37 +0000 (21:50 +0200)]
add ssb/bcma includes
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 19:06:04 +0000 (21:06 +0200)]
update .config before generating autoconf header
Otherwise, an invalid configuration file might be
used to generation the C configuration.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 17:46:36 +0000 (19:46 +0200)]
add brcm80211 makefile patch
The simple parser doesn't understand the variable
indirection (yet) and right now it's simpler and
faster to patch the makefiles rather than improve
the parser.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 19:01:30 +0000 (21:01 +0200)]
fix --refresh option
The refresh option was only able to correctly handle
patch files that change a single file, fix this.
It's still desirable to have few changes per file,
but when a single patch makes sense for changes to
multiple files in a single driver.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 1 Apr 2013 17:40:33 +0000 (19:40 +0200)]
allow backported drivers to select backport options
This allows to have, for example, CRC8 still selected
by drivers (modified to BACKPORT_CRC8) and then build
the CRC8 code only conditionally on not having it in
the base kernel and being required by a driver.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Sun, 31 Mar 2013 22:57:14 +0000 (00:57 +0200)]
don't include Kconfig file that doesn't exist
The correct location is already included anyway.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>