lkml.org 
[lkml]   [2010]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/5]security:ebitmap.c Fix warning: variable 'e_sft' set but not used
    Date
    gcc is giving me this during compiling:
    CC security/selinux/ss/ebitmap.o
    security/selinux/ss/ebitmap.c: In function 'ebitmap_netlbl_import':
    security/selinux/ss/ebitmap.c:159:27: warning: variable 'e_sft' set but not used

    The below fixes this warning for me.
    (please check this whenever you have time).
    Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

    ---
    security/selinux/ss/ebitmap.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/security/selinux/ss/ebitmap.c b/security/selinux/ss/ebitmap.c
    index 04b6145..b7980ee 100644
    --- a/security/selinux/ss/ebitmap.c
    +++ b/security/selinux/ss/ebitmap.c
    @@ -156,7 +156,7 @@ int ebitmap_netlbl_import(struct ebitmap *ebmap,
    struct ebitmap_node *e_iter = NULL;
    struct ebitmap_node *emap_prev = NULL;
    struct netlbl_lsm_secattr_catmap *c_iter = catmap;
    - u32 c_idx, c_pos, e_idx, e_sft;
    + u32 c_idx, c_pos, e_idx;

    /* NetLabel's NETLBL_CATMAP_MAPTYPE is defined as an array of u64,
    * however, it is not always compatible with an array of unsigned long
    @@ -190,7 +190,6 @@ int ebitmap_netlbl_import(struct ebitmap *ebmap,
    }
    delta = c_pos - e_iter->startbit;
    e_idx = delta / EBITMAP_UNIT_SIZE;
    - e_sft = delta % EBITMAP_UNIT_SIZE;
    while (map) {
    e_iter->maps[e_idx++] |= map & (-1UL);
    map = EBITMAP_SHIFT_UNIT_SIZE(map);
    --
    1.7.1.rc1.21.gf3bd6


    \
     
     \ /
      Last update: 2010-06-27 08:51    [W:0.022 / U:128.552 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site