lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.21.1804181109040.8@nippy.intranet>
Date:   Wed, 18 Apr 2018 11:23:55 +1000 (AEST)
From:   Finn Thain <fthain@...egraphics.com.au>
To:     Michael Schmitz <schmitzmic@...il.com>
cc:     kbuild test robot <lkp@...el.com>, kbuild-all@...org,
        netdev <netdev@...r.kernel.org>,
        Linux/m68k <linux-m68k@...r.kernel.org>,
        Michael Karcher <Michael.Karcher@...berlin.de>,
        Michael Karcher <kernel@...rcher.dialup.fu-berlin.de>
Subject: Re: [PATCH 04/10] net: ax88796: Add block_input/output hooks to
 ax_plat_data

On Wed, 18 Apr 2018, Michael Schmitz wrote:

> I think this is a false positive - we're encouraged to provide the
> full parameter list for functions, so the sreuct sk_buff* can't be
> avoided.
> 

I don't think it's a false positive. I think ax88796.h would need to 
#include <linux/skbuff.h>.

You may be able to get away with a forward declaration, as in,
struct skbuff;
but I'm not sure about that. I would have to build mach-anubis.c to check.

But why do you need to pass an skbuff pointer here? xs100_block_input() 
only accesses skb->data.

BTW, this patch has an unrelated whitespace change.

-- 

> Cheers,
> 
>   Michael
> 
> 
> On Wed, Apr 18, 2018 at 6:46 AM, kbuild test robot <lkp@...el.com> wrote:
> > Hi Michael,
> >
> > I love your patch! Perhaps something to improve:
> >
> > [auto build test WARNING on v4.16]
> > [cannot apply to net-next/master net/master v4.17-rc1 next-20180417]
> > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> >
> > url:    https://github.com/0day-ci/linux/commits/Michael-Schmitz/New-network-driver-for-Amiga-X-Surf-100-m68k/20180417-141150
> > config: arm-samsung (attached as .config)
> > compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
> > reproduce:
> >         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> >         chmod +x ~/bin/make.cross
> >         # save the attached .config to linux build tree
> >         make.cross ARCH=arm
> >
> > All warnings (new ones prefixed by >>):
> >
> >    In file included from arch/arm/mach-s3c24xx/mach-anubis.c:42:0:
> >>> include/net/ax88796.h:35:11: warning: 'struct sk_buff' declared inside parameter list will not be visible outside of this definition or declaration
> >        struct sk_buff *skb, int ring_offset);
> >               ^~~~~~~
> >
> > vim +35 include/net/ax88796.h
> >
> >     20
> >     21  struct ax_plat_data {
> >     22          unsigned int     flags;
> >     23          unsigned char    wordlength;    /* 1 or 2 */
> >     24          unsigned char    dcr_val;       /* default value for DCR */
> >     25          unsigned char    rcr_val;       /* default value for RCR */
> >     26          unsigned char    gpoc_val;      /* default value for GPOC */
> >     27          u32             *reg_offsets;   /* register offsets */
> >     28          u8              *mac_addr;      /* MAC addr (only used when
> >     29                                             AXFLG_MAC_FROMPLATFORM is used */
> >     30
> >     31          /* uses default ax88796 buffer if set to NULL */
> >     32          void (*block_output)(struct net_device *dev, int count,
> >     33                          const unsigned char *buf, int star_page);
> >     34          void (*block_input)(struct net_device *dev, int count,
> >   > 35                          struct sk_buff *skb, int ring_offset);
> >     36  };
> >     37
> >
> > ---
> > 0-DAY kernel test infrastructure                Open Source Technology Center
> > https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ