Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp572027ybe; Mon, 2 Sep 2019 06:09:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb6GkPvm0qCsxVHDXC5XF85y928ySUYa1GB/FojVBK0aIdCZAtrXl87H33EfKsJgvqHHHj X-Received: by 2002:a17:90b:f12:: with SMTP id br18mr12383167pjb.127.1567429752787; Mon, 02 Sep 2019 06:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567429752; cv=none; d=google.com; s=arc-20160816; b=0XVInpzlKKYYugBz1K1Otrkvp9Ku8GGtxKicq/wa9vwo9VxPqk2QZiEME6HTy73TU1 q0q4aF2bSTg6Opyq+oxx2Z5SMkctJX+PZ9WB0MsCI4LgegMuALHwcssnHH628jGL+H8C MfS8lSuW4MvBl8GhJDUxZnFERz/kIc52pBUBusyyvM+Bpc6b+jlTBq99MpzWG0GIku3K jVDAHyCrnVrOXxffxf9RKVl5MHI4723g7k4GGuan2uRfnx8dsAi5bthX3TeHon9wcvwO bgMZTbwsA2fnLPrzBZwdY4beY3vFcjjSn21hhwmJlUdM3pSwNFWU1dfmhZjUsu0I0z2i Nn+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=77PtjuIekR7htR984GNpRJBYDjP64meXwcBGbveULQM=; b=Ld6hnDPeVS5x/VT7aJ9S3gsy726wKklVduhFNnYFBg55ehEPJQwyazjcinx11PVeWO gnTWJ2oU+1Bkxz5Dz1NKs6WOEx98IMLB8eXwU2Qnb4pehadiYkZOvssuvvd4dZQmw2ax 4x6vklReHXrRaPNtiCW+DZZ8XHihYtROfAL1xpPgXS+0d54COrTZR4DC8ZewqKmxnOjA p4FSkzbyzboG1kPsXHLufNJn+22XxOfwZJ90oadXhbASLYMjaj2TPFTG/RrdH8ANZ9h/ xpIc6ICJ5StEfGanRxmwG0FZpYQR8+LknAfH2+5EggJYe4KrRjzGhcOxtkEaXLAwRaDm RWrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=cTqyCKUH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si11425740pgd.472.2019.09.02.06.08.56; Mon, 02 Sep 2019 06:09:12 -0700 (PDT) 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; dkim=pass header.i=@alien8.de header.s=dkim header.b=cTqyCKUH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730720AbfIBNEr (ORCPT + 99 others); Mon, 2 Sep 2019 09:04:47 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35824 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729772AbfIBNEq (ORCPT ); Mon, 2 Sep 2019 09:04:46 -0400 Received: from zn.tnic (p200300EC2F06430009E289DB508BD3C2.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:4300:9e2:89db:508b:d3c2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9D2AE1EC058B; Mon, 2 Sep 2019 15:04:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1567429485; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=77PtjuIekR7htR984GNpRJBYDjP64meXwcBGbveULQM=; b=cTqyCKUHHRB7OiiNP7ZHUfXAtpP8dZN9xD93thOCckviqTmv5EJUEwuw9mlvkWrIMx7loL I8sfxO0QTGA4xwyKrFcyQKH6PvV/KYcU7IOzW9cQFmp+zrRpKpbi91w0jgkfx0MRgG0ufK WIgxd9MvagP1kcowC3thQUc8Btuz8hU= Date: Mon, 2 Sep 2019 15:04:39 +0200 From: Borislav Petkov To: Robert Richter Cc: Mauro Carvalho Chehab , Tony Luck , James Morse , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/5] EDAC, mc_sysfs: Change dev_ch_attribute->channel to unsigned int Message-ID: <20190902130439.GE9605@zn.tnic> References: <20190902123216.9809-1-rrichter@marvell.com> <20190902123216.9809-3-rrichter@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190902123216.9809-3-rrichter@marvell.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 02, 2019 at 12:33:43PM +0000, Robert Richter wrote: > Struct member dev_ch_attribute->channel is always used as unsigned > int. Change type to unsigned int to avoid type casts. > > Signed-off-by: Robert Richter > --- > drivers/edac/edac_mc_sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c > index 640b9419623e..4eb8c5ceb973 100644 > --- a/drivers/edac/edac_mc_sysfs.c > +++ b/drivers/edac/edac_mc_sysfs.c > @@ -131,7 +131,7 @@ static const char * const edac_caps[] = { > > struct dev_ch_attribute { > struct device_attribute attr; > - int channel; > + unsigned int channel; > }; > > #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ > -- Merged this one into 1/5. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.