search for: need_endif_indent_brace

Displaying 2 results from an estimated 2 matches for "need_endif_indent_brace".

2008 Mar 05
0
[PATCH 2/3] Move COMPAT_csum_offset to kernels < .24 Also add #else for initializing the virtio_net_hdr
...6,10 @@ } /ip_summed == CHECKSUM_PARTIAL\)/ { - print "#ifndef COMPAT_csum_offset"; + print "#ifdef COMPAT_csum_offset"; + print "\thdr->flags = 0;" + print "\thdr->csum_offset = hdr->csum_start = 0;" + print "#else" need_endif_indent_brace = 1; } -- 1.5.4.1 --=-GX8nzkmESIKGfVphMk3E Content-Disposition: attachment; filename*0=0003-Backport-skb_transport_header-as-a-BUG.-Since-kvm-h.patc; filename*1=h Content-Type: application/mbox; name=0003-Backport-skb_transport_header-as-a-BUG.-Since-kvm-h.patch Content-Transfer-Encoding: 7bi...
2008 Mar 05
0
[PATCH 3/3] Backport skb_transport_header as a BUG.. Since kvm host side does not support GSO anyway the simplest/fastest thing is to backport the relative new skb_transport_header as BUG.
...@ do { \ #define COMPAT_INIT_WORK #define COMPAT_f_dentry #define COMPAT_net_stats +#define COMPAT_transport_header #define __maybe_unused diff --git a/hack-module.awk b/hack-module.awk index 41ba60d..9e7ef0e 100644 --- a/hack-module.awk +++ b/hack-module.awk @@ -113,6 +113,13 @@ need_endif_indent_brace = 1; } +/skb_transport_header/ { + print "#ifdef COMPAT_transport_header"; + print "BUG();"; + print "#else"; + need_endif = 1; +} + { sub(/\<pci_dev->revision\>/, "pci_dev_revision(pci_dev)") } { print } -- 1.5.4.1 --=-GX8nzkmE...