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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 29 Aug 2014 20:06:23 -0700 (PDT) From: David Miller <davem@...emloft.net> To: hock.leong.kweh@...el.com Cc: peppe.cavallaro@...com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, boon.leong.ong@...el.com Subject: Re: [PATCH 1/4] net: stmmac: enhance to support multiple device instances From: Kweh Hock Leong <hock.leong.kweh@...el.com> Date: Wed, 27 Aug 2014 18:32:26 +0800 > @@ -26,27 +26,22 @@ > #include <linux/pci.h> > #include "stmmac.h" > > -static struct plat_stmmacenet_data plat_dat; > -static struct stmmac_mdio_bus_data mdio_data; > -static struct stmmac_dma_cfg dma_cfg; > +static int instance_id = 1; Don't do this instance stuff. Instead pull in some identifier that can come from elsewhere. > + plat_dat->mdio_bus_data = devm_kzalloc(&pdev->dev, > + sizeof(*plat_dat->mdio_bus_data), > + GFP_KERNEL); This is not indented properly. On the second and subsequent lines of a multi-line function call, the lines should start exactly at the first column after the openning parenthesis of the first line. You must use the correct number of TAB and SPACE characters necessary to do so. Generally speaking, if you are indenting using only TAB characters, odds are you are doing it wrong. Please audit for, and fix this, in your entire patch series. -- To unsubscribe from this list: send the line "unsubscribe netdev" 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