compat-drivers: fix netlink portid patch for nl80211

This required a manual fix for one hunk on nl80211.c

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: remove network/68-do-not-add-Werror.patch

This was added by Hauke to try to avoid causing compile
errors where old kernels had warnings enabled by default
such as -Werror=unused-but-set-variable. This is a common
error and enabling -Werror would make compilation fail.

The following upstream patch however sould take care of this
by disabling -Werror if *any* -W* flag is found on EXTRA_FLAGS:

commit 6f56b06e74e2805577bf7940dc0fb17b3310d6b6
Author: Chen Gang <gang.chen@asianux.com>
Date:   Wed Feb 27 14:55:06 2013 +0800

    drivers/net/wireless/ath/wil6210: Makefile, only -Werror when no -W* in EXTRA_CFLAGS

      When make with EXTRA_CFLAGS=-W, it will report error.
      so give a check in Makefile.

    Signed-off-by: Chen Gang <gang.chen@asianux.com>
    Acked-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>

The change was as follows:

	-subdir-ccflags-y += -Werror
	+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
	+       subdir-ccflags-y += -Werror
	+endif

Since this is now upstream, just nuke this work around!

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: netlink_callback min_dump_alloc only exists since 3.1

The netlink callback min_dump_alloc only exists on kernel
3.1 so only enable using it for those kernels. If you're
on an older 64-bit kernel and want this functionality of
resizing the data sent to userspace for a wiphy dump then
you better upgrade.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: refresh patches for next-20130307

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: add mac80211_hwsim support to driver-select

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: rename disable-dump-adjust-on-old-kernels.patch

Rename this from:

70-disable-dump-adjust-on-old-kernels.patch

to:

0006-disable-dump-adjust-on-old-kernels.patch

4 digit patches are patches which have undergone review for
breaking it down as much as possible to help with seeing if
some of these can later be expressed as SmPL grammer for usage
with Coccinelle.

At this point SmPL grammer is possible for 0001-netdev_ops.patch
but that is because we have all the other 2 digit patches yet to
break down further.

This patch submitted by Johannes is already well broken down
so rename it to annotate it has been reviewed and is as atomic
as can be.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: documentation impact of dump adjust workaround patch

Expand the patch documentation so users can know why
they may want to upgrade.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: add scripts/genlog-3.9

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix processing pending-stable patches

After we got DRM subsystem support the patches for each
subsystem were separated. Stable patches then need to
be broken down as well. This fixes this and restores
the behaviour allowing us to make -s releases.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: add ar5523 to driver-select

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix removal of tmp pending-stable files

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix copying of pending-stable patches

This correctly copies the pending-stable patches for each
subsystem. When running ./scripts/admin-update.sh -s
we will now stats pending-stable for each subsystem:

compat-drivers code metrics

   1320032 - Total upstream lines of code being pulled

   network
   ----------------------------------------
      3105 - backport code changes
      2602 - backport code additions
       503 - backport code deletions
     15003 - backport from compat module
     18108 - total backport code
    1.3718 - % of code consists of backport work
       192 - Code changes brought in from pending-stable
       124 - Code additions brought in from pending-stable
        68 - Code deletions brought in from pending-stable
    0.0145 - % of code being cherry picked from pending-stable

   drm
   ----------------------------------------
       437 - backport code changes
       293 - backport code additions
       144 - backport code deletions
     15003 - backport from compat module
     15440 - total backport code
    1.1697 - % of code consists of backport work

Base tree: linux-stable.git
Base tree version: v3.9-rc1
compat.git: compat-v3.9-rc1-1
compat-drivers release: compat-drivers-v3.9-rc1-2-4-g9f5e67f-s
Code metrics archive: http://bit.ly/H6BTF7

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: skip already appplied patches

GNU Patch does not yet support giving a different
error return value for patches detected as reversed or
already applied. We can add that support but for now
we distinguish this by grep'ing the results. We nuke
already applied patches, this typically would come from
linux-next, on linux-stable branches given that there is
no linearity between the two.

To support this change however it means we now have
the double amount of time it takes to apply patches
given that we now need a dry run first. The algorithm
for checking if a patch is reversed only works by
analyzing the first hunk of a patch though so perhaps
what we need on GNU Patch is a check for asking if
a patch is reversed, that would not cause much
overhead here, it would just dry run on the first
hunk by reducing the search space considerably.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix commend for genlog

The genlog script was giving the incorrect command
we use to generate the log for the kernel, fix this.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix 0005-netlink-portid.patch

The nl80211_send_wiphy() routine expects a dev
argument first now, so the first two hunks
required manual adjustments.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix 0006-disable-dump-adjust-on-old-kernels.patch

nl80211_dump_wiphy() got some huge updates throwing
off the hunks completley. This required some manual
updates.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: refresh patches for next-20130312

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: fix compilation on nl80211.c

0005-netlink-portid.patch requies addition of one more hunk.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat-drivers: refresh patches for next-20130315

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>