From patchwork Tue Mar 21 18:48:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 72991 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1955006wrt; Tue, 21 Mar 2023 12:02:47 -0700 (PDT) X-Google-Smtp-Source: AK7set+2WrYUkdYxqqQlfqo4aYKIYfKLsgJBHgNPA8wQZ3itHBFbKkr/fxwfBrsjjJMSrppxorz2 X-Received: by 2002:a62:406:0:b0:628:6a8:1dd7 with SMTP id 6-20020a620406000000b0062806a81dd7mr628401pfe.17.1679425366759; Tue, 21 Mar 2023 12:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679425366; cv=none; d=google.com; s=arc-20160816; b=neIuBYWEcTApQJse8vaXlr1ZLEeavScMFtG6gwuSmAm1e+j7gucH21BW/wpP/TVgwF JB1dlziQsWzpHXZvIIr1uw+y2UrAvul4t+gVcmPkmDRd4G/hywsqqG441y729MRfY+2V DyNt7TL11QnDbScRsys37Mv95AyBStIhKGUWnhtUjLE0dFTcQYVpDTnJFzk3cLr8M5R6 rBIz60YLzPThlr+wPVBdxkTeIFkMlLWEcNXH2ijKcLubxRQMl8ONnN7L/VlRw9E2+Ebi PlZXJbWOFAxE4Lr/0ueYoI84ccGVbddEQQdRCD+AgmlGY2+70Fcriasth3oSAfzvP3QH xyJw== 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=m16LG5qfJ+bTUG6Spw+RzSoYpGmgfuoZ6sJRsgb/iNs=; b=YNBB/OufgiPP39IU25cRZicZYZ8YHCaEZB95iqPZOEL5S2YGsidYUrOEX69cHX6mNQ g/uEuSRGEJj9otRjVm/PHJ5AGrow0/pACwNTC1ychINGB4quQ2avjdUbntDTwAUmDjZF DmcMqbxd5X82D+mdlxU9nWK6kLEjkkrdrjKNmNcZmJgwS5kXlhfY9797rpdI1BUl1lUP 3kVx1md0ukyzRt5RKsWStln0/w3YzkaR/1KFMS14qcSNz5+kofPFAXuiZe2L28/Kb75v qZda4+159SyBk+rl5Z0cG7Vgd4YzXFDmiwVuYNlL0suWkCJy/Di15vOt+dS0armnAWHk 76IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XsSSwi/n"; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f29-20020a63555d000000b0050bf0f1b79csi13967526pgm.699.2023.03.21.12.02.31; Tue, 21 Mar 2023 12:02:46 -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=@redhat.com header.s=mimecast20190719 header.b="XsSSwi/n"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbjCUSt6 (ORCPT + 99 others); Tue, 21 Mar 2023 14:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbjCUStx (ORCPT ); Tue, 21 Mar 2023 14:49:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6126656524 for ; Tue, 21 Mar 2023 11:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679424498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=m16LG5qfJ+bTUG6Spw+RzSoYpGmgfuoZ6sJRsgb/iNs=; b=XsSSwi/nqbkFz16wOrUMWiSrWxdTWKaBEdSm91p0PnhLR+5FTbunRDg4uYNTOuH0oEXFE5 72wWF2DLlOrZQFCjDLU3TSz4xg1yBcGEi/y4rtttToqeToNRWfcQwrn4eJgTQXA0GQ3986 5Fjd7BUFZVoSsYqdH/VEYFOKsAY/2VQ= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-283-U_Xo8_PvPUqLR6dBJYnYpg-1; Tue, 21 Mar 2023 14:48:17 -0400 X-MC-Unique: U_Xo8_PvPUqLR6dBJYnYpg-1 Received: by mail-qk1-f197.google.com with SMTP id s12-20020a37a90c000000b007468eaf866aso2839974qke.17 for ; Tue, 21 Mar 2023 11:48:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679424497; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m16LG5qfJ+bTUG6Spw+RzSoYpGmgfuoZ6sJRsgb/iNs=; b=e/tke/UHf3ua993S47eSy22JkxhoRJUQDyFumIAArWRGUNKnsmUIqg9JaiYYpEK4gD AaqXfGS9GGfOpfEOhLod37KYz1LtBSx9gJGzyneJrMVokpA4idaSDv6b33HxDtCJYxYs p9AtN5sP8BkNt3+gtXV/jVwa9no58Gxzx5J43CaIymTd7YVyQHpCiZ8pdxmM66ol0AEx 4BqUN/nKSVoMwfdhBc8kTLUQMuNcJjRim/ZlvbVr7DPRq9zTEtcUOh8uxpB/ov2hVB5t 1ZstrF+yhHES0whBfVdg6PufjTINcpP7beTnLr7qbUywZ3aRh/QLhkEVj78vOzwcEixT 59Pw== X-Gm-Message-State: AO0yUKW8bJRt6OETQtq2esDnPTTJ3N4xMLtII+coiYN4j/eAHxWrR9h6 Pb2vSGhaR3P3LC7J6ilkOc4lVLSoN8AFBpvPgsN7wlkNMDSm/srvgMamEAgjNtEV8cZocHQCUK+ uj0ytdKFt2dvHBEgfZty0PUk4 X-Received: by 2002:a05:6214:e4c:b0:5a3:44a1:788d with SMTP id o12-20020a0562140e4c00b005a344a1788dmr1318802qvc.29.1679424496990; Tue, 21 Mar 2023 11:48:16 -0700 (PDT) X-Received: by 2002:a05:6214:e4c:b0:5a3:44a1:788d with SMTP id o12-20020a0562140e4c00b005a344a1788dmr1318782qvc.29.1679424496733; Tue, 21 Mar 2023 11:48:16 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 66-20020a370b45000000b0071eddd3bebbsm1525699qkl.81.2023.03.21.11.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 11:48:16 -0700 (PDT) From: Tom Rix To: dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] liquidio: remove unused IQ_INSTR_MODE_64B function Date: Tue, 21 Mar 2023 14:48:11 -0400 Message-Id: <20230321184811.1827306-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761005133321071937?= X-GMAIL-MSGID: =?utf-8?q?1761005133321071937?= clang with W=1 reports drivers/net/ethernet/cavium/liquidio/request_manager.c:43:19: error: unused function 'IQ_INSTR_MODE_64B' [-Werror,-Wunused-function] static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) ^ This function and its macro wrapper are not used, so remove them. Signed-off-by: Tom Rix Reviewed-by: Simon Horman --- drivers/net/ethernet/cavium/liquidio/request_manager.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c b/drivers/net/ethernet/cavium/liquidio/request_manager.c index 8e59c2825533..32f854c0cd79 100644 --- a/drivers/net/ethernet/cavium/liquidio/request_manager.c +++ b/drivers/net/ethernet/cavium/liquidio/request_manager.c @@ -40,15 +40,6 @@ static void __check_db_timeout(struct octeon_device *oct, u64 iq_no); static void (*reqtype_free_fn[MAX_OCTEON_DEVICES][REQTYPE_LAST + 1]) (void *); -static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) -{ - struct octeon_instr_queue *iq = - (struct octeon_instr_queue *)oct->instr_queue[iq_no]; - return iq->iqcmd_64B; -} - -#define IQ_INSTR_MODE_32B(oct, iq_no) (!IQ_INSTR_MODE_64B(oct, iq_no)) - /* Define this to return the request status comaptible to old code */ /*#define OCTEON_USE_OLD_REQ_STATUS*/