Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp887353rwd; Tue, 13 Jun 2023 01:32:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5i77J316p4gWzc1/dE+xiAqwLY0o2z/gFHWPAiBVdCBbb/LmUN1904/9W78aBN1C+ZAKpo X-Received: by 2002:a17:90b:a4a:b0:25c:308:e19c with SMTP id gw10-20020a17090b0a4a00b0025c0308e19cmr2491621pjb.25.1686645170190; Tue, 13 Jun 2023 01:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686645170; cv=none; d=google.com; s=arc-20160816; b=x5ftHKswxqmyvnIwvpONMcIjNLWJ5K1LSuU3F0YeuyXyczld3PTqGxSurM/NPWYf1G c3PTfyKF8EbuvDP+cHDw8xlRSrLacuq0OpmcXHtzPwSGzSGiGBAvWeHLQlV66tGHsBzm cNJLdux/30ZYYiDxfjQrJVqELBvLqNrKRxUdRm51XfhjiAyhwmQS1xrKV6z45DcCT4ZW UkwAswfI7GJFVtMtG+1Fzs7noXPIaCrwbir5iupVzSTGQljOSKxIiNfFtXuVmFu9nDEQ lfrdKJsz04Q7mBtgd497yvBoQl4UvuWewOGexQ8kpupf9x3zqm9fxRkd6HDU2IT9GfGv v41Q== 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=u8Ugx/kut80KCO3S8Ml1YkFkuNL35ctjlsvICEqUv7g=; b=Y+fUYpK3hB8W8416Yd4Aq+GE4EE5LUbK308/xW+GkCyPAdxl6Wq9GdwM+8josrxSaQ sDS4eiaDAXm33efN+LCm7LQC1ksors14ypO4bAtRdfmeWj+gCr6iCDpXd0QsZ19mb61v poEW2uFcVh+BBFsTiYIDbrgHfY0453/2gSE7+8obEBMKS9k5CyiSE+zOjvTGw6jDfAIj vwCKeMRoWVv/Vv2YqevbedJek8d7K3v0K7vXUOMW12jATIBKGG9mKl3auSyAPrh1yY2H OYHxogoxlAiiAkcyhPU1BTqIvIemqSuecRJTUS+B0cI1hoIPLqGAxUX5Yz8zmt7flOdq I2pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZZaGGjSE; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a17090a384400b0025bfcf82dffsi1869867pjf.82.2023.06.13.01.32.41; Tue, 13 Jun 2023 01:32:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=ZZaGGjSE; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S241062AbjFMIRa (ORCPT + 61 others); Tue, 13 Jun 2023 04:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240580AbjFMIR2 (ORCPT ); Tue, 13 Jun 2023 04:17:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E66F170C for ; Tue, 13 Jun 2023 01:17:26 -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 DA0D461446 for ; Tue, 13 Jun 2023 08:17:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 896F5C433EF; Tue, 13 Jun 2023 08:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686644245; bh=v97Pgmi2O3ZAlo7DqMrbTlr6gqnIz2L9jXl7WR2Mjfk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZZaGGjSE2XvY6utuR0FG36SfM6DeKX4MivxEEmxfHSpnaf2sSgMyBWMZgQEcoCvJl EgT1MQonaVzrtl8Bnb0wv0fHs8P0kUJwNcl9KKyHBZXLQ1BvPSzGAD8LE4Voa/nrVU +4LajWnvtbZlIyfiw230euIaxOpeHtV9NnPmocG/2RWKfC4ng9NsanyxU/U1zGKcV4 1CpL1xqtAdiat7dg/5SJZ4sdHxBlc/2glaKES53KEdTpxcmtXAPaNnqTjK/kcfgSoa Yq1hgDAB7irJT5iFBy+4gL5IVdZegGLeNkz6m2NmVFA1X7RK3RkfAi5xhhdypF+nzp o30WA75CoVeZA== From: Kalle Valo To: Dmitry Antipov Cc: Ping-Ke Shih , "linux-wireless\@vger.kernel.org" Subject: Re: [PATCH] rtlwifi: rtl8188ee: mark RTX_POWER_{BEFORE,AFTER}_IQK_A reads as unused References: <20230601105215.27013-1-dmantipov@yandex.ru> <3b92f9205003f44187f7ebf7add6c3e0626e9646.camel@realtek.com> <0d1f24b9-a058-52fd-b669-54aa4e9162f9@yandex.ru> Date: Tue, 13 Jun 2023 11:17:20 +0300 In-Reply-To: <0d1f24b9-a058-52fd-b669-54aa4e9162f9@yandex.ru> (Dmitry Antipov's message of "Thu, 1 Jun 2023 16:50:02 +0300") Message-ID: <87ilbrepyn.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org Dmitry Antipov writes: >> Why not just >> >> rtl_get_bbreg(hw, RTX_POWER_BEFORE_IQK_A, MASKDWORD); >> rtl_get_bbreg(hw, RTX_POWER_AFTER_IQK_A, MASKDWORD); > > Compiler with -Wextra etc. or static analysis tool may complain about an unused > return value. As far as I know GCC has __attribute__((warn_unused_result)) but > lacks an opposite thing, so (somewhat ugly explicit) cast to 'void' may be helpful. I assume you are referring to this attribute: #define __must_check __attribute__((__warn_unused_result__)) But if __must_check is NOT set doesn't it mean that checking of the function's return value is optional? At least that's how I interpret the meaning. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches