Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp190738imn; Mon, 25 Jul 2022 13:35:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u3OQFlke8XM+Jc0O1OackrH77GPLBep/EOI7ofrw4pF4Shphx+Lzzo2CKwA8Jm0i4rPn5o X-Received: by 2002:a17:907:7208:b0:72f:368f:2eb4 with SMTP id dr8-20020a170907720800b0072f368f2eb4mr11444124ejc.457.1658781359510; Mon, 25 Jul 2022 13:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658781359; cv=none; d=google.com; s=arc-20160816; b=E7l0KPUQsO32ob+V4D0uI3r2xHEcrbHUwFdSjsRS59bmwq+M2x/rQHCtMAvGZadLbW UHto/HWsAdgps8v9bgPcOursVs0WCoI4Xus5M+dvH+BU1EAjv9sb3yC3u9bq3sYV49eO SlNpZltzYSXPHYQfX2MAtkcv6vNHQhDyR3Y81yBvmsklB4D5/cWo2rzwsqRfn+5/6DHC VbduiuDeyxJDFExFUV5FZWFPViu8f8DovPLQyU9IGom2RMQrbwwpm7CN4f/FEmP45t7x jw0sjYi+1C9onaeG6FtW6XnIQH5u7ku3w1fTFiyFOtYtjWpayqhmrvPQ+iHU51TsSMRh YbOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SKPPpp7Tp2WHUddh1HgYEbccv4hJ/81Ko8q9iKh7koA=; b=SvpGVMaGGB3pD/ixw42JRPt2+c8QoC4f1lGcVG7d9NjXFY18pEhjAmYy065E/Fb7O5 8qhB5QXQsIJfju7G5JYCM1Zqw+bTLDERAd3c5qzM4sHJYFvz/HYoMHwsDRpTdnV3Tuvf 6DBJMj4TASCeYY0Edfp4mtJ7brLaRnbwmftxl5ewwWWZOPk7bieOmOjW7u146RvPSLTg iHbdIfUo4SRVApwbajStBtWe6RFOAwUiMoEzioi2JPrYOOAybUhifxkDDPiYigs7MUae ZMC+lFoK6CyRObejfe4JggiGd9ai0I95WvfOs5MHmlH39JLnuvCWqpHMMiB0AtFe7TMx vn9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GhwS8nqf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a056402519200b0043be95ef714si5774626edd.437.2022.07.25.13.35.34; Mon, 25 Jul 2022 13:35:59 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=GhwS8nqf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236882AbiGYUVk (ORCPT + 99 others); Mon, 25 Jul 2022 16:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiGYUVj (ORCPT ); Mon, 25 Jul 2022 16:21:39 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 329B721806; Mon, 25 Jul 2022 13:21:38 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id ss3so22496338ejc.11; Mon, 25 Jul 2022 13:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SKPPpp7Tp2WHUddh1HgYEbccv4hJ/81Ko8q9iKh7koA=; b=GhwS8nqfltd/oDHfdoOH9F1CJGCSVLIEdKDa3fGGjB4Ruhodb/VcUtAloXCdDNrQE1 NaPvLjb2J7OyqF7RfnELsfrvnSHHNWBZbw4Q/ZU0MbxYGUo2rhg5kDoOB0HfLYwCViLY cD4tcsChKk1sA2gPJ65j0h2Q9ty+kLHfelJZYDMBVyWIcpVuwX9HoBA0Gexk1miLKOHm Vpm97FXMaMfQUuZBxXfrr6kREU/jsIOPMiHOyed/4dfWesbcKzbMCAkYRhJj9hOh1Apu Cxq/sqHpF++ooE5gfcQ4llhES276hBbwRe4a7MLEDxMvhycU3NQxsR9zVCvB+aRXdCk3 I9dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SKPPpp7Tp2WHUddh1HgYEbccv4hJ/81Ko8q9iKh7koA=; b=PB37LVpRwfReMpEPPcvvy5EFthuhcUMPVH1RjJni0yWWxncYLFZWUxjBnL+uFefo6m 9SP9MNPwXmaYukD7+4QMMZtYNe59BCGXyZQWkSYtQpljIL98h4p4I/nYJRVyVO7zG30c bj1u2+994oiQxuhWamtaz7pPAmxNYfFiq4+ze/xTlEkjsUx10W4wXUWBCniUrEw/TMLZ eIFtSSrzGWiqZ03uRne7iGE7ZBQ51nDUNl7/OyRFl7ZoejPscYRiiEcArJmqjW+UHgPo XuEx1r4w++FlGuszEgwhdbKi2l0JiBxQ+BtBaOWDqKJ6UfWxs9FbuOZaWH4fNpolpa5S IhHg== X-Gm-Message-State: AJIora+9iQcMz0P1oTi6DESxHOOlkwMm0Hug9PuwcaPDoGtmGW9E+9TH R1ub7aNM5+YLIaDaWgl5dSldu0n/saPXEVbOhJk= X-Received: by 2002:a17:907:1c8d:b0:6f2:eb2:1cd6 with SMTP id nb13-20020a1709071c8d00b006f20eb21cd6mr11196050ejc.568.1658780496634; Mon, 25 Jul 2022 13:21:36 -0700 (PDT) MIME-Version: 1.0 References: <20220721073909.23318-1-srinivas.neeli@xilinx.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 25 Jul 2022 22:21:00 +0200 Message-ID: Subject: Re: [PATCH] gpio: gpio-xilinx: Fix integer overflow To: Bartosz Golaszewski Cc: Srinivas Neeli , Linus Walleij , Michal Simek , neelisrinivas18@gmail.com, Shubhrajyoti Datta , srinivas.neeli@amd.com, Srinivas Goud , "open list:GPIO SUBSYSTEM" , Linux ARM , Linux Kernel Mailing List , git Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 On Mon, Jul 25, 2022 at 10:04 PM Andy Shevchenko wrote: > On Fri, Jul 22, 2022 at 9:19 AM Bartosz Golaszewski wrote: > > On Thu, Jul 21, 2022 at 9:39 AM Srinivas Neeli > > wrote: > > > > > > Current implementation is not able to configure more than 32 pins > > > due to incorrect data type. So type casting with unsigned long > > > to avoid it. > > > > Fixes: 02b3f84d9080 ("xilinx: Switch to use bitmap APIs") > > It doesn't fix anything, I already reject one such "fix" during > development of this patch. Thanks! Sorry, not my day, it was something else that time... See below. > ... > > > > @@ -99,7 +99,7 @@ c > > > Applied, thanks! > > False positive. Reading again... You mean that unsigned long x = y << 32; wouldn't work? -- With Best Regards, Andy Shevchenko