Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1879224rwr; Fri, 21 Apr 2023 00:31:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIUd4fjdUnWJtmcxuOdUmxUAxqEvbly/9UVf5ss8uGcTErDEl0WeFbj8c0rhLxiX4BJsno X-Received: by 2002:a05:6a21:100e:b0:ec:d7cf:bcf7 with SMTP id nk14-20020a056a21100e00b000ecd7cfbcf7mr4718150pzb.17.1682062268985; Fri, 21 Apr 2023 00:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682062268; cv=none; d=google.com; s=arc-20160816; b=BvP+782jN6RuHgbr7VHpaPOyA7+dZDXLxr4V2x6pmOxio5EOVVD6N1PGRTfbzOS1c0 zFmbQNtRQqbHN+f3A1WgfA6AjpDjLHyrIZMwH5SGqEnrViJI4UZbcmO5XZMVA18p+Xws +Zhr0hYd3Wn6VWrakEE1EOFBE6ecv8q19hI/uhZPqyfFOuUDEpFK/gtyNoSyBbKzxPzM nBaYLRdbPe1N3wRLnQVigy28P0thzs6IrTMr8aYiijcwWAwEpw9gz6UHKx8CEffVziUO iE59X+o8K737A2RoaQXnIO2sY1pHY6tlawPt+mi6oo5ijrRD6s7Iod7+U2Z+NcDhja4U 2YcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ijqsdooHgr7PwI8P9ZYKwp+5ZlCOnSWufOJ1HDMVvPk=; b=wHzf/wXYFjJL8bw8Cq3EluU+mMCRx/R4hRnLKf4td3wAykaNTciQDl1FKpjreYw1Dn p9o5rsYMOBkNMuG5tJf1oQ1xbd0ca/wMdg1FUuUK3eKAtORwUjMQiBa5HH7h/nXgv/j0 vLt2AG5sE3ncGDGHLYAAoEEnM2TWuGzu529jPl8vJK4MyDkOo9apnd7g/Rkal/nc41tP bRjAFDvtSIJF49yLLgzf8u8N0A4Aap8+tbGjND7pok+IUBkx+PAol/5WmY6M9paGJxq7 83w0iIzNYIo3QYVnHtqMWzEoESCTyVw6qW0HFaZb6bTLn4jcZo8pxtyFUp6RHCxv+eJm wFrA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i135-20020a639d8d000000b00502fdce9dcasi3542688pgd.114.2023.04.21.00.30.49; Fri, 21 Apr 2023 00:31: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbjDUHXB convert rfc822-to-8bit (ORCPT + 99 others); Fri, 21 Apr 2023 03:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbjDUHW6 (ORCPT ); Fri, 21 Apr 2023 03:22:58 -0400 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5CF7DA8 for ; Fri, 21 Apr 2023 00:22:53 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-b95fb433f59so2255884276.0 for ; Fri, 21 Apr 2023 00:22:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682061772; x=1684653772; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hLEuRPRVqiyPqb5mT4V70+1gAbABfgeYALOY9oNVc/o=; b=TItnnwXXha9LHLwCG09Yn1j6OLkaB7YPr6I3iMhxXMEWHdzjY2SAGAF7Qr4SwaIYn2 N6rtqhASW1vqwiSW5KFhuVMgKFV6cF5UGhHhRcZzznwS+csfXd3uMCI0IjSom01wH3fB UsnWfXQWlFzDi1B3aw0OdvtUOpfTFqpEISK1PJu1MBv1wrCDnHqbQevoPUgBLU0Lu0Lv Uoy0CUW0R8ZGTmdM8vjtArbzos82BPxxeD75vDYcYu03XEcPCNCPszEYx61JBxQvc2ST l7v/8RiBt9YzdfRQx5MFSKWPGXmQrGo5QkFfADpSD9pXX+u+QuCTWLPboea8XD1+3sMb Nc8Q== X-Gm-Message-State: AAQBX9cpNkw+Emnhw+hG8isPft7d0O//8y0tY6r/Nw9hSkEW35U51Ahi KCsl0zpeqB9/6MjkQGwWq2t1555S6bT2bOOC X-Received: by 2002:a25:1683:0:b0:b8f:54a4:9a55 with SMTP id 125-20020a251683000000b00b8f54a49a55mr1125478ybw.65.1682061772443; Fri, 21 Apr 2023 00:22:52 -0700 (PDT) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id q189-20020a815cc6000000b00555abc57d5fsm807785ywb.97.2023.04.21.00.22.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Apr 2023 00:22:52 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-54f8af6dfa9so20604817b3.2 for ; Fri, 21 Apr 2023 00:22:52 -0700 (PDT) X-Received: by 2002:a0d:d709:0:b0:54f:b26f:bc8 with SMTP id z9-20020a0dd709000000b0054fb26f0bc8mr1129079ywd.26.1682061772045; Fri, 21 Apr 2023 00:22:52 -0700 (PDT) MIME-Version: 1.0 References: <20230420073751.1031944-1-yunchuan@nfschina.com> In-Reply-To: <20230420073751.1031944-1-yunchuan@nfschina.com> From: Geert Uytterhoeven Date: Fri, 21 Apr 2023 09:22:40 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] firmware:Remove unnecessary (void*) conversions To: yunchuan Cc: kabel@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Yunchan, On Thu, Apr 20, 2023 at 9:41 AM yunchuan wrote: > Pointer variables of void * type do not require type cast. > > Signed-off-by: yunchuan > --- a/drivers/firmware/turris-mox-rwtm.c > +++ b/drivers/firmware/turris-mox-rwtm.c > @@ -283,7 +283,7 @@ static int check_get_random_support(struct mox_rwtm *rwtm) > > static int mox_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait) > { > - struct mox_rwtm *rwtm = (struct mox_rwtm *) rng->priv; hwrng.priv is unsigned long, so the cast is needed. Please try to (at least) test-compile your changes. NAKed-by: Geert Uytterhoeven > + struct mox_rwtm *rwtm = rng->priv; > struct armada_37xx_rwtm_tx_msg msg; > int ret; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds