lkml.org 
[lkml]   [2009]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:tracing/core] x86, ds: fix compiler warning
    Commit-ID:  353afeea24cc51aafc0ff21a72ec740b6f0af50c
    Gitweb: http://git.kernel.org/tip/353afeea24cc51aafc0ff21a72ec740b6f0af50c
    Author: Markus Metzger <markus.t.metzger@intel.com>
    AuthorDate: Fri, 3 Apr 2009 16:43:42 +0200
    Committer: Ingo Molnar <mingo@elte.hu>
    CommitDate: Tue, 7 Apr 2009 13:36:23 +0200

    x86, ds: fix compiler warning

    Size_t is defined differently on i386 and x86_64.
    Change type to avoid compiler warning.

    Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
    Cc: roland@redhat.com
    Cc: eranian@googlemail.com
    Cc: oleg@redhat.com
    Cc: juan.villacis@intel.com
    Cc: ak@linux.jf.intel.com
    LKML-Reference: <20090403144557.523964000@intel.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>


    ---
    arch/x86/kernel/ds_selftest.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kernel/ds_selftest.c b/arch/x86/kernel/ds_selftest.c
    index e5a263c..e1ba510 100644
    --- a/arch/x86/kernel/ds_selftest.c
    +++ b/arch/x86/kernel/ds_selftest.c
    @@ -87,7 +87,7 @@ static int ds_selftest_bts_read(struct bts_tracer *tracer,
    /* Now to the test itself. */
    for (at = from; (void *)at < to; at += trace->ds.size) {
    struct bts_struct bts;
    - size_t index;
    + unsigned long index;
    int error;

    if (((void *)at - trace->ds.begin) % trace->ds.size) {

    \
     
     \ /
      Last update: 2009-05-07 11:31    [W:0.024 / U:121.768 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site