Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1155518pxf; Fri, 26 Mar 2021 02:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy6iU0u5a6ne03mYynRQcUo1N7q7xqsxdqlPrg6LtfT573qDZfNV39QUbI4vCpITcCZ7io X-Received: by 2002:a17:906:aad5:: with SMTP id kt21mr14034903ejb.160.1616749877075; Fri, 26 Mar 2021 02:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616749877; cv=none; d=google.com; s=arc-20160816; b=QksK9oQU/qWOOl6eQo+pUyzMOkOLj/EdJG1YRNq773OnwjGLwpxySgmdsRJfEQ/mgo rdgrhiRN5/q4NH9+GIesKmVwRiPaPSSc+Ojm/WZ2cesVpH+ipFfQtmzTSVCArwhJ0uL8 GXmRZMkjvuD+pV9RyIsyXpLKoxLWmnJQgxb/tn3f6dab7xcUxiALwZhKvVKy6bGZrGdu aWl+zJotbYGqUmmAtvKffgH849975D6WJNeWsmra/t1Sh/hL9CmrhH01D+0b+nOcM97+ aXfD1gI5IxQ/JKMZgzXOyK9/i8Urs0DTHS7yuP6JXu0sMTidqGXZ+m2EP8A4si6tP+C5 GBJQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=dPx/c0ydaxSoxh2qhVeeOV7T8MUpGTDXHROZKiangpM=; b=jEqh18GTSFVl8rdKT7p3bssCP42nApXXBkDQ2h5utgQV3tyi7xv7l7Fo2oLw6P71sg y+LAYs9r1DRrGd3XUKHyjXczn18Sy4SFOoJaknY0lth1DkBF0Z401qqTjgtdhUr4WjTP ltK+WFydnI0e/DJ5cILFr+MLQIq5fEhGHMBusCc5C3ZrDakYTNSbgo/mK2fw6OvacrUj BfO/UK1dYeTmFV+pE8VVsfgtb3Y06hpWlvZEZgtoYRnopqa8ZnLmYwHvKu6nccbDPDww FuamO5p07gUehz4nIhOwWc98E+0QI4uzNwZI9I85mSuJlgaKKJ//h1FkfJQVmxC01xrC on+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NcyP0hZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si6577970edp.256.2021.03.26.02.10.53; Fri, 26 Mar 2021 02:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NcyP0hZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229528AbhCZJJ5 (ORCPT + 99 others); Fri, 26 Mar 2021 05:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbhCZJJm (ORCPT ); Fri, 26 Mar 2021 05:09:42 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33127C0613AA for ; Fri, 26 Mar 2021 02:09:42 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id j7so4916624wrd.1 for ; Fri, 26 Mar 2021 02:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dPx/c0ydaxSoxh2qhVeeOV7T8MUpGTDXHROZKiangpM=; b=NcyP0hZT2CcXLbHgN46/9/O9NnHsBUFgdB3WnyR0KW+QQbULKaY8QYRUf7cqX6Gweu jN0/ck89iZ5/nnu7mZNwV17Imw5+V0SfhqXJmYIoPQ5LoH1w1+pIvQWZoFZMFYwJv4i2 Jr3vkGhTagZG3Lnp/h4717aQvLgXE6e4rwYpHd+3GjMIJQF9sGow7T4R9AvUahPrp0Xm 5VKPwuRB1fx8NJU0mRDCu/L72MhJyLw4d0LJrEDH0d/PbRwMMWKUp2Pj51j4hIR3YoHt ucVkJH4mj40wyD/z0FvLAWbyvSIo2+SILus6Yl4jXsVcnCG+zB5K6P2xORqjTODn9xDv oR5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dPx/c0ydaxSoxh2qhVeeOV7T8MUpGTDXHROZKiangpM=; b=iB1sTHwCMdGOD/unrvuQH5iYKES7fpc+ecBXSXNQjR/76RKizfQxh771LtdYwc4oaa XcrR+gpKOGm47rMLaJs01JawbWo1seR9jLk2fjb3+nD0wZa5ej8s3Nhmm0meRv7hsJ33 DDFtCaz5g61H9bZUem3JHoOcR6g48tXxNeQfbsM8io4XzpbpQxEZuHY22/uGclmoue+a 6SR7sHYRKnKD9lYGKlJAsmTSOjkbtjA27WCENTFN9UrOXEaESM4prGnrdRNfkbw6QK5J /F/nR1Zwinv5OVsAUr+H+5PysEZoFSgbzNZ7wC/hEdLoAMbNJZYYlWzHEuEPCLSULPKj PeUg== X-Gm-Message-State: AOAM531SqVZR8kgAAmRilRkKU2Z4H8NWKnGtAQy1IsXrBNoXEEA0Hwp2 oJRU3p0RFY3LJsc4w1VFCwo= X-Received: by 2002:a5d:570c:: with SMTP id a12mr13438377wrv.209.1616749780949; Fri, 26 Mar 2021 02:09:40 -0700 (PDT) Received: from agape ([5.171.81.75]) by smtp.gmail.com with ESMTPSA id h62sm12238035wmf.37.2021.03.26.02.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 02:09:40 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 00/15] staging: rtl8723bs: fix checkpatch errors on macros Date: Fri, 26 Mar 2021 10:09:07 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix all checkpatch errors on macros but the following: ERROR: Macros with complex values should be enclosed in parentheses #41: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:41: +#define RTL8723B_TRANS_CARDEMU_TO_ACT \ -- ERROR: Macros with complex values should be enclosed in parentheses #67: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:67: +#define RTL8723B_TRANS_ACT_TO_CARDEMU \ -- ERROR: Macros with complex values should be enclosed in parentheses #80: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:80: +#define RTL8723B_TRANS_CARDEMU_TO_SUS \ -- ERROR: Macros with complex values should be enclosed in parentheses #91: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:91: +#define RTL8723B_TRANS_SUS_TO_CARDEMU \ -- ERROR: Macros with complex values should be enclosed in parentheses #100: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:100: +#define RTL8723B_TRANS_CARDEMU_TO_CARDDIS \ -- ERROR: Macros with complex values should be enclosed in parentheses #111: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:111: +#define RTL8723B_TRANS_CARDDIS_TO_CARDEMU \ -- ERROR: Macros with complex values should be enclosed in parentheses #123: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:123: +#define RTL8723B_TRANS_CARDEMU_TO_PDN \ -- ERROR: Macros with complex values should be enclosed in parentheses #136: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:136: +#define RTL8723B_TRANS_ACT_TO_LPS \ -- ERROR: Macros with complex values should be enclosed in parentheses #154: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:154: +#define RTL8723B_TRANS_LPS_TO_ACT \ -- ERROR: Macros with complex values should be enclosed in parentheses #170: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:170: + #define RTL8723B_TRANS_ACT_TO_SWLPS \ -- ERROR: Macros with complex values should be enclosed in parentheses #197: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:197: +#define RTL8723B_TRANS_SWLPS_TO_ACT \ -- I counld't put braces for they are meant to be expanded inside an array definition ERROR: Macros with complex values should be enclosed in parentheses #108: FILE: drivers/staging/rtl8723bs/include/osdep_service_linux.h:108: +#define FUNC_NDEV_ARG(ndev) __func__, ndev->name -- ERROR: Macros with complex values should be enclosed in parentheses #110: FILE: drivers/staging/rtl8723bs/include/osdep_service_linux.h:110: +#define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->nam All those macros are not used to generate expressions but arguments of a functions. If someone knows how to silence those errors as well, please tell me. Fabio Aiuto (15): staging: rtl8723bs: inlcude macros in a do..while loop in core/rtw_security.c staging: rtl8723bs: put parentheses on macros with complex values in hal/HalBtcOutSrc.h staging: rtl8723bs: put parentheses on macros with complex values in hal/odm_debug.h staging: rtl8723bs: put parentheses on macros with complex values in include/basic_types.h staging: rtl8723bs: put parentheses on macros with complex values in include/drv_types.h staging: rtl8723bs: put parentheses on macros with complex values in include/hal_com.h staging: rtl8723bs: put parentheses on macros with complex values in include/hal_com_reg.h staging: rtl8723bs: put parentheses on macros with complex values in include/hal_data.h staging: rtl8723bs: put parentheses on macros with complex values in include/hal_phy.h staging: rtl8723bs: put parentheses on macros with complex values in include/ieee80211.h staging: rtl8723bs: put parentheses on macros with complex values in include/rtw_debug.h staging: rtl8723bs: put parentheses on macros with complex values in include/rtw_pwrctrl.h staging: rtl8723bs: add spaces around operator in include/rtw_pwrctrl.h staging: rtl8723bs: put parentheses on macros with complex values in include/sta_info.h staging: rtl8723bs: put parentheses on macros with complex values in include/wifi.h drivers/staging/rtl8723bs/core/rtw_security.c | 94 +++++++++++-------- drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h | 6 +- drivers/staging/rtl8723bs/hal/odm_debug.h | 6 +- .../staging/rtl8723bs/include/basic_types.h | 30 +++--- drivers/staging/rtl8723bs/include/drv_types.h | 4 +- drivers/staging/rtl8723bs/include/hal_com.h | 8 +- .../staging/rtl8723bs/include/hal_com_reg.h | 14 +-- drivers/staging/rtl8723bs/include/hal_data.h | 6 +- drivers/staging/rtl8723bs/include/hal_phy.h | 2 +- drivers/staging/rtl8723bs/include/ieee80211.h | 4 +- drivers/staging/rtl8723bs/include/rtw_debug.h | 28 +++--- .../staging/rtl8723bs/include/rtw_pwrctrl.h | 6 +- drivers/staging/rtl8723bs/include/sta_info.h | 12 +-- drivers/staging/rtl8723bs/include/wifi.h | 38 ++++---- 14 files changed, 140 insertions(+), 118 deletions(-) -- 2.20.1