Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp285051rdg; Thu, 12 Oct 2023 05:51:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHK62AwQr7Jcqxc1sHKwYN6xV2TFH+lq23UBEsBmIpJ+TS9C6grwTgSf2B4H6EIr809XrSY X-Received: by 2002:a05:6a20:9189:b0:153:b16e:8db1 with SMTP id v9-20020a056a20918900b00153b16e8db1mr25500348pzd.10.1697115108352; Thu, 12 Oct 2023 05:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697115108; cv=none; d=google.com; s=arc-20160816; b=HwsX7/QXYs2K1NHSIlFyAZGxlxbQU6OVEv3asA3xLAvG5CRo/PiZ8AGSbrfyH3vami EvGqicjb9u4hP60TkVgyMIqPBx61xzrViiGa9djAk3KFzb00nuqq1zxfyCH1eCoOlxTQ 76jav/zFtZfryYcLHBrAvZOiuTSKYrXZW2yoGUqryUU+UrK6niMFARBboimk82f5F1n4 OUHhDTuCgjVcZbg3heKjxgzwQXQ7ML2IFIu+mXFW5inM/bV8jyKI8icc4KIGY0fH+Toy e8FLYuxbpumrG+BRcc+cT+av6lDUip/jBXGlkx9aJbECMDxe1sw6tAhwOziWJkjRmOo7 thrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=G875lR9e4K6JzzqFQjwIG6tgL2EBPo5TFmSbi4YHY6s=; fh=95FgBEo8D9VOkyPUPrWhU1ZnVA3hphIVHa4tLViZeps=; b=zvdva7O/JXEbGs4KnLb26B/Fg7sIVrSnPonUYIR9sN1YEHkAl8m6XFYxUSjRdfeRXK 9tsx8O/9MrHGzMwMs+K+AvI/RNjPJIJMwY7JJ8rk+1mDKhJwJc0fj22oVTv72PixVmMf w7Wfsivfq0VcoRQpzkBzcxokFDLHIhcf+Foe/6ksNm7Or9TihrBirjtbcTthGxa/ux3v VQERT1zeiMwTA27e71vzgR0+ZLckQFd2tY9+5BwLm2sg8MY6YBUo1OjyWY1LvExKEuWv 6plgH1GqhFnMobx0sGbPCXwdvbZAOeS2pmtWuz3OYYllDJHiCpOPaVstSpiEcHNYTa8r R/ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P0udcksL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k191-20020a6384c8000000b005680cb68678si2274415pgd.446.2023.10.12.05.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:51:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P0udcksL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3C3188122F1A; Thu, 12 Oct 2023 05:51:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347249AbjJLMvG (ORCPT + 99 others); Thu, 12 Oct 2023 08:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347198AbjJLMu7 (ORCPT ); Thu, 12 Oct 2023 08:50:59 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10FE5CA for ; Thu, 12 Oct 2023 05:50:58 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-27b22de9b5bso654844a91.3 for ; Thu, 12 Oct 2023 05:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697115057; x=1697719857; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G875lR9e4K6JzzqFQjwIG6tgL2EBPo5TFmSbi4YHY6s=; b=P0udcksLBmXrLb6kxUIdkdb8cRtt4B6rSfsm7DfsYmKD/yyprz8t1Km9sppYJ3FUKA UDhrrJ61QPb+sY2q8+tEbceCUNSS0uu/h/hqB3BNQoCQSkbY9plg+0PuGhBOrhyADuMG WmlXjdHANKT65ff49GkWIcHuuhFC0sVBhIEHGXg76kxy+9Ql6wiRq+6pNJbxL+u6KgaS +5A0p1bRV7Eyn6xBlCLP6UCcb5vqCahHVVNh4g3L1zzXdcmu+mBKUkhoe4JajBpfekqf KPE2oN4TdiAWs6PUeEsqaW4Xm13n3L7esBW0tDrvNSEljc7yGgdg4yGqbCeMVMA/DR4p 5m7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697115057; x=1697719857; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G875lR9e4K6JzzqFQjwIG6tgL2EBPo5TFmSbi4YHY6s=; b=aZeVR7bFuH2kEA3XXkvTGG+Pz1YA2bikpvojPe7AfABCTrGnXoQPiB+GwGcqJMmzfk Tt4UL4ZrcDcb/a+33O7YcTnwiHBSXLhCWqZ8sL9hEEyZcq1QVJZ2PtVyWz/YpaK8F0uJ MY5/i2SyIJ3NreCjg5aNN/oEOtGH/gBQ7rEO7k915GTQK6ZWWI+ackVAWL81v03rmwBf GZEwPHk7OIPKVYfHNOW6UjEd6V2vRX6DB/0Xc4r/sR7zeABJmifPMcqEH0hDM3+8/tfU UE0xHDx9mUwh76GIbO0sm0COguKfj3Os7eDJE2YF2SNNOoIKmRO0BGVxt47vaTgXhlA6 2prA== X-Gm-Message-State: AOJu0Yzu+Q3miGeExMtKKCiCZwbnPjEjg8ggYy1j4+ik88AynrYUMn3A H31IoVxL0GAQBFemldBpZlVuFDOt80MWXg== X-Received: by 2002:a17:90a:454e:b0:27d:1862:a494 with SMTP id r14-20020a17090a454e00b0027d1862a494mr2691566pjm.11.1697115057224; Thu, 12 Oct 2023 05:50:57 -0700 (PDT) Received: from Negi (2603-8000-b93d-20a0-2184-6fa4-0d39-1c6b.res6.spectrum.com. [2603:8000:b93d:20a0:2184:6fa4:d39:1c6b]) by smtp.gmail.com with ESMTPSA id gw17-20020a17090b0a5100b002772faee740sm1796252pjb.5.2023.10.12.05.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:50:57 -0700 (PDT) From: Soumya Negi To: Greg Kroah-Hartman , Micky Ching Cc: Soumya Negi , outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] staging: rts5208: Fix checkpatch macro warnings Date: Thu, 12 Oct 2023 05:50:21 -0700 Message-Id: X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 12 Oct 2023 05:51:15 -0700 (PDT) In the driver staging/rts5208, checkpatch.pl warns of possible precedence issues in the header rtsx.h because macro arguments are not parenthesized. This patch set handles the respective macros differently(as needed) in each patch to fix the warnings. Patches can be applied in any order. Soumya Negi (2): staging: rts5208: Refactor macros to static inline functions staging: rts5208: Remove macros scsi_lock(), scsi_unlock() drivers/staging/rts5208/rtsx.c | 24 ++++++------- drivers/staging/rts5208/rtsx.h | 66 ++++++++++++++++++++-------------- 2 files changed, 52 insertions(+), 38 deletions(-) -- 2.17.1