From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbdHaVjB (ORCPT ); Thu, 31 Aug 2017 17:39:01 -0400 Received: from gate.crashing.org ([63.228.1.57]:41394 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355AbdHaVi7 (ORCPT ); Thu, 31 Aug 2017 17:38:59 -0400 Message-ID: <1504214050.4974.52.camel@kernel.crashing.org> Subject: Re: [PATCH net-next] net/ncsi: Define {add, kill}_vid callbacks for !CONFIG_NET_NCSI From: Benjamin Herrenschmidt To: Vernon Mauery , Samuel Mendoza-Jonas Cc: "David S . Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, OpenBMC Maillist , Gavin Shan Date: Fri, 01 Sep 2017 07:14:10 +1000 In-Reply-To: <20170831152414.GB69617@mauery> References: <20170831033846.23538-1-sam@mendozajonas.com> <20170831152414.GB69617@mauery> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.5 (3.24.5-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-08-31 at 08:24 -0700, Vernon Mauery wrote: > +int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) > > +{ > > + return -ENOTTY; > > +} > > +int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) > > +{ > > + return -ENOTTY; > > +} > > These should be static functions because they are defined in the header > file or you will get multiple symbol definitions. static inline even or you'll get warning about them being unused iirc. Cheers, Ben.