Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp769048rwl; Thu, 5 Jan 2023 04:24:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+iDlUChV5tKqD9FJMHopvEW0t1v7MFLc+x36Kd+y0v7scto6q7Lt0kdtbSgim+x+fPCc1 X-Received: by 2002:a05:6a20:d2c6:b0:af:7233:5bfc with SMTP id ir6-20020a056a20d2c600b000af72335bfcmr80506165pzb.8.1672921470915; Thu, 05 Jan 2023 04:24:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672921470; cv=none; d=google.com; s=arc-20160816; b=xsum73X9XtKyUZO5zNMPxuAQQ2pe2gb+N6PNKZQ9Wr0FZZlXHPg38PHUF7sRFtd8cJ CNWa9Xl6uwJ2cX8niLofjQ3DYaJItnfSjBhfxjowHmiof7rScER9EfBd5b/iR5qEz6Di EAt8JEWtH+yVVOWQfrInyi6dG3DKigZ5U2fBYG14lgItaKVgRZCdaqDDZ0whjMDXF72Z M/MBm7qciqDeRdOFbYkhYIpzy1QqrINZq0bnQ6chVlHb3m14Bal5KcnFn62gvzfpfSsW IkJ43hhK11baMZXDrUhDXWWIxlDM2dItQ1saDFlXiE9OzVoAoNQWh8tkzGyh5dck/6rK 7B4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4hLR0nZXuNIYoIesX6DVUi4Rib+LKJqv3J/7PyPgB2Q=; b=bwyde+A9Bq+a+8o0367hduO2Pqme0BNxFmSQ1Z3SmfO/pLtdTyfOTpJRUqX7J3E1OQ mwNHIHtG/NUYurahak9ACDR1S702mThKD0DRlQnD8TlJtXIxGEkefa3eRAJ9myFS9z8n r7ZvYqDgD8U7Cy7J3QvlRXLgff29QclIdUwFWUxRWsNwmYVyz4c9A1Wv741FfJ34dF5O z5h7v9akpdo/cUSUBxFx//SUps9BCQpyrU9prFHGeV6omppTbs/UCTEeHan+YoHy402q wyBJG+mSdTTfN1kJcCWLn6wTl1+w/Uq2BRHrqJARfgOlFd8Xx7DrpxOcmd6aytYnMEC9 5giQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XWDYx2nY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a63f04d000000b004752f807266si38058833pgj.693.2023.01.05.04.24.23; Thu, 05 Jan 2023 04:24:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XWDYx2nY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232667AbjAELsM (ORCPT + 55 others); Thu, 5 Jan 2023 06:48:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232672AbjAELrv (ORCPT ); Thu, 5 Jan 2023 06:47:51 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70698568A9 for ; Thu, 5 Jan 2023 03:47:49 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id v25so7270592lfe.12 for ; Thu, 05 Jan 2023 03:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4hLR0nZXuNIYoIesX6DVUi4Rib+LKJqv3J/7PyPgB2Q=; b=XWDYx2nYaEb6OYdC99geqWz9iDmWpz7ZGzMFd6WVtWtf+hSpQn/tN3R/3VjTEW6H07 PI4t2h/ULyYTs2HxZI7jkRV9Adv7PI29iXqQByG87fHMifKjDyoj3umjZUqmF8s+t4j1 KWpRcTQ7JCau+cFOA3mHcJ8V2jq4xcVkBw+/WKyrMiHkvDNDpjIRpJ+hD0vrxJ5k4aE/ 2RMXE0bbp/fzbNLmizyvOcf6kxFHYTk10QBtUoWQyzIXtMn/D2ZFaD671wBNrmQ8MQKk 7Jqrl7BYTe9wq5vdQ0veP/2Ir5736glglUNNPuT89R8I25V2f+ap1v/xKzi3KmB2FJ1E yAPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4hLR0nZXuNIYoIesX6DVUi4Rib+LKJqv3J/7PyPgB2Q=; b=Ws4kmACJBIThO4YU5+esXWMJIOQR9//eVKAhYqzTpro7XZIwaIiyA6sRJwWLgeN7l1 ettnEW2UmCClagtbL3I3cKZacYGSW6uJSJWCTVCoURmXCIVeOsaIgnw4c/EgcnVVh9Bj wFwMMRvhGHzT4EBtUrLOJku7MgPm6wv2Up+4p0UtzHl1t3LVF+zclrULNTEDZyNVWlKL keHKbNsTSbEGezgBgE5dO/+z8XpIIW06iD+JoAi1N26Ku47KbpUnAgpkcJ4/U5hXet10 PqHfxqS/MPaRuHx0eW8UnhpS1Ih8tJRQ/xAozdm6qwA9fHfb+0jowQxIfcOHxHWp7JTT HTwg== X-Gm-Message-State: AFqh2krjPPRbcXcEZJTSmWrGWygWJHbfNxAJCkziTT3GivpONeYkmc1g tQ+NhZvShXbtxZDTnMT6BoNtcA== X-Received: by 2002:a05:6512:158d:b0:4b5:90c5:281c with SMTP id bp13-20020a056512158d00b004b590c5281cmr16031177lfb.19.1672919267746; Thu, 05 Jan 2023 03:47:47 -0800 (PST) Received: from [192.168.1.101] (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id q20-20020a056512211400b004ac6a444b26sm5464430lfr.141.2023.01.05.03.47.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 03:47:47 -0800 (PST) Message-ID: <7017c4e0-16c0-225f-028d-2cf2cb34f360@linaro.org> Date: Thu, 5 Jan 2023 12:47:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 1/2] soc: qcom: dcc: Signedness bug in config_reset_write() To: Dan Carpenter , Souradeep Chowdhury Cc: Andy Gross , Bjorn Andersson , Alex Elder , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit message should be written in an imperative manner, such as "Fix X, make Y do Z" For the code: Reviewed-by: Konrad Dybcio Konrad On 5.01.2023 11:53, Dan Carpenter wrote: > The "ret" variable needs to be signed for the error handling to work. > > Fixes: 4cbe60cf5ad6 ("soc: qcom: dcc: Add driver support for Data Capture and Compare unit(DCC)") > Signed-off-by: Dan Carpenter > --- > drivers/soc/qcom/dcc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/qcom/dcc.c b/drivers/soc/qcom/dcc.c > index d4101f79cb5d..1e2cbefc1655 100644 > --- a/drivers/soc/qcom/dcc.c > +++ b/drivers/soc/qcom/dcc.c > @@ -808,8 +808,9 @@ static ssize_t config_reset_write(struct file *filp, > const char __user *user_buf, size_t count, > loff_t *ppos) > { > - unsigned int val, ret; > + unsigned int val; > struct dcc_drvdata *drvdata = filp->private_data; > + int ret; > > ret = kstrtouint_from_user(user_buf, count, 0, &val); > if (ret < 0)