Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1300351pxk; Fri, 18 Sep 2020 08:53:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiprN2bWyp29/u5fEkH4rFpFDTNmrMTeU8l3kE2wJRjqH1WWJ3lSF8dO9JwOmuVObwVf0p X-Received: by 2002:a05:6402:1805:: with SMTP id g5mr38019023edy.135.1600444383962; Fri, 18 Sep 2020 08:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600444383; cv=none; d=google.com; s=arc-20160816; b=YxIBS8ofIklUxhHzp+GncOhGDfHG/5vXL/BEtnxre+FLqbypAq+F8oaN7XCvUS/0O8 KDK/6y86CYRSG0hF1K5jWM15PAY502EGdASjT/XwHmaHWKu2x1Ui77wDbddl3T7lQEIw qxE4VyAUXKVrjXvwqeoDadlrENfKmTENtGLyAHqcDL99BEWuIs2OhU2p5qDK8/cTMYg9 MsPtPHxO1nyaukLra6OzouZ+6KUH9OXTQqIBfTcg6Te+73/YwNTV4lVlGl8TN6Lp0hck 076K9JIMqeida223tgzbYdc1sv3a0BpxIsOoEO5o1FLhiwt6OMRnh/VF8AByO8Hh9jZG Q2PQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rVrFhezF99ofbruwsdYKGpPfjS87pDuMr2DCA/kvfcw=; b=ngPhNF7wCpgbNA1qp2gbmyJgqWGkFVUa05Hv18iDoajPxk3t0/zyffEpzCoNywKbRS /7UVFtz5DdWXnyO7AoU5pyYdxUPDk0J0ahbpqMDFmCuLzOPIaqsHDW7cI+xKmKKXICsI TQNWVSc0FB+ghAFUn4UcUwn9DvGYtJ8WFVQ/oNuc0aRj6dnys2/9VR3qBmfSknjshH/5 sKlH5BzYDcaZvOtS2AQQKBaXUQ1k4yO+fmxPxJnDnEaqhJ+dx5D1olcxpP1F9DTHDhr8 dNtySyHj2WbqOUJih9550kAHdDNKAUYnLFrny5x3WS9ELQuaBtmD5lZAmCOh8Ex6Q0rW rjZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jfqeQaff; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si2381830edt.580.2020.09.18.08.52.40; Fri, 18 Sep 2020 08:53:03 -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=@kernel.org header.s=default header.b=jfqeQaff; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726236AbgIRPvn (ORCPT + 99 others); Fri, 18 Sep 2020 11:51:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:47340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgIRPvn (ORCPT ); Fri, 18 Sep 2020 11:51:43 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CA89121734; Fri, 18 Sep 2020 15:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600444303; bh=W+eCP9/oq+d3ilRDMujo/7+OI25X5P6rKSJQZeOohuY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jfqeQaffw4nL8qLcubuqqQJzqd3l8mfzXTzetXPN13LrqyMejyYDBY/+0/+ZmVorb 1HV7ymQiKCCyIIei3AW6n1Vj8s3urXRPswpAszi8Tv0BwaKZnEO3rP7PaVRbjun5xW DyWMAIQ9Xxnl0itS6zJr7bPE7L6njFuE3s4k1kKM= Date: Fri, 18 Sep 2020 08:51:41 -0700 From: Jakub Kicinski To: Herrington Cc: Richard Cochran , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ptp: mark symbols static where possible Message-ID: <20200918085141.4d247b94@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200918061013.2034-1-hankinsea@gmail.com> References: <20200918061013.2034-1-hankinsea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Sep 2020 14:10:13 +0800 Herrington wrote: > We get 1 warning when building kernel with W=3D1: > drivers/ptp/ptp_pch.c:182:5: warning: no previous prototype for =E2=80=98= pch_ch_control_read=E2=80=99 [-Wmissing-prototypes] > u32 pch_ch_control_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:193:6: warning: no previous prototype for =E2=80=98= pch_ch_control_write=E2=80=99 [-Wmissing-prototypes] > void pch_ch_control_write(struct pci_dev *pdev, u32 val) > drivers/ptp/ptp_pch.c:201:5: warning: no previous prototype for =E2=80=98= pch_ch_event_read=E2=80=99 [-Wmissing-prototypes] > u32 pch_ch_event_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:212:6: warning: no previous prototype for =E2=80=98= pch_ch_event_write=E2=80=99 [-Wmissing-prototypes] > void pch_ch_event_write(struct pci_dev *pdev, u32 val) > drivers/ptp/ptp_pch.c:220:5: warning: no previous prototype for =E2=80=98= pch_src_uuid_lo_read=E2=80=99 [-Wmissing-prototypes] > u32 pch_src_uuid_lo_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:231:5: warning: no previous prototype for =E2=80=98= pch_src_uuid_hi_read=E2=80=99 [-Wmissing-prototypes] > u32 pch_src_uuid_hi_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:242:5: warning: no previous prototype for =E2=80=98= pch_rx_snap_read=E2=80=99 [-Wmissing-prototypes] > u64 pch_rx_snap_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:259:5: warning: no previous prototype for =E2=80=98= pch_tx_snap_read=E2=80=99 [-Wmissing-prototypes] > u64 pch_tx_snap_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:300:5: warning: no previous prototype for =E2=80=98= pch_set_station_address=E2=80=99 [-Wmissing-prototypes] > int pch_set_station_address(u8 *addr, struct pci_dev *pdev) >=20 > Signed-off-by: Herrington The declarations are in: drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h You need to split those out into a shared header and include them appropriately.