From patchwork Mon Jun 21 22:59:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 248 Return-Path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (Postfix) with SMTP id C52791540F2 for ; Tue, 22 Jun 2010 00:59:50 +0200 (CEST) Received: (qmail invoked by alias); 21 Jun 2010 22:59:49 -0000 Received: from i59F6BC12.versanet.de (EHLO sven-desktop.lazhur.ath.cx) [89.246.188.18] by mail.gmx.net (mp072) with SMTP; 22 Jun 2010 00:59:49 +0200 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX1/ZUgZoyDvZEjBojjY+biiFp0wHV4L4AhX9simbFV oe8R2bybS9OCdR From: Sven Eckelmann To: Greg KH Date: Tue, 22 Jun 2010 00:59:47 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.34-1-amd64; KDE/4.4.4; x86_64; ; ) References: <1276908713-28365-1-git-send-email-sven.eckelmann@gmx.de> <20100621223427.GA22687@kroah.com> In-Reply-To: <20100621223427.GA22687@kroah.com> MIME-Version: 1.0 Message-Id: <201006220059.48628.sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 Cc: b.a.t.m.a.n@lists.open-mesh.net Subject: Re: [B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (2) X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2010 22:59:51 -0000 Greg KH wrote: > On Sat, Jun 19, 2010 at 02:51:45AM +0200, Sven Eckelmann wrote: > > Hi, > > > > here are patches targetted for 2.6.36. They are made on top of patches > > you have > > > > already received in 1275852501-28523-1-git-send-email-sven.eckelmann@gmx.de : > > * Staging: batman-adv: remove redundant struct declaration > > * Staging: batman-adv: Move device for icmp injection to debugfs > > * Staging: batman-adv: Move tables from sysfs to debugfs > > * Staging: batman-adv: convert all sysfs files to single value files > > * Staging: batman-adv: Adding netfilter-bridge hooks > > * Staging: batman-adv: Add information about batman-adv sysfs entries > > * Staging: batman-adv: remove superfluous hint to "translation table" > > * Staging: batman-adv: convert vis_interval into define > > * Staging: batman-adv: Convert MAC_FMT to %pM > > > > They also depend on patches not yet applied on 2.6.35, but sent to you: > > * Staging: batman-adv: return -EFAULT on copy_to_user errors > > * Staging: batman-adv: fix function prototype > > Something's still not right. I applied the above 2 patches, and then > tried to apply the 1/8 patch above: > Subject: [PATCH 1/8] Staging: batman-adv: Mark locally used symbols as > static > > It fails with: > patching file drivers/staging/batman-adv/bitarray.c > patching file drivers/staging/batman-adv/bitarray.h > patching file drivers/staging/batman-adv/hash.c > patching file drivers/staging/batman-adv/hash.h > patching file drivers/staging/batman-adv/originator.c > patching file drivers/staging/batman-adv/originator.h > patching file drivers/staging/batman-adv/routing.c > patching file drivers/staging/batman-adv/routing.h > patching file drivers/staging/batman-adv/send.c > patching file drivers/staging/batman-adv/send.h > patching file drivers/staging/batman-adv/soft-interface.c > patching file drivers/staging/batman-adv/soft-interface.h > patching file drivers/staging/batman-adv/translation-table.c > Hunk #2 succeeded at 250 (offset 5 lines). > Hunk #3 succeeded at 442 with fuzz 1 (offset 16 lines). > patching file drivers/staging/batman-adv/translation-table.h > Hunk #1 FAILED at 26. > 1 out of 1 hunk FAILED -- saving rejects to file > drivers/staging/batman-adv/translation-table.h.rej patching file > drivers/staging/batman-adv/vis.c > patching file drivers/staging/batman-adv/vis.h > Hunk #1 FAILED at 44. > 1 out of 1 hunk FAILED -- saving rejects to file > drivers/staging/batman-adv/vis.h.rej > > So, any thoughts? I have currently no idea what you try to achieve by applying all patches out of order, but you have done following: * Staging: batman-adv: return -EFAULT on copy_to_user errors * Staging: batman-adv: fix function prototype * Staging: batman-adv: Mark locally used symbols as static => of course fails because it was applied out of order and misses 9 patches inbetween Right thing to do: * Staging: batman-adv: return -EFAULT on copy_to_user errors * Staging: batman-adv: fix function prototype * Staging: batman-adv: remove redundant struct declaration * Staging: batman-adv: Move device for icmp injection to debugfs * Staging: batman-adv: Move tables from sysfs to debugfs * Staging: batman-adv: convert all sysfs files to single value files * Staging: batman-adv: Adding netfilter-bridge hooks * Staging: batman-adv: Add information about batman-adv sysfs entries * Staging: batman-adv: remove superfluous hint to "translation table" * Staging: batman-adv: convert vis_interval into define * Staging: batman-adv: Convert MAC_FMT to %pM * Staging: batman-adv: Mark locally used symbols as static * Staging: batman-adv: Ignore debugfs on kernels without debugfs support * Staging: batman-adv: permit setting ogm interval to JITTER*2 * Staging: batman-adv: Add release information for version 2010.0.0 * Staging: batman-adv: 32bit sequence number and TTL for broadcasts * Staging: batman-adv: Add bonding functionality * Staging: batman-adv: bonding and interface alternating * Staging: batman-adv: record route for ICMP messages Just saved my patch queues as 2.6.35.mbox, 2.6.36_renewed.mbox, 2.6.36_2.mbox and created a temporary gregkh branch of linux-next/master: $ git am -3 ~/2.6.35.mbox Applying: Staging: batman-adv: return -EFAULT on copy_to_user errors Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. Applying: Staging: batman-adv: fix function prototype Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. $ git am -3 ~/2.6.36_renewed.mbox Applying: Staging: batman-adv: remove redundant struct declaration Applying: Staging: batman-adv: Move device for icmp injection to debugfs Applying: Staging: batman-adv: Move tables from sysfs to debugfs Applying: Staging: batman-adv: convert all sysfs files to single value files Applying: Staging: batman-adv: Adding netfilter-bridge hooks Applying: Staging: batman-adv: Add information about batman-adv sysfs entries Applying: Staging: batman-adv: remove superfluous hint to "translation table" Applying: Staging: batman-adv: convert vis_interval into define Applying: Staging: batman-adv: Convert MAC_FMT to %pM $ git am -3 ~/2.6.36_2.mbox Applying: Staging: batman-adv: Mark locally used symbols as static Applying: Staging: batman-adv: Ignore debugfs on kernels without debugfs support Applying: Staging: batman-adv: permit setting ogm interval to JITTER*2 Applying: Staging: batman-adv: Add release information for version 2010.0.0 Applying: Staging: batman-adv: 32bit sequence number and TTL for broadcasts Applying: Staging: batman-adv: Add bonding functionality Applying: Staging: batman-adv: bonding and interface alternating Applying: Staging: batman-adv: record route for ICMP messages So, linux-next has already following patches applied: * Staging: batman-adv: return -EFAULT on copy_to_user errors * Staging: batman-adv: fix function prototype All remaining patches are missing and apply cleanly. Now the same for staging-next (branch staging-next): $ git am -3 ~/2.6.35.mbox Applying: Staging: batman-adv: return -EFAULT on copy_to_user errors Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. Applying: Staging: batman-adv: fix function prototype Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Auto-merging drivers/staging/batman-adv/bat_sysfs.c No changes -- Patch already applied. $ git am -3 ~/2.6.36_renewed.mbox Applying: Staging: batman-adv: remove redundant struct declaration Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. Applying: Staging: batman-adv: Move device for icmp injection to debugfs Applying: Staging: batman-adv: Move tables from sysfs to debugfs Applying: Staging: batman-adv: convert all sysfs files to single value files Applying: Staging: batman-adv: Adding netfilter-bridge hooks Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. Applying: Staging: batman-adv: Add information about batman-adv sysfs entries Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. Applying: Staging: batman-adv: remove superfluous hint to "translation table" Applying: Staging: batman-adv: convert vis_interval into define Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. Applying: Staging: batman-adv: Convert MAC_FMT to %pM $ git am -3 ~/2.6.36_2.mbox Applying: Staging: batman-adv: Mark locally used symbols as static Applying: Staging: batman-adv: Ignore debugfs on kernels without debugfs support Applying: Staging: batman-adv: permit setting ogm interval to JITTER*2 Applying: Staging: batman-adv: Add release information for version 2010.0.0 Applying: Staging: batman-adv: 32bit sequence number and TTL for broadcasts Applying: Staging: batman-adv: Add bonding functionality Applying: Staging: batman-adv: bonding and interface alternating Applying: Staging: batman-adv: record route for ICMP messages More patches are already in staging-next, but all remaining apply cleanly. A diff between those two repositories only give me a change which was applied by the net folks for their 2.6.36 branch: So I would say that everything should work as expected. Best regards, Sven diff -ruN drivers/staging/batman-adv/hard-interface.c ../linux-next/drivers/staging/batman-adv/hard-interface.c --- drivers/staging/batman-adv/hard-interface.c 2010-06-22 00:55:28.360018720 +0200 +++ ../linux-next/drivers/staging/batman-adv/hard-interface.c 2010-06-22 00:52:26.491518520 +0200 @@ -72,7 +72,7 @@ #endif /* Device is being bridged */ - /* if (net_dev->br_port != NULL) + /* if (net_dev->priv_flags & IFF_BRIDGE_PORT) return 0; */ return 1;