Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp1801730qtg; Wed, 22 Mar 2023 02:27:18 -0700 (PDT) X-Google-Smtp-Source: AK7set8WvpHxtMcFMKMMo27f1wbFZqu6jo+kT9UN+6rpo552bdEx91+uJJDhJDifgNH3R/feFP08 X-Received: by 2002:a17:907:9889:b0:8b1:7841:9f28 with SMTP id ja9-20020a170907988900b008b178419f28mr5950731ejc.55.1679477238096; Wed, 22 Mar 2023 02:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679477238; cv=none; d=google.com; s=arc-20160816; b=kDhU5htPUPdlqSrCXzIkHi/0X8zkZs0Uh1xcFRXKpHrZ+W72g1VVSxIL7tXzPFDEE/ 6lsO0eMAVZPg/WJnJOCQ8uB8jBqQvqaEIxlRRFVj2d51L8TQ4ZRAf3QDe6ExQ/XIywTb 86ZhZxnmcHYV1NnxE+/klpsFKbm8sDK1aNMky2iFWJpKVSMyLv2/LkQ94/uTeS5s61D7 AW6mlkFPHTA7i5kp95glQTvamfXk7fjrrBZkThXmiz26pLP5UJ/CQKZMCAAkF1KD3hH0 Xh6krlFLfIAVl4uMbryZ1CHxe6GCThYUJyIbnCM0dgf8Y+v1qtn4I9F3XKNA6Hwx5TzA keGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XJ7O/1WA1s9A3NBcXnLlyMlwshV3wtvNv/HE1XTDMe4=; b=r75SufZF7frFyr1ebWIXGbJj+D6l8hyAS/aG4AfaBZPA5UQfo6zEOHxidh2VvRfOC0 zEKgDtAnI2Znb9fHNQyLWIwRmmr/1e/JKBlOLdXIqYxFGohpn3gvVZ5M7jmcgPFhulWZ eUhMGUhRAm3iqv/k5M6Wgq4hRuduCApmeEbU0UO8u1oAZrLP2ck+OsGSgYfMREV1+dtJ KVpgZZGVgy0hM2dcZzX1kV9lHyEc3szWWyshad4JWV7qyAuCWq45H0GnWbanI2ZO2qO3 ZrDI2KwoRuuoC+2XXXIlomnrUnwOOpOLKDhykTJVNFtI7bzuI4ceZoxtS2Wy2J/ISr72 Dhwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MuSY0K0z; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha20-20020a170906a89400b0092582ab5ae4si14733194ejb.872.2023.03.22.02.26.54; Wed, 22 Mar 2023 02:27:18 -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=@linuxfoundation.org header.s=korg header.b=MuSY0K0z; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbjCVJTH (ORCPT + 99 others); Wed, 22 Mar 2023 05:19:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjCVJTF (ORCPT ); Wed, 22 Mar 2023 05:19:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDCDD1498B for ; Wed, 22 Mar 2023 02:19:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6C949B81BB1 for ; Wed, 22 Mar 2023 09:19:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5E97C433EF; Wed, 22 Mar 2023 09:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1679476742; bh=Hs1wGaNY2e5QVCceq5jv/4QsLC/Wr97AzDg/bWaIJ8c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MuSY0K0zJH2Dzv6tiYfzBEUEV0bGa+Tq/gcpPhO8ltzHSPrKW4VaAUTBpmKJY98el ZHo3uIbbZMKWgzFR+NIiWutvRsUwUw0yPC7J+cQTa9xfpABTL103UMNHzs+zJLvQR3 BwE0G3Izh4GYs2BxtQU/ZU2VcwDwsKE2fFzpYGWE= Date: Wed, 22 Mar 2023 10:18:59 +0100 From: Greg KH To: Inshal Khan Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: rtl8712: osdep_intf: Remove RND4 macro. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 Wed, Mar 22, 2023 at 10:47:03AM +0530, Inshal Khan wrote: > The RND4 macro was found to be not used anywhere in the project. > Therefore, it has been removed from rtl8712/osdep_intf.h to > simplify the code and reduce unnecessary overhead. In case the > need for rounding macros arises in the future, kernel rounding > macros will be used instead. > > Signed-off-by: Inshal Khan > --- > drivers/staging/rtl8712/osdep_intf.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h > index 0e097b4a8670..446ee09159fc 100644 > --- a/drivers/staging/rtl8712/osdep_intf.h > +++ b/drivers/staging/rtl8712/osdep_intf.h > @@ -17,11 +17,6 @@ > #include "osdep_service.h" > #include "drv_types.h" > > -#define RND4(x) ({ \ > - typeof(x) _x = (x); \ > - (((_x) + 3) & ~3); \ > - }) > - > struct intf_priv { > u8 *intf_dev; > /* when in USB, IO is through interrupt in/out endpoints */ > -- > 2.34.1 > > This commit does not apply to my tree at all :(