Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 12118 Details for
Bug 21197
linux-ecc ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to remove warnings and add module versioning
linux-ecc-20030225-gentoo.patch (text/plain), 1.20 KB, created by
Vadim Trochinsky
on 2003-05-18 13:36:18 UTC
(
hide
)
Description:
patch to remove warnings and add module versioning
Filename:
MIME Type:
Creator:
Vadim Trochinsky
Created:
2003-05-18 13:36:18 UTC
Size:
1.20 KB
patch
obsolete
>Common subdirectories: ecc-devel/docs and ecc-devel-patched/docs >diff -u ecc-devel/ecc.c ecc-devel-patched/ecc.c >--- ecc-devel/ecc.c 2003-02-26 04:21:40.000000000 +0100 >+++ ecc-devel-patched/ecc.c 2003-05-18 02:57:53.000000000 +0200 >@@ -12,6 +12,15 @@ > * Jonathan Lundell <jlundell at resilience dot com> > */ > >+#include <linux/config.h> /* retrieve the CONFIG_* macros */ >+#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS) >+# define MODVERSIONS /* force it on */ >+#endif >+ >+#ifdef MODVERSIONS >+# include <linux/modversions.h> >+#endif >+ > #define DEBUG 0 > > #if (LINUX_VERSION_CODE < 0x020401) >@@ -42,8 +51,8 @@ > > #define ECC_VER "development" > >-#define min(a,b) ((a)<(b)?(a):(b)) >-#define max(a,b) ((a)>(b)?(a):(b)) >+#define emin(a,b) ((a)<(b)?(a):(b)) >+#define emax(a,b) ((a)>(b)?(a):(b)) > > static int ecc_scrub = -1; > static int ecc_ticks = HZ; >@@ -416,8 +425,8 @@ > { > bank[loop].mtype = BANK_SDR; > bank[loop].eccmode = cs.ecc_mode; >- bank[loop].endaddr = min(pci_byte(0x81+loop*2),total_base64MB)<<26; >- max_endaddr = max(max_endaddr,bank[loop].endaddr); >+ bank[loop].endaddr = emin(pci_byte(0x81+loop*2),total_base64MB)<<26; >+ max_endaddr = emax(max_endaddr,bank[loop].endaddr); > } > else > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21197
:
12117
| 12118