From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753553AbdKXMuR (ORCPT ); Fri, 24 Nov 2017 07:50:17 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:33668 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753486AbdKXMuO (ORCPT ); Fri, 24 Nov 2017 07:50:14 -0500 Date: Fri, 24 Nov 2017 15:49:44 +0300 From: Dan Carpenter To: Stefano Manni Cc: devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Oleg Drokin , Andreas Dilger , lustre-devel@lists.lustre.org Subject: Re: [PATCH 1/4] staging: lustre: fixed signedness of some socklnd params Message-ID: <20171124124944.qriokiaedpi4xjzp@mwanda> References: <20171122193831.11801-1-stefano.manni@gmail.com> <20171122193831.11801-2-stefano.manni@gmail.com> <20171123121306.nu66ktiqjedongpp@mwanda> <1511480841.8829.3.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511480841.8829.3.camel@gmail.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 24, 2017 at 12:47:21AM +0100, Stefano Manni wrote: > I've made the module param nsched signed because the > ksock_tunables.ksnd_nscheds (the real container) is signed too. Yeah. I know. And it's way more involved and controversial to change ksock_tunables. > > I definitely agree with you that it does not make sense to have a > negative number of threads. > In my opinion it's better to fix this inconsistency between the param > and the container and then try submit another patch to harmonize > signedness around the code. No one will ever think about types again if Sparse stops complaining. It's better to keep the error message instead of silencing it in a less than ideal way because it means we have to think about types. Eventually someone will get sick of the warning and write a huger patch that rewrites a lot of code. regards, dan carpenter