Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1520211rwb; Wed, 26 Jul 2023 13:59:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGMrr6HexWT/9V1dGJlTL6+bqbGeqBgp1M3ihQNGa+QjrX6rDO8QCuiJXdJVys0Sj1sJFzb X-Received: by 2002:a05:6a21:66c4:b0:135:6d5b:82a6 with SMTP id ze4-20020a056a2166c400b001356d5b82a6mr2757929pzb.62.1690405199185; Wed, 26 Jul 2023 13:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690405199; cv=none; d=google.com; s=arc-20160816; b=oxGADvXk/KkQb2NgwYi6SSy316suTu/WoNSG1tzLG4fiGJqnFe/fYwmeQI2DMDbeEJ +kciF1rwMmpRLWeKVmpKn6StWfOVzMVzkhCSrM+MOnv4HujUlEjxVNI3JLOBHnQCXI1b usyUiDM258lnhUikdAdRAOxey/3yI/b7RSpoRklWVX0l7S5svNNje0C6cV/kZ1WuIf2Q ZT0xgFLKQ6mNxR/45KEuaA1fJh+v+SrqJaQLgBfornA2eCGDx2b1LjsG57+64ZXi4NXv cQrDwAz8fhs9l7q/O+/qsr4VTcl2+14QmkNmnTibQCffI3SSiBsTNLkC43NHMl4mj9h+ AtTw== 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=DKSIF2qM1WkzkAvuI2l6EqnF0gZmOBT4rBoZVsSLUPM=; fh=WdQmrt/OgsJvQpNbVbGKKK9vej79ZBnd3+Bx+DdNvtA=; b=uyrLF6L2Aif6rwE4DYmWHdf60mz0V+yrIHE7Y13wjf+X38jCjlBPpgnMACorg1pgdB e2z+E13IFcUiqXWMaP1ZU+nVn8BUnGixo2zuMYnlaCTOIQ6jqXNehpOyffkvTA3y011R Dyz+QNS6Mr3VOjLLFJV/zdRaEYLaNnJh0N5Ifi9Av/6u7276yTt9kAwgWg1JKyKAs29O oQs4s9RA/HZKtribtnMTVzMd/euOFDMVYAfIARKgQfXSKCYmElE0KPFE173mvOvOJSyt 0urM2peW5O9qsWLUxzodXxUsQR4Ij1cYuTS0NH5YTs5sYfl6oDIUPt3xcepXDMFI91Q8 wXwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S3u9aEl7; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l29-20020a63701d000000b00563d620e508si1601330pgc.534.2023.07.26.13.59.45; Wed, 26 Jul 2023 13:59:59 -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=@kernel.org header.s=k20201202 header.b=S3u9aEl7; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbjGZUeH (ORCPT + 99 others); Wed, 26 Jul 2023 16:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGZUeF (ORCPT ); Wed, 26 Jul 2023 16:34:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D702704; Wed, 26 Jul 2023 13:34:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 448E461C9C; Wed, 26 Jul 2023 20:34:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC48C433C8; Wed, 26 Jul 2023 20:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690403643; bh=HTr91m36lJ4Cgl7LDNajp4qXfX9dPoHByJE92PuE8JI=; h=From:To:Cc:Subject:Date:From; b=S3u9aEl76uukqy01rW+W7RcRVroR+zjgtOtHUCwvN3NPPx/ShzpjdSBp1u4GyOncz 2V0kEEzIoNMzV66sT8UWGRYJr5pzl94deFOzxEV8/U5sccyDIHsnrY78vq6rTV5yrf GjWzoBJ0MNr0LB+PqhHfyPiYC3UrpGHo6/gc3+BLwp06oQwQDadqqb6vlKdM1L4pg6 HQiPEGdDaoil0gLu8zRzsu8k63rJLOJbv+jTm2qsrXpKb3CxMO4fJ0bCEGsQWEOid0 yXyW6ynj176Z/RVQktzD3YhigECyVon16JjL8p7AiZ9SYsyDYpVDoV0cAY/kqgdwM0 rt8eoOplUJyFg== From: Arnd Bergmann To: Damien Le Moal Cc: Arnd Bergmann , Sergey Shtylyov , Jon Hunter , Bart Van Assche , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] ata: pata_ns87415: mark ns87560_tf_read static Date: Wed, 26 Jul 2023 22:33:22 +0200 Message-Id: <20230726203354.946631-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Arnd Bergmann The global function triggers a warning because of the missing prototype drivers/ata/pata_ns87415.c:263:6: warning: no previous prototype for 'ns87560_tf_read' [-Wmissing-prototypes] 263 | void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) There are no other references to this, so just make it static. Fixes: c4b5b7b6c4423 ("pata_ns87415: Initial cut at 87415/87560 IDE support") Reviewed-by: Sergey Shtylyov Signed-off-by: Arnd Bergmann --- v2: fix changelog text --- drivers/ata/pata_ns87415.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c index d60e1f69d7b02..c697219a61a2d 100644 --- a/drivers/ata/pata_ns87415.c +++ b/drivers/ata/pata_ns87415.c @@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap) * LOCKING: * Inherited from caller. */ -void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) +static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) { struct ata_ioports *ioaddr = &ap->ioaddr; -- 2.39.2