[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200918.141556.1367737647918813478.davem@davemloft.net>
Date: Fri, 18 Sep 2020 14:15:56 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: hankinsea@...il.com
Cc: richardcochran@...il.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] ptp: mark symbols static where possible
From: Herrington <hankinsea@...il.com>
Date: Fri, 18 Sep 2020 14:10:13 +0800
> +void pch_ch_control_write(struct pci_dev *pdev, u32 val);
> void pch_ch_control_write(struct pci_dev *pdev, u32 val)
Prototypes belong in a header file not in the C file where they
are defined.
If these functions are accessed in other foo.c files, they are
getting the prototype from some header file.
Otherwise they aren't, and the functions should be marked
static.
Powered by blists - more mailing lists