Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1153658rdb; Fri, 1 Dec 2023 08:17:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUZJk3OgLT6bNCaRaVOTWNr5ebeeEA8XcACmIHB9g32s6KtgV40wdcWBvNkY8z930EleMW X-Received: by 2002:a05:6a00:3988:b0:6be:314c:16cb with SMTP id fi8-20020a056a00398800b006be314c16cbmr30870215pfb.10.1701447462586; Fri, 01 Dec 2023 08:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701447462; cv=none; d=google.com; s=arc-20160816; b=p0cVDjOrWHO4uzPOpKJ3VJCmD53m2Vd0BUwk/t0TsJ0FO17hmLYHHYaLBjJg19SSpC XWn/N60Z9+DxDNcGfUHu8lRELQKYH43ruBG9ydgCTzhaas/5ySSmMh9WGPOOCXqEceLx yho0CyoFelMcpJJ9xM8MCLba2nBsJqPwW65d2zf9SCtMoK90SX99+/+DpvAwRT+Wy+9p DvPjvRwqGG/Fv1NPIF6vBM3L2Mg27v6b5wzTyv1enjdFV2I7wvXZKA3/UhgXwQzQ3p7i mlr8BFYREK0S5x6M/Re/9hoK1tGhmFapHU54ymvx0oSKx2hYSS2QZBbdlFCigSKkHW2E bLBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=rRyIK44k8WakD7ulTyl1AC/ua3tTG7/92vD0ifCxVf0=; fh=9UOsKgbnpP8SUwVzA7H4gzZGUEEDxAdkkxqGsRcFlEU=; b=yGb5wdizA9lrDj8941fWf3ckJRH8Ii3mpEzKtsYcIy7y7WomPWaVFlh/pNKYmAoQ2d Jm0eFkglrbWMjx2obZBAfC6d72zxwdFS7q2RyyURg3OSKXDaaqL13xfDu5W/AB6K3Vos CevNBgU62jTyneMXnsqRyvQzaqWWTP3ub5kLvbkGbE7Za0Nam1UiHwKbZppSg87kqPcr AkgcK/DORIBTi6sAWKj7GsFDSTrtRM8ccJO+QmLF8bDQg0xWTEFHWgaLEHBxzJI7x/6u VeutsYzH5hOwnl12qLLCze32Gq5yQU2/jFWEwstUgOAya2raxfBCoQbEIVRx4TwVIUtc drkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XtP2tlor; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k18-20020a6568d2000000b0057942bfab4dsi3573357pgt.395.2023.12.01.08.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:17:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XtP2tlor; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 39C9F81F54F3; Fri, 1 Dec 2023 08:17:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378450AbjLAQQ7 (ORCPT + 99 others); Fri, 1 Dec 2023 11:16:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378234AbjLAQQz (ORCPT ); Fri, 1 Dec 2023 11:16:55 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D0041738; Fri, 1 Dec 2023 08:17:00 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50be0f13aa6so140885e87.1; Fri, 01 Dec 2023 08:17:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701447418; x=1702052218; darn=vger.kernel.org; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=rRyIK44k8WakD7ulTyl1AC/ua3tTG7/92vD0ifCxVf0=; b=XtP2tlorFoEfLRdFeQjeWday0lIulV1BUrFiA3Ale0So92qnyR7VLbwLoTAr78Ivli aLcFHnhjEpHIIoao2XyaywwhkSyeN5tOrM3kcL+zq6zKRMRqWvakc09vcCpghHfpY7OD w9GF/8qXedRP5nntPftKV/PRqN6Fy2Xyh2qBkybPUU4TvLpceNlD7V7FH1H/amDxVQaY ULjNdwPdUUgOtw7GcmvP4qgjkucldmCcePpaHfqaI7vl0+56Kfl1PumrZhfwpSv/Ey3D wtLwdKIID3Ke4qurlFR4u8TJwAYxj/50qie38JMZgPjmPbgn6D5PByzhPwuD/BLO1+GP HX8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701447418; x=1702052218; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rRyIK44k8WakD7ulTyl1AC/ua3tTG7/92vD0ifCxVf0=; b=aXtWOFMT0Zk9JASzWQowyMajVzHg9Z4HWkd5FoRXpBcG7arIJcpXzjd4EIo45B41KS USYtJNK2M9mlj2YVVffjplpZvBewH/mmVX2LJjqohyq6mzTVxkko4ohWW54oZOhgtmfj Pv30DR0ZJqYZM7RVSBB+QURu69w8FqbU2W/J3W+Y/bFzsfvPEAZP6OmEO7Qw6FymeyLf 893V+5AqAHALhM+W3KUj5EvJtEog4pGUZ95KeQHQ3bXvbJrIw+4Y8SHtU706MAVGBuSa E4gWh3tSpyHW/RwwofFz1VL07EIToFFXoD6Eecfhd1/1l5RbkA5sPDX3o/4WBJ5FAOkh LhtA== X-Gm-Message-State: AOJu0YydElWI4zTt7vqnq35WGa4k9829h6YsMGEIMG1VCodftlpn//P4 UV1G6cpho50fgl5UgNrchl8= X-Received: by 2002:a05:6512:3e22:b0:50b:c7bd:2352 with SMTP id i34-20020a0565123e2200b0050bc7bd2352mr1264861lfv.14.1701447418382; Fri, 01 Dec 2023 08:16:58 -0800 (PST) Received: from [192.168.1.104] ([31.173.84.39]) by smtp.gmail.com with ESMTPSA id e7-20020a05651236c700b0050bc45777absm457838lfs.113.2023.12.01.08.16.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 08:16:58 -0800 (PST) Subject: Re: [PATCH v2] usb: storage: sddr55: clean up variable type To: Greg Kroah-Hartman , Karina Yankevich Cc: Alan Stern , linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org References: <53bc0584-51eb-8bb7-de48-ca07fccafc19@gmail.com> <20230227112541.14849-1-k.yankevich@omp.ru> From: Sergei Shtylyov Message-ID: Date: Fri, 1 Dec 2023 19:16:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:17:32 -0800 (PST) Hello! Sorry for the really long delay! Your reply scared off Karina (it was her 1st kernel patch), so I'm trying to pick this patch up where it was left back in February... On 2/27/23 2:54 PM, Greg Kroah-Hartman wrote: [...] >> SVACE static analyzer complains that we're possibly >> losing information by shifting an 'unsigned int pba' >> variables in sddr55_{read,write}_data(). >> It is a false positive, because of the card's total capacity >> is no larger than 128 MB. But 'unsigned int' is more >> suitable in this case. > > Please wrap at 72 columns. > >> Found by OMP on behalf of Linux Verification Center >> (linuxtesting.org) with SVACE. > > What is "OMP"? Open Mobile Platform, LLC. The website is in Russian only: https://www.omp.ru > What is "SVACE"? The patch description said thst it's a static analyzer. Here's the link to the Institute for System Programming web page about it: https://www.ispras.ru/en/technologies/svace/ > And why change anything if there is not a real issue? We needlessly use 64-bit type on 64-bit arches. >> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > > That's obviously not the correct commit id for such a "fix" as this is > not a real issue. That's correct. We'll remove this tag. > thanks, > > greg k-h MBR, Srrgey