Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4551532rwi; Sat, 22 Oct 2022 11:58:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7JctTUTOfGh5B/1nBAlKxTSqMI8MioFYXO6l4rixQziZZxIcKt85Hage4Em0VGzoXiuaY7 X-Received: by 2002:a17:902:8505:b0:181:e55d:2b3 with SMTP id bj5-20020a170902850500b00181e55d02b3mr25304557plb.75.1666465088487; Sat, 22 Oct 2022 11:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666465088; cv=none; d=google.com; s=arc-20160816; b=DGaR7F6WBVt65LMHWPT6lz4XHplG0MdI9JVwzM8Ow52c8jQAhpE7PlXhHoauNNbmN/ QSC9uIDUe130t75yh2Y79hxDY+Deh850IVD2AQ1G/FE6i++TCTehVFFPIdGdmVltPSEL 7fCjFuLnuirMv5gNF57SnYQiR+v098xkEgDuK13bfcg8xAJZhJChrIJ6ro2DlhBjagKl NrFyI7fKy3nHeZ+PntC1BvA3MCUKfkI7PltiYsloNP+CODvN5jHm/Ok4OcofdPQJX4lh az9PrvcjnyxXIqFg7bJl4N/kn1OKAckdlCWEi5zlaC+vd/9xFztq7MdzMzKNFEAM8sEI UjoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yrf7CBm0JzzwNyabemuL8Ye4LM5pXxXbZxBPgXPcFkA=; b=DDD6MBDxKIkZX4UueMJtrYT/yRfKYMLumrj9cZQwHGiBwwgBAIVPJZJeHDvjkL9ABH XEUBtiUOabq/wdOKibX7Uu8R78w2YuWlzpvUKgbNdzuhFdSngO9DDF4JHqRDvh+qGWo5 wb6E6HqTF9HiBhhpVUG6mD0Z1pyZjr0JjL1ff3Ttn67nSQthMg4Gd/IsFjE1tldVtuC3 3VY8LQ/LI3BEEZXbVyaEYPyPjZuW1gEex2lIRa7hlXme6wdSI1Ca8S4BsEqbBVahJ/LK SWO7ahRL7CN/KFGbQnOtRxKRA7BeS3YqGJKL5uQCFnkBR1AXs9cV34656wGYeJWmDJ+B wFUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QH1i6VZD; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a056a0014d200b00542deddc4e0si29938919pfu.46.2022.10.22.11.57.54; Sat, 22 Oct 2022 11:58:08 -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=@kernel.org header.s=k20201202 header.b=QH1i6VZD; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbiJVSow (ORCPT + 99 others); Sat, 22 Oct 2022 14:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJVSor (ORCPT ); Sat, 22 Oct 2022 14:44:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7474248D1; Sat, 22 Oct 2022 11:44:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3B6986068B; Sat, 22 Oct 2022 18:44:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3F6AC433D7; Sat, 22 Oct 2022 18:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666464281; bh=rOUU30Ns40RaPB0p9BJDk4013bR8TLp0a0aP/lu3CGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QH1i6VZDzmLtoKIfZRdZlY5d0nnl5DOOq4/LqxYE5FlmXq1e/ayVWYrKNPQTQfyTm lDWgFVezS94kXpPQqLVZatcxNDhidctINkWrhuWdQswTmu6mz+CfseCYZ+3W8aNf/D BNkZScXW3d2V3kASY+/66HDGLtFJ5ipyIa5e8xIAsg2O2gipHt0u3nXAKd6fgttKgZ NC4qpNwwmaHrG3GXHMyiFE9RiFlknggaV/ZCAfsoGqw84Y8dfHy2yZiRWd2Z5DPiV2 OT+zRHLzLLt4Xmw92V6rNOqAbn6uKoF3nU46vq2IUtHpqclZiRhC/zWn5A1+rqtQtz yzpn0LslOhDww== From: SeongJae Park To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, "Kees Cook" , "Greg Kroah-Hartman" , "Jakub Kicinski" , "Russell King" , "Catalin Marinas" , "Thomas Bogendoerfer" , "Heiko Carstens" , "Herbert Xu" , =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= , "Jani Nikula" , "Jason Gunthorpe" , "Sakari Ailus" , "Martin K . Petersen" , "Theodore Ts'o" , "Andreas Dilger" , "Jaegeuk Kim" , "Richard Weinberger" , "Darrick J . Wong" , "SeongJae Park" , "Thomas Gleixner" , "Andrew Morton" , "Michael Ellerman" , "Helge Deller" , netdev@vger.kernel.org, linux-crypto@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mmc@vger.kernel.org, linux-parisc@vger.kernel.org, damon@lists.linux.dev, linux-mm@kvack.org Subject: Re: [PATCH v1 1/5] treewide: use get_random_u32_below() instead of deprecated function Date: Sat, 22 Oct 2022 18:44:36 +0000 Message-Id: <20221022184436.33750-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221022014403.3881893-2-Jason@zx2c4.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hi Jason, Cc-ing damon@lists.linux.dev and linux-mm@kvack.org. On Fri, 21 Oct 2022 21:43:59 -0400 "Jason A. Donenfeld" wrote: > This is a simple mechanical transformation done by: > > @@ > expression E; > @@ > - prandom_u32_max(E) > + get_random_u32_below(E) > > Signed-off-by: Jason A. Donenfeld > --- [...] > include/linux/damon.h | 2 +- For the damon.h part, Reviewed-by: SeongJae Park Thanks, SJ