diff options
author | Brian Behlendorf <[email protected]> | 2009-05-20 12:23:24 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-05-20 12:23:24 -0700 |
commit | 3731931529df2bff63ca3d62e387d4e602de7cb2 (patch) | |
tree | 140e94cd307ff8c439e2c257762965bb90f6445c /module/splat | |
parent | fe4573928fc73590373a074ef9b068c6286d9a26 (diff) |
Powerpc Fixes (part 1):
- Enable builds for powerpc ISA type.
- Add DIV_ROUND_UP and roundup macros if unavailable.
- Cast 64-bit values for %lld format string to (long long) to
quiet compile warning.
Diffstat (limited to 'module/splat')
-rw-r--r-- | module/splat/splat-kobj.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/splat/splat-kobj.c b/module/splat/splat-kobj.c index 2137ab02a..c646cce1b 100644 --- a/module/splat/splat-kobj.c +++ b/module/splat/splat-kobj.c @@ -85,7 +85,8 @@ splat_kobj_test2(struct file *file, void *arg) if (!buf) { rc = -ENOMEM; splat_vprint(file, SPLAT_KOBJ_TEST2_NAME, "Failed to alloc " - "%lld bytes for tmp buffer (%d)\n", size, rc); + "%lld bytes for tmp buffer (%d)\n", + (long long)size, rc); goto out; } @@ -104,7 +105,8 @@ splat_kobj_test2(struct file *file, void *arg) rc = -EFBIG; splat_vprint(file, SPLAT_KOBJ_TEST2_NAME, "Stat'ed size " "(%lld) does not match number of bytes read " - "(%lld)\n", size, (uint64_t)strlen(buf)); + "(%lld)\n", (long long)size, + (long long)strlen(buf)); goto out2; } @@ -112,7 +114,7 @@ splat_kobj_test2(struct file *file, void *arg) splat_vprint(file, SPLAT_KOBJ_TEST2_NAME, "\n%s\n", buf); splat_vprint(file, SPLAT_KOBJ_TEST2_NAME, "Successfully stat'ed " "and read expected number of bytes (%lld) from test " - "file: %s\n", size, SPLAT_KOBJ_TEST_FILE); + "file: %s\n", (long long)size, SPLAT_KOBJ_TEST_FILE); out2: kfree(buf); out: |