lkml.org 
[lkml]   [2008]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH] KVM: fix sparse warning
    From
    Impact: make global function static

    virt/kvm/kvm_main.c:85:6: warning: symbol 'kvm_rebooting' was not declared. Should it be static?

    Signed-off-by: Hannes Eder <hannes@hanneseder.net>
    ---
    virt/kvm/kvm_main.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
    index 54d25e6..8dab7ce 100644
    --- a/virt/kvm/kvm_main.c
    +++ b/virt/kvm/kvm_main.c
    @@ -82,7 +82,7 @@ struct dentry *kvm_debugfs_dir;
    static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
    unsigned long arg);

    -bool kvm_rebooting;
    +static bool kvm_rebooting;

    #ifdef KVM_CAP_DEVICE_ASSIGNMENT

    --
    1.5.6.3


    \
     
     \ /
      Last update: 2008-11-28 20:51    [W:0.019 / U:5.952 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site