Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/27962/?format=api
http://patches.dpdk.org/api/patches/27962/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1503658183-4078-8-git-send-email-hemant.agrawal@nxp.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1503658183-4078-8-git-send-email-hemant.agrawal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1503658183-4078-8-git-send-email-hemant.agrawal@nxp.com", "date": "2017-08-25T10:49:23", "name": "[dpdk-dev,07/27] bus/fslmc: cleanup compat file", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "566645b4defcae4d6be175cfaba95b1851d4c6eb", "submitter": { "id": 477, "url": "http://patches.dpdk.org/api/people/477/?format=api", "name": "Hemant Agrawal", "email": "hemant.agrawal@nxp.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1503658183-4078-8-git-send-email-hemant.agrawal@nxp.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/27962/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/27962/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 6E065913D;\n\tFri, 25 Aug 2017 12:50:21 +0200 (CEST)", "from NAM03-BY2-obe.outbound.protection.outlook.com\n\t(mail-by2nam03on0058.outbound.protection.outlook.com [104.47.42.58])\n\tby dpdk.org (Postfix) with ESMTP id 9A5B7910B\n\tfor <dev@dpdk.org>; Fri, 25 Aug 2017 12:50:16 +0200 (CEST)", "from CY4PR03CA0092.namprd03.prod.outlook.com (10.171.242.161) by\n\tCO2PR03MB2261.namprd03.prod.outlook.com (10.166.92.142) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.1.1385.9; Fri, 25 Aug 2017 10:50:15 +0000", "from BN1AFFO11FD044.protection.gbl (2a01:111:f400:7c10::143) by\n\tCY4PR03CA0092.outlook.office365.com (2603:10b6:910:4d::33) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18\n\tvia Frontend Transport; Fri, 25 Aug 2017 10:50:14 +0000", "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBN1AFFO11FD044.mail.protection.outlook.com (10.58.52.191) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15\n\tvia Frontend Transport; Fri, 25 Aug 2017 10:50:14 +0000", "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n\t[10.232.134.28])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tv7PAnw6B032070; Fri, 25 Aug 2017 03:50:12 -0700" ], "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed)\n\theader.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;", "Received-SPF": "Fail (protection.outlook.com: domain of nxp.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;", "From": "Hemant Agrawal <hemant.agrawal@nxp.com>", "To": "<ferruh.yigit@intel.com>", "CC": "<dev@dpdk.org>, <shreyansh.jain@nxp.com>", "Date": "Fri, 25 Aug 2017 16:19:23 +0530", "Message-ID": "<1503658183-4078-8-git-send-email-hemant.agrawal@nxp.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com>", "References": "<1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com>", "X-EOPAttributedMessage": "0", "X-Matching-Connectors": "131481318145681188;\n\t(91ab9b29-cfa4-454e-5278-08d120cd25b8); ()", "X-Forefront-Antispam-Report": "CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(498600001)(86362001)(76176999)(50986999)(104016004)(105606002)(189998001)(106466001)(53936002)(2351001)(36756003)(68736007)(33646002)(54906002)(85426001)(110136004)(77096006)(5003940100001)(47776003)(626005)(2950100002)(6666003)(6916009)(4326008)(97736004)(2906002)(305945005)(50466002)(8936002)(81156014)(8676002)(356003)(81166006)(50226002)(5660300001)(48376002)(8656003);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2261;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; ", "X-Microsoft-Exchange-Diagnostics": [ "1; BN1AFFO11FD044;\n\t1:x9vMs9Dl/c7QC5bCwUx196H8gPg2h+wsnEKXL49aY9SjW2Tz4xnLKqQArD3vPylPLM47adAJ8vxiYdBrI+jZzH98rlROC+N+QeimgcGygeXeL7ybvBzQS5vibtICqKQZ", "1; CO2PR03MB2261;\n\t3:eyRoSVXsqHa329LKlHpROflriG3fEtldBW1bXgAS4nukXmnUKr2kQPz8AqEf9WW98KBv4Tqx2c6OS5xXlR7iUPvrEbaEIM7jhBgGVCWDyuYycE/CUs78OnvxruGolqA4K1LXpG1tAtuSVMDizUnzsRwi5kg6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plain", "X-MS-PublicTrafficType": "Email", "X-MS-Office365-Filtering-Correlation-Id": "946ffb34-48c3-4da5-6724-08d4eba71123", "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:CO2PR03MB2261; ", "X-MS-TrafficTypeDiagnostic": "CO2PR03MB2261:", "X-Exchange-Antispam-Report-Test": "UriScan:(185117386973197);", "X-Microsoft-Antispam-PRVS": "<CO2PR03MB2261ADBFCAB6E48C35EF68B0899B0@CO2PR03MB2261.namprd03.prod.outlook.com>", "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(13018025)(13016025)(5005006)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:CO2PR03MB2261; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:CO2PR03MB2261; ", "X-Forefront-PRVS": "041032FF37", "SpamDiagnosticOutput": "1:99", "SpamDiagnosticMetadata": "NSPM", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "25 Aug 2017 10:50:14.3965\n\t(UTC)", "X-MS-Exchange-CrossTenant-Id": "5afe0b00-7697-4969-b663-5eab37d5f47e", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;\n\tIp=[192.88.168.50]; \n\tHelo=[tx30smr01.am.freescale.net]", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CO2PR03MB2261", "Subject": "[dpdk-dev] [PATCH 07/27] bus/fslmc: cleanup compat file", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/bus/fslmc/qbman/include/compat.h | 187 +------------------------------\n drivers/bus/fslmc/qbman/qbman_private.h | 2 +-\n 2 files changed, 3 insertions(+), 186 deletions(-)", "diff": "diff --git a/drivers/bus/fslmc/qbman/include/compat.h b/drivers/bus/fslmc/qbman/include/compat.h\nindex 7b69fd1..528441f 100644\n--- a/drivers/bus/fslmc/qbman/include/compat.h\n+++ b/drivers/bus/fslmc/qbman/include/compat.h\n@@ -65,16 +65,9 @@\n */\n \n /* Required compiler attributes */\n-#define __user\n #define likely(x)\t__builtin_expect(!!(x), 1)\n #define unlikely(x)\t__builtin_expect(!!(x), 0)\n #define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES)))\n-#undef container_of\n-#define container_of(ptr, type, member) ({ \\\n-\t\ttypeof(((type *)0)->member)(*__mptr) = (ptr); \\\n-\t\t(type *)((char *)__mptr - offsetof(type, member)); })\n-#define __stringify_1(x) #x\n-#define __stringify(x)\t__stringify_1(x)\n \n #ifdef ARRAY_SIZE\n #undef ARRAY_SIZE\n@@ -88,17 +81,8 @@ typedef uint32_t\tu32;\n typedef uint64_t\tu64;\n typedef uint64_t\tdma_addr_t;\n typedef cpu_set_t\tcpumask_t;\n-typedef\tu32\t\tcompat_uptr_t;\n-\n-static inline void __user *compat_ptr(compat_uptr_t uptr)\n-{\n-\treturn (void __user *)(unsigned long)uptr;\n-}\n-\n-static inline compat_uptr_t ptr_to_compat(void __user *uptr)\n-{\n-\treturn (u32)(unsigned long)uptr;\n-}\n+typedef unsigned int\tgfp_t;\n+typedef uint32_t\tphandle;\n \n /* I/O operations */\n static inline u32 in_be32(volatile void *__p)\n@@ -128,8 +112,6 @@ static inline void out_be32(volatile void *__p, u32 val)\n #undef pr_debug\n #endif\n #define pr_debug(fmt, args...) {}\n-#define might_sleep_if(c) {}\n-#define msleep(x) {}\n #define WARN_ON(c, str) \\\n do { \\\n \tstatic int warned_##__LINE__; \\\n@@ -147,103 +129,20 @@ do { \\\n \n #define ALIGN(x, a) (((x) + ((typeof(x))(a) - 1)) & ~((typeof(x))(a) - 1))\n \n-/****************/\n-/* Linked-lists */\n-/****************/\n-\n-struct list_head {\n-\tstruct list_head *prev;\n-\tstruct list_head *next;\n-};\n-\n-#define LIST_HEAD(n) \\\n-struct list_head n = { \\\n-\t.prev = &n, \\\n-\t.next = &n \\\n-}\n-\n-#define INIT_LIST_HEAD(p) \\\n-do { \\\n-\tstruct list_head *__p298 = (p); \\\n-\t__p298->next = __p298; \\\n-\t__p298->prev = __p298->next; \\\n-} while (0)\n-#define list_entry(node, type, member) \\\n-\t(type *)((void *)node - offsetof(type, member))\n-#define list_empty(p) \\\n-({ \\\n-\tconst struct list_head *__p298 = (p); \\\n-\t((__p298->next == __p298) && (__p298->prev == __p298)); \\\n-})\n-#define list_add(p, l) \\\n-do { \\\n-\tstruct list_head *__p298 = (p); \\\n-\tstruct list_head *__l298 = (l); \\\n-\t__p298->next = __l298->next; \\\n-\t__p298->prev = __l298; \\\n-\t__l298->next->prev = __p298; \\\n-\t__l298->next = __p298; \\\n-} while (0)\n-#define list_add_tail(p, l) \\\n-do { \\\n-\tstruct list_head *__p298 = (p); \\\n-\tstruct list_head *__l298 = (l); \\\n-\t__p298->prev = __l298->prev; \\\n-\t__p298->next = __l298; \\\n-\t__l298->prev->next = __p298; \\\n-\t__l298->prev = __p298; \\\n-} while (0)\n-#define list_for_each(i, l)\t\t\t\t\\\n-\tfor (i = (l)->next; i != (l); i = i->next)\n-#define list_for_each_safe(i, j, l)\t\t\t\\\n-\tfor (i = (l)->next, j = i->next; i != (l);\t\\\n-\t i = j, j = i->next)\n-#define list_for_each_entry(i, l, name) \\\n-\tfor (i = list_entry((l)->next, typeof(*i), name); &i->name != (l); \\\n-\t\ti = list_entry(i->name.next, typeof(*i), name))\n-#define list_for_each_entry_safe(i, j, l, name) \\\n-\tfor (i = list_entry((l)->next, typeof(*i), name), \\\n-\t\tj = list_entry(i->name.next, typeof(*j), name); \\\n-\t\t&i->name != (l); \\\n-\t\ti = j, j = list_entry(j->name.next, typeof(*j), name))\n-#define list_del(i) \\\n-do { \\\n-\t(i)->next->prev = (i)->prev; \\\n-\t(i)->prev->next = (i)->next; \\\n-} while (0)\n-\n /* Other miscellaneous interfaces our APIs depend on; */\n-\n #define lower_32_bits(x) ((u32)(x))\n #define upper_32_bits(x) ((u32)(((x) >> 16) >> 16))\n \n /* Compiler/type stuff */\n-typedef unsigned int\tgfp_t;\n-typedef uint32_t\tphandle;\n \n #define __iomem\n-#define EINTR\t\t4\n-#define ENODEV\t\t19\n #define GFP_KERNEL\t0\n #define __raw_readb(p)\t(*(const volatile unsigned char *)(p))\n #define __raw_readl(p)\t(*(const volatile unsigned int *)(p))\n #define __raw_writel(v, p) {*(volatile unsigned int *)(p) = (v); }\n \n-/* Completion stuff */\n-#define DECLARE_COMPLETION(n) int n = 0\n-#define complete(n) { *n = 1; }\n-#define wait_for_completion(n) \\\n-do { \\\n-\twhile (!*n) { \\\n-\t\tbman_poll(); \\\n-\t\tqman_poll(); \\\n-\t} \\\n-\t*n = 0; \\\n-} while (0)\n-\n /* Allocator stuff */\n #define kmalloc(sz, t)\tmalloc(sz)\n-#define vmalloc(sz)\tmalloc(sz)\n #define kfree(p)\t{ if (p) free(p); }\n static inline void *kzalloc(size_t sz, gfp_t __foo __rte_unused)\n {\n@@ -269,88 +168,6 @@ static inline void free_page(unsigned long p)\n \tfree((void *)p);\n }\n \n-/* Bitfield stuff. */\n-#define BITS_PER_ULONG\t(sizeof(unsigned long) << 3)\n-#define SHIFT_PER_ULONG\t(((1 << 5) == BITS_PER_ULONG) ? 5 : 6)\n-#define BITS_MASK(idx)\t((unsigned long)1 << ((idx) & (BITS_PER_ULONG - 1)))\n-#define BITS_IDX(idx)\t((idx) >> SHIFT_PER_ULONG)\n-static inline unsigned long test_bits(unsigned long mask,\n-\t\t\t\t volatile unsigned long *p)\n-{\n-\treturn *p & mask;\n-}\n-\n-static inline int test_bit(int idx, volatile unsigned long *bits)\n-{\n-\treturn test_bits(BITS_MASK(idx), bits + BITS_IDX(idx));\n-}\n-\n-static inline void set_bits(unsigned long mask, volatile unsigned long *p)\n-{\n-\t*p |= mask;\n-}\n-\n-static inline void set_bit(int idx, volatile unsigned long *bits)\n-{\n-\tset_bits(BITS_MASK(idx), bits + BITS_IDX(idx));\n-}\n-\n-static inline void clear_bits(unsigned long mask, volatile unsigned long *p)\n-{\n-\t*p &= ~mask;\n-}\n-\n-static inline void clear_bit(int idx, volatile unsigned long *bits)\n-{\n-\tclear_bits(BITS_MASK(idx), bits + BITS_IDX(idx));\n-}\n-\n-static inline unsigned long test_and_set_bits(unsigned long mask,\n-\t\t\t\t\t volatile unsigned long *p)\n-{\n-\tunsigned long ret = test_bits(mask, p);\n-\n-\tset_bits(mask, p);\n-\treturn ret;\n-}\n-\n-static inline int test_and_set_bit(int idx, volatile unsigned long *bits)\n-{\n-\tint ret = test_bit(idx, bits);\n-\n-\tset_bit(idx, bits);\n-\treturn ret;\n-}\n-\n-static inline int test_and_clear_bit(int idx, volatile unsigned long *bits)\n-{\n-\tint ret = test_bit(idx, bits);\n-\n-\tclear_bit(idx, bits);\n-\treturn ret;\n-}\n-\n-static inline int find_next_zero_bit(unsigned long *bits, int limit, int idx)\n-{\n-\twhile ((++idx < limit) && test_bit(idx, bits))\n-\t\t;\n-\treturn idx;\n-}\n-\n-static inline int find_first_zero_bit(unsigned long *bits, int limit)\n-{\n-\tint idx = 0;\n-\n-\twhile (test_bit(idx, bits) && (++idx < limit))\n-\t\t;\n-\treturn idx;\n-}\n-\n-static inline u64 div64_u64(u64 n, u64 d)\n-{\n-\treturn n / d;\n-}\n-\n #define atomic_t rte_atomic32_t\n #define atomic_read(v) rte_atomic32_read(v)\n #define atomic_set(v, i) rte_atomic32_set(v, i)\ndiff --git a/drivers/bus/fslmc/qbman/qbman_private.h b/drivers/bus/fslmc/qbman/qbman_private.h\nindex 4f48b47..32e5c5d 100644\n--- a/drivers/bus/fslmc/qbman/qbman_private.h\n+++ b/drivers/bus/fslmc/qbman/qbman_private.h\n@@ -27,7 +27,7 @@\n */\n \n /* Perform extra checking */\n-#define QBMAN_CHECKING\n+/*#define QBMAN_CHECKING*/\n \n /* To maximise the amount of logic that is common between the Linux driver and\n * other targets (such as the embedded MC firmware), we pivot here between the\n", "prefixes": [ "dpdk-dev", "07/27" ] }{ "id": 27962, "url": "