Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp430458lqz; Sat, 30 Mar 2024 02:59:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUopVUVIMAGLvtFpgOXvbnEEOOXdD4hQ5/01i2URrgcQcj0h0mH9OPqVTmhjOUaUf2aULIEUp4Vq7xf1g6dR5njO02s2fh6nx8ii42zQ== X-Google-Smtp-Source: AGHT+IHG4+ElRIEa2scGs8RSRnNSiRccxrfBBdeGNbTNiWxCeryK/KJsP0R0Yuorv4Q8P5NdwHpr X-Received: by 2002:a0c:f785:0:b0:696:8a33:5045 with SMTP id s5-20020a0cf785000000b006968a335045mr3823372qvn.42.1711792763734; Sat, 30 Mar 2024 02:59:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711792763; cv=pass; d=google.com; s=arc-20160816; b=IDYMhU/OS+826ZA+Kx7zphIujhJv7nK8PLf6p9C6UDf9qELnC3FGCQCQQI5ZsBZm6k NVgUmGc4OFWfm5GtIFw4wljTHVmLRiwFx+TmErhZnFSa30Eek8e5zVfxjiq9WFR6GU7A WgjyeluhJi5g66mkDxadDJbtfBhrAsyaR0UidUPsunbS7Sfd5rwCS240xJQsJLJwhG0X r59u9dahTrcVJrafZDthAhCURRZFrkB8PoF/2VaEl45+GGY8XWat1ldsXqQgGxf/+80p IIoHsqaHaFQltd7FtKDk1PSygW00eqWOa91v3V/M2fbg6UaX16pdpnjA9smGqBkrKtMP NVjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=wd4jb+9TVZDnvjxBoZAOB4HCDz0acuvlxtmjhwV3u0Y=; fh=GXoUT2HKXUQzXvT30jHaRNwHOEro+CbAiNXRieX5N7A=; b=ZkVvtCsuHu55rNqWd2n+vE3GyZJ50xAtUKt1wE5JqJQmq+aSoFgQO9YrczqrBV8tT/ 7gOP0zUXsuHAlBmKPi7AArLgIKUcikK/UQyzzpNnulumruBU9NoC0ZWY3CvtYWQpFdFm NQJqxTA+r0yBr2EAYZbo/YSfGq57n6xsOLgL0ZftSU9ftnPdipvoH60tSBEaBt/PR1S9 JjhhCi19ejU0AThpF+n9hJSPqH53iN03PzC3KAvo0/cWKCPD0HYIhlDZu9LIw/QUTuey uVRdEV0aB5IJSMF96q7UsRucI1lfBLWwjunM1SxEmVPm0XW+3lAbqD8QNyYwdbg6yOqB unEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oO4lNsou; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p8-20020a05621415c800b00698f66f31f1si1984798qvz.366.2024.03.30.02.59.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 02:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oO4lNsou; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7874D1C2146F for ; Sat, 30 Mar 2024 09:59:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AA2940867; Sat, 30 Mar 2024 09:58:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oO4lNsou" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BC98208A2; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=Ii9BXZPClftik0kkF0whExwHiW0cistUOd2wJG/CCuxYn1beKAc6aHe8Oq15eQNNFwlp8PdMRdGwvEjOuWIYlPxk215MRvRIkQx8b1+rhz6TLdbOPJQFnUY570asBJJVB0wCQ7nL9cMj/Zayds0MXSO8VdjSqotK5Ckw7NEKNl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=RV9r2ML9o3E1SdglYl1CXcwBgIOMSUNtjyseYqlJ2XA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Zz9IhkwPYKOemu+w4qCziNefRSdzz9p/tnMhsFme+D6h+14cry6XhltaKv8hjp+BAQz5BQAbL9zS/rceHk8RVqX8PsEwT6AEYGovv3klCs8UX5kAOkrRjjfrWKsKed3e3auh00oh+GLkCuxi7WVtU3q19QQ/E+EBy4DaGdBSouU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oO4lNsou; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 1EFEEC433A6; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=RV9r2ML9o3E1SdglYl1CXcwBgIOMSUNtjyseYqlJ2XA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oO4lNsouDlCi7x3tGy4jRlm5bfoPpeFNXFCXYmonSDQLapIcaGBbX0/CMX4ScUZvr 2tpBJ4vEWQK2c7gFhTvDUxQvn154gwgjPrFWvg/bm8s0hGAq48ryGIo/7v+h+WsKrW khx8Q26y7F4p4bnD/o0qajzSbxHm+vWdyL8Gwl0HNbXPmwf0qy7+ByIeEnIhqYTFKx CPxgdB+tJegILuc64So3AmfzTDlo6QbUtCYCzf8xoR+Givx9Dw+44qQHNyelUa21Fk 8pl0yaM7qllFkT6KGdl92SsbX2cSQXIFHqf0BGJeb/HprHvOOYmpgasE62E8zAGb0x bFQfiZeiyalhw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16568CD128D; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:42 +0100 Subject: [PATCH 06/10] sparc64: Fix prototype warning for dma_4v_iotsb_bind Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240330-sparc64-warnings-v1-6-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1078; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=ZJnDEoYRR+6aaZk7EEvtgtfnCnQfrvRZPpKL04kGYG8=; b=+P73wCmF6fdM+Yl/OL7n1h00X5/H9eGLRS8OkyaFLZ3lCyNQIMamva8JjdBzuzJz3RamkdNu+XXX HCDuKRN7BKCvLiNrDhVb2cA849WRpYW22u+gqscHluUdZ1SPyBf2 X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: sparc/kernel/pci_sun4v.c:259:15: warning: no previous prototype for ‘dma_4v_iotsb_bind’ The function dma_4v_iotsb_bind is not used outside the file, so declare it static. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" --- arch/sparc/kernel/pci_sun4v.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sparc/kernel/pci_sun4v.c b/arch/sparc/kernel/pci_sun4v.c index 083e5f05a7f0..b720b21ccfbd 100644 --- a/arch/sparc/kernel/pci_sun4v.c +++ b/arch/sparc/kernel/pci_sun4v.c @@ -256,9 +256,9 @@ static void *dma_4v_alloc_coherent(struct device *dev, size_t size, return NULL; } -unsigned long dma_4v_iotsb_bind(unsigned long devhandle, - unsigned long iotsb_num, - struct pci_bus *bus_dev) +static unsigned long dma_4v_iotsb_bind(unsigned long devhandle, + unsigned long iotsb_num, + struct pci_bus *bus_dev) { struct pci_dev *pdev; unsigned long err; -- 2.34.1