diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-01-10 18:15:45 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-01-10 18:15:45 +0000 |
commit | d180d4e006e5646654b61e12619c6b104ac00e54 (patch) | |
tree | 98ff6ce00fdffbd4c740ed0068fb8fb4cf695657 /package/spca5xx-le/patches | |
parent | 679e42f9103419e8a3cc33f02aad423123087c5a (diff) | |
download | mtk-20170518-d180d4e006e5646654b61e12619c6b104ac00e54.zip mtk-20170518-d180d4e006e5646654b61e12619c6b104ac00e54.tar.gz mtk-20170518-d180d4e006e5646654b61e12619c6b104ac00e54.tar.bz2 |
Fix compilation failures with spca5xx-le (#2735)
SVN-Revision: 10158
Diffstat (limited to 'package/spca5xx-le/patches')
-rw-r--r-- | package/spca5xx-le/patches/100-compile_pud_shift.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/spca5xx-le/patches/100-compile_pud_shift.patch b/package/spca5xx-le/patches/100-compile_pud_shift.patch new file mode 100644 index 0000000..91913a7 --- /dev/null +++ b/package/spca5xx-le/patches/100-compile_pud_shift.patch @@ -0,0 +1,21 @@ +diff -Naur spca5xx-le/spca_core.c spca5xx-le-new/spca_core.c +--- spca5xx-le/spca_core.c 2007-06-03 21:30:29.000000000 +0100 ++++ spca5xx-le-new/spca_core.c 2008-01-06 12:48:08.000000000 +0000 +@@ -535,7 +535,7 @@ + + if (!pgd_none (*pgd)) + { +-#if PUD_SHIFT ++#ifdef PUD_SHIFT + pud_t *pud = pud_offset (pgd, adr); + if (!pud_none (*pud)) + { +@@ -552,7 +552,7 @@ + ret = (unsigned long) page_address (pte_page (pte)); + ret |= (adr & (PAGE_SIZE - 1)); + } +-#if PUD_SHIFT ++#ifdef PUD_SHIFT + } + #endif + } |