Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2070293ybf; Mon, 2 Mar 2020 01:12:25 -0800 (PST) X-Google-Smtp-Source: APXvYqy5B8BaEQqKxuToZqapbmBbgwwOV1LG+ErOkG/9s6TiOp3F0pIqIcPl5f7BQFphTH32oIZU X-Received: by 2002:aca:1913:: with SMTP id l19mr10222162oii.47.1583140345125; Mon, 02 Mar 2020 01:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583140345; cv=none; d=google.com; s=arc-20160816; b=B7HwdSIFGesalV7Eyv5ZuFDYaSw46xoyQUEN20h0KDmCBGdlH3DYXloesn5acvQurN es138QVbE/avy5zfaFliMIep3iQAyt3q4pW8hHl1p7SiaxflNGKZaTAB5+uh5CnOQgpO BgILx6do2nFTByg5A+tJ+E3cJxUPcMOqNFAHG1Zh1pzxlfWYMMbSYVRcXXH6IlqJUBNT TPLDMr15mZmqmWvO+4h2K4ipnKpgbYYenzpsiAn9GUEhtOcsPq8/hYyxloYUTlzFhhN9 uBsln3lyWA8BlpdRM3zIN5+5Orfulv7uk6EEUWU3vevdijyCLhRjGM9Xjsb6dHzbb1Cp bnBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KG0oOPi0kBi6by5vfJKVr+RL2tV5S/0pBtKvtH+9O4M=; b=p7aeVDTJyaUi3hnydLz66MKHVonwceTKV7LDMSk1rWrcEZrTQOmIQaSIAicsbNC0CB 7FycvzDriNlT/JYO7wEMyYxrRd0C2MIQV2byd6XoohLCI7fHEJ0cRPemHLLwQoBBy/Hz DO8+9zydH1s7yy7oebSbKcTuRhp6N5CmN/RB/JCyR8HR0rco7DMUAso+4twRFppfuKS5 PrPabemfBrHXb4F4kyA0jE9vyh9UqW1MjCMWgjVcuUI2dN6laCFN4nZ7CNFjRfWZ7IVj KKwNU3p6FceHMTzUb0wRFwMElTtEPCXPaz17uPq/ewlGK5zPOmOL1bynO26T+3cdQlYN OAPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si6258982otm.256.2020.03.02.01.12.13; Mon, 02 Mar 2020 01:12:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbgCBJLC (ORCPT + 99 others); Mon, 2 Mar 2020 04:11:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:51082 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgCBJLC (ORCPT ); Mon, 2 Mar 2020 04:11:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E6043AF2D; Mon, 2 Mar 2020 09:11:00 +0000 (UTC) Subject: Re: [PATCH] xen: Use 'unsigned int' instead of 'unsigned' To: Yan Yankovskyi Cc: Boris Ostrovsky , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <20200229223035.GA28145@kbp1-lhp-F74019> From: Jan Beulich Message-ID: Date: Mon, 2 Mar 2020 10:11:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200229223035.GA28145@kbp1-lhp-F74019> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.02.2020 23:30, Yan Yankovskyi wrote: > Resolve the following warning, reported by checkpatch.pl: > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > > No functional change. IMO a change like this would ideally go a little further and try to use the actually designated types when adjusting them anyway, e.g. ... > --- a/drivers/xen/events/events_2l.c > +++ b/drivers/xen/events/events_2l.c > @@ -42,48 +42,48 @@ > > static DEFINE_PER_CPU(xen_ulong_t [EVTCHN_MASK_SIZE], cpu_evtchn_mask); > > -static unsigned evtchn_2l_max_channels(void) > +static unsigned int evtchn_2l_max_channels(void) > { > return EVTCHN_2L_NR_CHANNELS; > } > > -static void evtchn_2l_bind_to_cpu(struct irq_info *info, unsigned cpu) > +static void evtchn_2l_bind_to_cpu(struct irq_info *info, unsigned int cpu) > { > clear_bit(info->evtchn, BM(per_cpu(cpu_evtchn_mask, info->cpu))); > set_bit(info->evtchn, BM(per_cpu(cpu_evtchn_mask, cpu))); > } > > -static void evtchn_2l_clear_pending(unsigned port) > +static void evtchn_2l_clear_pending(unsigned int port) ... evtchn_port_t here and elsewhere. Jan