Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2269424yba; Mon, 6 May 2019 03:00:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdV97/ZfFYes0yYZO5kvjJ35J9hF9f0uXoBMDHfClJABPoi8vMfmo2IuhowAtArzk28d+v X-Received: by 2002:a63:5c5b:: with SMTP id n27mr20873271pgm.52.1557136844604; Mon, 06 May 2019 03:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557136844; cv=none; d=google.com; s=arc-20160816; b=k5gaS9VSzKPtRVoE72LhemPhB9r2RAvI6zQBZGbQje8gyzEwBEKqKzDmCilxWArq9u oUDmm/VNMPHJ7XGZFSeKEwTVzD/8yViZJM1GQ8mlMD14Kh/lD0UooooLGkkmNHGCHPIU bDjQURf/7kXdi9pwuby1b170UITbXBgDTNqK5bJceD9ABS438ObPuJQj2s6Zacg3BB0p 9jOf5arL+jn0g5sBQsl8r2QoqE1EBTLC1HhkNX4SsI7u6F4kBOIrdw5hs1BUUvZijou8 L8H36fLa0MSJeKv9FZfBEPBounM+/CIA89K0vg8BFDG9QezrudeCfWsoqiCGz3WCQfnh HYAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cki2YzW6NuBUZ3aoMGVrdYevwMuDOyE+PAVIYyuw6X4=; b=lN0boqobiCZUANl+ctLtykoThJyVcqdM+gCzg/7/ySXaMNsghUz9Yc1o1pqgfFbDRt /11Fe3bUhC4XgZmjV3id6N3aFX8cE8oZt9G/k2uowJNB+1aHNOXA9K0UmKkBJl9h32Bx Ej5NDWmDsJGX8LTpwShR7rl2s5oT1mwoStLJfVH1YNrG5dl9mssCc7s6qZMVj0wukjn4 Gc+Ny36LATBgmu0yy7cXpu2c4LJv5z9MIyUb9W7kbm3NHv/fYSaRJhiwwvjerONtCgas z5UXYNjVakjquWXdJTfmM13M8szqHIjibwXAKG51BgoU80pdmiWQzfMyINUVSXoGL6xN s70A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si13861986pfn.70.2019.05.06.03.00.29; Mon, 06 May 2019 03:00:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbfEFJ66 (ORCPT + 99 others); Mon, 6 May 2019 05:58:58 -0400 Received: from smtp-out.xnet.cz ([178.217.244.18]:35125 "EHLO smtp-out.xnet.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbfEFJ65 (ORCPT ); Mon, 6 May 2019 05:58:57 -0400 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id DFA9E384F; Mon, 6 May 2019 11:58:54 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 31fc53e1; Mon, 6 May 2019 11:58:53 +0200 (CEST) From: =?UTF-8?q?Petr=20=C5=A0tetiar?= To: "David S. Miller" , Matthias Brugger Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Frank Rowand , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Maxime Ripard , =?UTF-8?q?Petr=20=C5=A0tetiar?= , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next 0/3] of_get_mac_address ERR_PTR fixes Date: Mon, 6 May 2019 11:58:34 +0200 Message-Id: <1557136717-531-1-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this patch series is an attempt to fix the mess, I've somehow managed to introduce. First patch in this series is defacto v5 of the previous 05/10 patch in the series, but since the v4 of this 05/10 patch wasn't picked up by the patchwork for some unknown reason, this patch wasn't applied with the other 9 patches in the series, so I'm resending it as a separate patch of this fixup series again. Second patch is a result of this rebase against net-next tree, where I was checking again all current users of of_get_mac_address and found out, that there's new one in DSA, so I've converted this user to the new ERR_PTR encoded error value as well. Third patch which was sent as v5 wasn't considered for merge, but I still think, that we need to check for possible NULL value, thus current IS_ERR check isn't sufficient and we need to use IS_ERR_OR_NULL instead. Cheers, Petr Petr Štetiar (3): net: ethernet: support of_get_mac_address new ERR_PTR error net: dsa: support of_get_mac_address new ERR_PTR error staging: octeon-ethernet: Fix of_get_mac_address ERR_PTR check drivers/net/ethernet/aeroflex/greth.c | 2 +- drivers/net/ethernet/allwinner/sun4i-emac.c | 2 +- drivers/net/ethernet/altera/altera_tse_main.c | 2 +- drivers/net/ethernet/arc/emac_main.c | 2 +- drivers/net/ethernet/aurora/nb8800.c | 2 +- drivers/net/ethernet/broadcom/bcmsysport.c | 2 +- drivers/net/ethernet/broadcom/bgmac-bcma.c | 2 +- drivers/net/ethernet/broadcom/bgmac-platform.c | 2 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 2 +- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 2 +- drivers/net/ethernet/davicom/dm9000.c | 2 +- drivers/net/ethernet/ethoc.c | 2 +- drivers/net/ethernet/ezchip/nps_enet.c | 2 +- drivers/net/ethernet/freescale/fec_main.c | 2 +- drivers/net/ethernet/freescale/fec_mpc52xx.c | 2 +- drivers/net/ethernet/freescale/fman/mac.c | 2 +- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 2 +- drivers/net/ethernet/freescale/gianfar.c | 2 +- drivers/net/ethernet/freescale/ucc_geth.c | 2 +- drivers/net/ethernet/hisilicon/hisi_femac.c | 2 +- drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 2 +- drivers/net/ethernet/lantiq_xrx200.c | 2 +- drivers/net/ethernet/marvell/mv643xx_eth.c | 2 +- drivers/net/ethernet/marvell/mvneta.c | 2 +- drivers/net/ethernet/marvell/pxa168_eth.c | 2 +- drivers/net/ethernet/marvell/sky2.c | 2 +- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- drivers/net/ethernet/micrel/ks8851.c | 2 +- drivers/net/ethernet/micrel/ks8851_mll.c | 2 +- drivers/net/ethernet/nxp/lpc_eth.c | 2 +- drivers/net/ethernet/qualcomm/qca_spi.c | 2 +- drivers/net/ethernet/qualcomm/qca_uart.c | 2 +- drivers/net/ethernet/renesas/ravb_main.c | 2 +- drivers/net/ethernet/renesas/sh_eth.c | 2 +- drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c | 2 +- drivers/net/ethernet/socionext/sni_ave.c | 2 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- drivers/net/ethernet/ti/cpsw.c | 2 +- drivers/net/ethernet/ti/netcp_core.c | 2 +- drivers/net/ethernet/wiznet/w5100.c | 2 +- drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 +- drivers/staging/octeon/ethernet.c | 2 +- net/dsa/slave.c | 2 +- net/ethernet/eth.c | 2 +- 47 files changed, 47 insertions(+), 47 deletions(-) -- 1.9.1