From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0044.outbound.protection.outlook.com [104.47.38.44]) by dpdk.org (Postfix) with ESMTP id 6C6481B161; Thu, 25 Jan 2018 10:54:50 +0100 (CET) Received: from CY1PR03CA0015.namprd03.prod.outlook.com (2603:10b6:600::25) by BY1PR03MB1417.namprd03.prod.outlook.com (2a01:111:e400:5255::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Thu, 25 Jan 2018 09:54:48 +0000 Received: from BN1AFFO11FD037.protection.gbl (2a01:111:f400:7c10::184) by CY1PR03CA0015.outlook.office365.com (2603:10b6:600::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Thu, 25 Jan 2018 09:54:47 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD037.mail.protection.outlook.com (10.58.52.241) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Thu, 25 Jan 2018 09:54:47 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w0P9sfR6022450; Thu, 25 Jan 2018 02:54:45 -0700 From: Hemant Agrawal To: CC: , Date: Thu, 25 Jan 2018 15:23:27 +0530 Message-ID: <1516874011-8760-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516874011-8760-1-git-send-email-hemant.agrawal@nxp.com> References: <1516874011-8760-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131613476877338254; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39380400002)(396003)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(105606002)(86362001)(85426001)(36756003)(316002)(69596002)(53936002)(356003)(97736004)(2906002)(77096007)(26005)(6666003)(2351001)(6916009)(2950100002)(47776003)(106466001)(54906003)(16586007)(336011)(5660300001)(104016004)(48376002)(50466002)(450100002)(4326008)(68736007)(81156014)(8676002)(50226002)(51416003)(81166006)(8936002)(76176011)(305945005)(498600001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1417; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD037; 1:KObbL8A3ln8u0YZu802z0tGdgK2nMtXUZv5bA1WrlmSGefu61zMQer4H/3g884ta/sCcFUN0/k0j75H8KURqxm44qNOZyPOsJhDunp+0oaS7UmElEtMl4BPz+PE0AC/h MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 758485ca-52a1-47bc-252d-08d563d9ab62 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BY1PR03MB1417; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1417; 3:1ztt+VFJpNFN37g0BvltfUr1ERslRZ6ZeQnhvRna8zcsXW1bmqEzh9ostWbHJrGY6j+FmWQOiBvjrHeXh/aEh11wMywxAMw1u5YvgLxeb3ForCOOWGKyi+gzRqHIbQEglWgbklDzQhctb9ebcCLrYOfc88k8wEOBCBbsVuy7MFukryVw/gwWBE/8FLf0zLdKWBKEXKxSXVraDi4T5hnPFzG7N2jgcY2moZuZ4408Vq1xJfJJqVpjWS3CaiN2MKfQfo5OEJTNt2wieBkz/Npy7QcGjbBoTr/k/5sUnjseHNjfKXM6U0nBJX+6LWSENe0Stq9+YTgCTUrl2045EBnq6Q==; 25:76H1g/100M65+4PpajezmEszQranXvZvFt4x1zGyxtNP22efJALzVMMATaHno0xllGmQZLwTgKqc5MDFSqaYxQ6mTvOnX7P+8xJCPOgpjrKlnAgZLKaTRfltgRx41Xw0rE0pC7/ZYZhauCgEZTf5gIFOUjhJIL+shUGGbpYz/Ml4bEYe+uU/d7BlO4cSwj6sSK5FxlxswxDcUldgjAcfdGHSbsaOFYGnrkhq0AO9kJVZnR+nBMpSIqdcyNt9K+XbTcim7c/Uv8LCYmNsDwaiYoaKao0/UMt5QG0YfUeuWRrgxa9i2fYgLSVoTm/5EeNw8GxwK7CmUCVi9yke7FyXXg==; 31:tj7nslRSMSaoRnkfzMFs0v3NbVciuu4zPPXErwVJu8LvWQQkoUigMKpexxqIbDjaeZuxgiFelPo/pKZe+ahQIAJgxJyfviiPM2xE/xewtfXPQZVBlfXRUvwyHBPV+snEprvyYTA+Daq//HkvxK945eRQq2rf99+3epc50Md2dWHjnB7Ilz3496Ydy6b/tAV/6OtrTBg6NbZuNkP4OJRbXNlyZNHvKDsDkywmdu1bTJs= X-MS-TrafficTypeDiagnostic: BY1PR03MB1417: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(2400081)(944501161)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123556025)(20161123563025)(20161123559100)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(201708071742011); SRVR:BY1PR03MB1417; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR03MB1417; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1417; 4:y4JYi5sCVnB04Uz0KiJQiuLhYWQfy626st77FhIBXtsprl1uT/bQTJbKjMMQmWUgPqSKfUpScuKReRHB4oxkswxcVoEs27ttJ2LyXKlXHlW9vGYpMYE3opRv+bS+hhwbTlj2YoxCdbYR3wybdAW8vq5A5TkeM3W9yVkJXra7SjaGwJo58BSobHkPBaXfhP5E/ynlFvDc99AM8BYdXEM73IySdk3AkM6EoxY8kC49N5SmcgW9pwtF1QI6SdnsdQYteVvXy/fkvT07nHO/BAINbvq8a8/KE+0vYsqq+xCwLCfM4XMIC5XlbLCLWh3BSyy3 X-Forefront-PRVS: 0563F2E8B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1417; 23:VNjaJrrMn2gCJNmzH+iP0A5KDcGYecaP5YAOtOCTy?= =?us-ascii?Q?5M/CT0OtCmRd5gzNNW9SELfCCXGFImvyPQIIgLpwwjg1AYhv2bV2sAM1B5vA?= =?us-ascii?Q?VGob0mCo/CLMjgyFa15frE7xQa5kgvCZFkQVCQOhaMvSHSuWRGCBv/bG1Na7?= =?us-ascii?Q?Yr4G5Y58STqynmLDl5qHzNmBmLJTkjStKX/M/7WR0oEqL3oHH27/9llsv49T?= =?us-ascii?Q?TjTaWrl6819cQSsgAd0nnS72G89iFbDf7U9f3CWBN9kryzdvVXhl50DcWoGF?= =?us-ascii?Q?X/uCC0ljPQnDiVfbPRDWRU+A+dl8lcYbfCuRCCyTFnc2M6cYO6C8kbqDoC3B?= =?us-ascii?Q?GvNysS8Vfa3P/bWz9SpkwezMexZ9XBiq3z8ZArc+nFkCK0YaT/iEwNEkPH4F?= =?us-ascii?Q?g/EQCYUfC/sa4irFqqtAf5LF97cQPByP2SeXUI0CrpkC60MxYsnoilmeCi/f?= =?us-ascii?Q?koCd2SNjJ6+z3Qprv0AuaqsFh3CNoBp83Yk7cUDwlj5jaIrx7CsaIVbvdxft?= =?us-ascii?Q?2KzzNQZ6sTepxYLUzL7egI70cKhxNUQ43DeTp9M6qPpi0SGuykvwqfoJY+mx?= =?us-ascii?Q?JUB8UA/YObEkp4WRJpz3q9jFg+Pn4udFW4AlcE1LULvUYklT93oAZFstM9Wi?= =?us-ascii?Q?2ShNBiqH4+fMcDg1hcuxpzY60xy+3cgg4kv4UEhCrG82EK00k8aAkZgDhfos?= =?us-ascii?Q?8RiWUwoft6bXImY3rUHU7lqjPhajtvDYySSzSfaEqx8YsRMcvC7FOKQYA7JW?= =?us-ascii?Q?NSvoqLeP8getrXZ+A5PKqbRNFXhPTnEaUBU7ab/qafDZotntnuDHVjcd20UE?= =?us-ascii?Q?XFzjApAhPQOhelVd7kENdT/9aB2+xsZFZXWkZgMzO/c0ci/+oR7GS+Id3ura?= =?us-ascii?Q?IQWGOp+eBZv48Eok4tYu9wdmhQ7L9eADbE6ylivk+NL+EgQVq+Fe4spPcJRO?= =?us-ascii?Q?5mwC9ET6jsbKptp9+l3DTkbZe0uPkL60U0CKrQAQCdggtAnY8TgHFUyb0Ebp?= =?us-ascii?Q?ykaWh+DTji/IpgDatRkfiXqnPAytl6iA5hHPkXWMBmF1sFfTU+YocX02QfnO?= =?us-ascii?Q?JlBwBnQMfHBWzM6DqPzwtA1y8xWGZycZ7eQ6GQZXuCQ9djmEam/eE/t8XCEU?= =?us-ascii?Q?KoSZFlMR38=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1417; 6:Fswuk8TuVrudmdUtY9RXoU3iuVlOUIssGfBEHv/LPdephpscyJ7n3y6TbICDczY+O3X+ciREUq5Em+5zLIehO9bpqbuVFmfaa1BcwuToRIqIR0+1HN3QDw0+h9xepkY+es58rOf00ZOED/9yntAcbqpA+lVJ9afbTkF5TnIyRWTlxT7UOzstguo5DGXPo7ZHYKahB/LLxwzrRagyCUCnm/wjuFmjkANvMrlZRb+CG2qsrV5PC4b7MX2snhQVKUYKWUl4dIE/ezNj/qUZmeokAYCelYbi9uI4FPRB9jS303i6KFkUs/6THMj1I5Phc8xtrhRmJbX2RVQWAmWL0hB6SsihMlfGbzINgmsYvQ10/Kg=; 5:RGwx3cZdpvpuOE47FGCJh/cceNf4gdcBmvYuqechvma7wfrUOhPH3p5OZVviv3HPEzplZ1txHoClu0ZAlt4FnnzIqEVLdseVs2jVhPh3aLV2ldbsivq36/zZq5WGN5p+ZR8edidJNd38XpaD+1mGCdETZB3JKzf+aKStN5lBPAo=; 24:/TZP8N8LNOXVg1qeBADuzhjlRjnyWUTcJD0SM9nppJ029DnJ7oRf5yjUdFfidyJGG0M6KyI6Cn+MUhUw+f3yz8RhF2ZjGb/L4OeoFZGHvtw=; 7:PEGs97V4U0ek68eKGdaqfksOR6RUFs7GLSalmjaKw3d4cqtZwm2XGgPRxRml1S/Yb0NdxNRk286fJ+8BD0p/DDdOKOfm3m4Z4JdJE3gdgleWXBGB0ky3Kcn6ayvyvoIC/n53HKxw0Jd5WJhwIKU1vK86oeQBiRjdhpvnbFn90hDVoT9cupRH0tbOD0VPNWnHxzF20fOozMZ3lACHbLWjIfer8VyH1F6vHhdJ+l/3Xla7i5GS+BHLA4FFZ6T4BFJD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 09:54:47.4530 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 758485ca-52a1-47bc-252d-08d563d9ab62 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1417 Subject: [dpdk-dev] [PATCH 1/5] bus/dpaa: fix compilation warnings with clang X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 09:54:50 -0000 fman.c:570:15: error: format specifies type 'unsigned short' but the argument has type 'int' [-Werror,-Wformat] __FILE__, __LINE__, __func__, fman/netcfg_layer.c:80:1: error: unused function 'get_num_netcfg_interfaces ' [-Werror,-Wunused-function] get_num_netcfg_interfaces(char *str) Fixes: 5b22cf744689 ("bus/dpaa: introducing FMan configurations") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman.c | 2 +- drivers/bus/dpaa/base/fman/netcfg_layer.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index 1dd1f91..bda62e0 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -566,7 +566,7 @@ fman_finish(void) /* release the mapping */ _errno = munmap(__if->ccsr_map, __if->regs_size); if (unlikely(_errno < 0)) - fprintf(stderr, "%s:%hu:%s(): munmap() = %d (%s)\n", + fprintf(stderr, "%s:%d:%s(): munmap() = %d (%s)\n", __FILE__, __LINE__, __func__, -errno, strerror(errno)); printf("Tearing down %s\n", __if->node_path); diff --git a/drivers/bus/dpaa/base/fman/netcfg_layer.c b/drivers/bus/dpaa/base/fman/netcfg_layer.c index 24186c9..3e956ce 100644 --- a/drivers/bus/dpaa/base/fman/netcfg_layer.c +++ b/drivers/bus/dpaa/base/fman/netcfg_layer.c @@ -76,22 +76,6 @@ dump_netcfg(struct netcfg_info *cfg_ptr) } #endif /* RTE_LIBRTE_DPAA_DEBUG_DRIVER */ -static inline int -get_num_netcfg_interfaces(char *str) -{ - char *pch; - uint8_t count = 0; - - if (str == NULL) - return -EINVAL; - pch = strtok(str, ","); - while (pch != NULL) { - count++; - pch = strtok(NULL, ","); - } - return count; -} - struct netcfg_info * netcfg_acquire(void) { -- 2.7.4