Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3326196rdh; Thu, 28 Sep 2023 08:34:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpUDxiOl3h+TeYPh/XUSrA1szY5kHn+3VR/0fqUF5Aig2cUY0RuxRJEIl2x/st2zg0l2cm X-Received: by 2002:a05:6a20:3d0a:b0:161:3120:e840 with SMTP id y10-20020a056a203d0a00b001613120e840mr1894611pzi.2.1695915242985; Thu, 28 Sep 2023 08:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695915242; cv=none; d=google.com; s=arc-20160816; b=WtYIJL8VoJPosVC7IZEOzGr2jsw+VpvzOZ5/URiEOHtT1oysl6HpK7Pso6qjKpB3EC gtDZjezJQgbYpFJ0UviQlaICdQHCXC9gDVFepf2UZimAj4DVrnNUXSEPtlif/yaDzJJZ SN4BT796nITPwLS/teG5icwoqslh38vCoV2gG+Z7XHFWiNjBZocTDwF9Jbd9ZqMnEqHB jSCZ62H4Mnv4klI4CClxDPKCkDeLlqYZ2NiijWZZk9dFG5Yvfk8u/WaQDPadH3lsg03Q z5jpenAqbxS58kJ1YbId1+ERFnK1RtiEemrQgB0tHAY8Z5EWNxFIFXQNlY/TUzNev9ZQ F2tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=4Gl0fc3JEaK49Xas+cp8vJdOTLt09Xx8RLaF7eo2oqs=; fh=4ftBMqN+lPxZPnklIgFWYtg+xX8JnaXpgj0zxNMsbY0=; b=S61ffDpziZTsgNWsLrTeBdm4l8FHmJ1KzGL11UCKSzvwRSVFDtjmz+Bz8Qot/KjUmU r/3nj91chNCeAnAPmBtn4TvKxK3jI+GtU3DwpFXu+HpSYJuvRG40I0ZHbl2wmuxYoCDD YNkEsNABcu/jdgZHSW4Arj8vNcRf6yl/gsq8JC2EISBwlqBgWW811noFkOEIwjtbTaNs KiMDuff7UGEFabnWmi9CM0mU21jfoxG8CjITB9yhe8tvUU1wLpDfbyC9EDwVpAeZmO/7 wrTqKlbr8zsBJfYzYyhLigf0ouy/7Qc80AHDyTHTjvizBHeh5FO0WA1FKrUqBeVp0Kh2 UypA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PcufRPF3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id o15-20020a17090ac70f00b0027748734bb9si12142329pjt.148.2023.09.28.08.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:34:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PcufRPF3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7196F83C6341; Thu, 28 Sep 2023 08:29:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231844AbjI1P31 (ORCPT + 54 others); Thu, 28 Sep 2023 11:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjI1P3Z (ORCPT ); Thu, 28 Sep 2023 11:29:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EDBDAC; Thu, 28 Sep 2023 08:29:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21992C433C8; Thu, 28 Sep 2023 15:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695914963; bh=BwRgdNKeJxIJ5cr5vGTDyf7GQ4JC9jrjgb1r743JPlg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PcufRPF3oYqO7p9A49NFfI9TrSP5l1pdFXe4cJ988aZz++6Aa/6vLvjXmy/+eFu/v 9OGGSJmSq8O0P7jaSnGPmWbvWIc+lq5/fK3rcYDa4yDwttGRsmY/U5CawBTzd/fo4v B/v5t3odugztw5Rm3k6wIBUxdhAxxNhu0uk/IlK+RHFjygZorfrnpFsyvonA95SgKQ dQ6UIJt7TYaPDou5UW8tToBF0iu0sSMhkkRNLQ8daU1ftkPqcQP7pGgaSyVzhbSbfy bF/hCFfsg6gDEhAdiwFfKd02qb9/ueyh25E2mxRLkkdEoaFhh3r3I38u7FFdEARFdH JdSeRK2GtLOKw== From: Kalle Valo To: Christian Lamparter Cc: Wu Yunchuan , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH v2 wireless-next 2/9] carl9170: remove unnecessary (void*) conversions References: <20230919044916.523308-1-yunchuan@nfschina.com> Date: Thu, 28 Sep 2023 18:31:28 +0300 In-Reply-To: (Christian Lamparter's message of "Wed, 20 Sep 2023 21:00:08 +0200") Message-ID: <87zg16iab3.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:29:38 -0700 (PDT) Christian Lamparter writes: > On 9/19/23 06:49, Wu Yunchuan wrote: >> No need cast (void *) to (struct ar9170 *), (u8 *) or (void*). > > hmm, your mail went into the spam folder. Good thing I checked. > > From what I remember: The reason why these casts were added in > carl9170 was because of compiler warnings/complaints. > Current gcc compilers should be OK (given that the kernel-bot > didn't react, or went your Mail to their spam-folder as well?) > but have you checked these older versions? Do you remember anything more about these warnings? I tried to check the git history and at least quickly couldn't find anything related to this. The changes look very safe to me, struct urb::context field and the out variable are both of type 'void *' so removing the explicit casts should change anything. I cannot really come up a reason why would this patch cause new warnings so I am inclined towards taking this patch. What do you think? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches