static cpumask_t hv_24x7_cpumask;
 
-static bool domain_is_valid(unsigned domain)
+static bool domain_is_valid(unsigned int domain)
 {
        switch (domain) {
 #define DOMAIN(n, v, x, c)             \
        }
 }
 
-static bool is_physical_domain(unsigned domain)
+static bool is_physical_domain(unsigned int domain)
 {
        switch (domain) {
 #define DOMAIN(n, v, x, c)             \
                          domain <= HV_PERF_DOMAIN_VCPU_REMOTE_NODE));
 }
 
-static const char *domain_name(unsigned domain)
+static const char *domain_name(unsigned int domain)
 {
        if (!domain_is_valid(domain))
                return NULL;
        return NULL;
 }
 
-static bool catalog_entry_domain_is_valid(unsigned domain)
+static bool catalog_entry_domain_is_valid(unsigned int domain)
 {
        /* POWER8 doesn't support virtual domains. */
        if (interface_version == 1)
 
 static char *event_desc(struct hv_24x7_event_data *ev, int *len)
 {
-       unsigned nl = be16_to_cpu(ev->event_name_len);
+       unsigned int nl = be16_to_cpu(ev->event_name_len);
        __be16 *desc_len = (__be16 *)(ev->remainder + nl - 2);
 
        *len = be16_to_cpu(*desc_len) - 2;
 
 static char *event_long_desc(struct hv_24x7_event_data *ev, int *len)
 {
-       unsigned nl = be16_to_cpu(ev->event_name_len);
+       unsigned int nl = be16_to_cpu(ev->event_name_len);
        __be16 *desc_len_ = (__be16 *)(ev->remainder + nl - 2);
-       unsigned desc_len = be16_to_cpu(*desc_len_);
+       unsigned int desc_len = be16_to_cpu(*desc_len_);
        __be16 *long_desc_len = (__be16 *)(ev->remainder + nl + desc_len - 2);
 
        *len = be16_to_cpu(*long_desc_len) - 2;
 {
        void *start = ev;
        __be16 *dl_, *ldl_;
-       unsigned dl, ldl;
-       unsigned nl = be16_to_cpu(ev->event_name_len);
+       unsigned int dl, ldl;
+       unsigned int nl = be16_to_cpu(ev->event_name_len);
 
        if (nl < 2) {
                pr_debug("%s: name length too short: %d", __func__, nl);
  *             - Specifying (i.e overriding) values for other parameters
  *               is undefined.
  */
-static char *event_fmt(struct hv_24x7_event_data *event, unsigned domain)
+static char *event_fmt(struct hv_24x7_event_data *event, unsigned int domain)
 {
        const char *sindex;
        const char *lpar;
        return NULL;
 }
 
-static struct attribute *event_to_attr(unsigned ix,
+static struct attribute *event_to_attr(unsigned int ix,
                                       struct hv_24x7_event_data *event,
-                                      unsigned domain,
+                                      unsigned int domain,
                                       int nonce)
 {
        int event_name_len;
        return device_str_attr_create(name, nl, nonce, desc, dl);
 }
 
-static int event_data_to_attrs(unsigned ix, struct attribute **attrs,
-                                  struct hv_24x7_event_data *event, int nonce)
+static int event_data_to_attrs(unsigned int ix, struct attribute **attrs,
+                              struct hv_24x7_event_data *event, int nonce)
 {
        *attrs = event_to_attr(ix, event, event->domain, nonce);
        if (!*attrs)
        struct rb_node node;
        const char *name;
        int nl;
-       unsigned ct;
-       unsigned domain;
+       unsigned int ct;
+       unsigned int domain;
 };
 
 static int memord(const void *d1, size_t s1, const void *d2, size_t s2)
        return memcmp(d1, d2, s1);
 }
 
-static int ev_uniq_ord(const void *v1, size_t s1, unsigned d1, const void *v2,
-                      size_t s2, unsigned d2)
+static int ev_uniq_ord(const void *v1, size_t s1, unsigned int d1,
+                      const void *v2, size_t s2, unsigned int d2)
 {
        int r = memord(v1, s1, v2, s2);
 
 }
 
 static int event_uniq_add(struct rb_root *root, const char *name, int nl,
-                         unsigned domain)
+                         unsigned int domain)
 {
        struct rb_node **new = &(root->rb_node), *parent = NULL;
        struct event_uniq *data;
 static int h_24x7_event_init(struct perf_event *event)
 {
        struct hv_perf_caps caps;
-       unsigned domain;
+       unsigned int domain;
        unsigned long hret;
        u64 ct;