{"id":811948,"url":"http://patchwork.ozlabs.org/api/patches/811948/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170909104746.5948-6-robdclark@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170909104746.5948-6-robdclark@gmail.com>","list_archive_url":null,"date":"2017-09-09T10:47:43","name":"[U-Boot,v2,5/5] examples: add fallback memcpy","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"19c9b48a2230bb648cdd49a90dee28e9453eafad","submitter":{"id":18760,"url":"http://patchwork.ozlabs.org/api/people/18760/?format=json","name":"Rob Clark","email":"robdclark@gmail.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170909104746.5948-6-robdclark@gmail.com/mbox/","series":[{"id":2341,"url":"http://patchwork.ozlabs.org/api/series/2341/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=2341","date":"2017-09-09T10:47:38","name":"vsprintf and short-wchar","version":2,"mbox":"http://patchwork.ozlabs.org/series/2341/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/811948/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/811948/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"cvOrvSSD\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xq9wM1yHFz9s7h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 20:51:15 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid E86E4C21E3C; Sat,  9 Sep 2017 10:49:09 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A2BAEC21DDD;\n\tSat,  9 Sep 2017 10:49:03 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 229F5C21E61; Sat,  9 Sep 2017 10:48:20 +0000 (UTC)","from mail-qt0-f195.google.com (mail-qt0-f195.google.com\n\t[209.85.216.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 810E0C21E84\n\tfor <u-boot@lists.denx.de>; Sat,  9 Sep 2017 10:48:17 +0000 (UTC)","by mail-qt0-f195.google.com with SMTP id 7so2925177qtz.3\n\tfor <u-boot@lists.denx.de>; Sat, 09 Sep 2017 03:48:17 -0700 (PDT)","from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\tj7sm2569019qth.25.2017.09.09.03.48.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 09 Sep 2017 03:48:15 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Rdg9/hkE5o4h1/7oVhGAmukMvvQ3sFXCg/lDtoVoh9U=;\n\tb=cvOrvSSD6rhCuYFtFijd/cQvSri7Dn6hjISzaps9MrWVonKTrwqlvNwDvx2Kk3QYfQ\n\tWUoR8oYQpd4NzgxCKNNey4fqEUs7AbsDFBUgdIMZGLtT17n5dALewN+DFLTUPAKYKCbu\n\tGbHV2kzswG0GgJOh7/kzvuhVSTmZw+Ej3hSwcxGMh6kudABPatHVSwv7tyK7iEtxR5Zd\n\trXs0iyKJipnvdy3A/ho5laKLMttZOk5q+/jtVh90V+b0FXNWCBtZi9urN/Fvvx1zxIrU\n\tBy4GPztgewfCNV0FPgOfTVAVWKK4nzeUap9UkootbOJmhDH1gsnSg3iocTeQyMjk5vj9\n\tQwzw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Rdg9/hkE5o4h1/7oVhGAmukMvvQ3sFXCg/lDtoVoh9U=;\n\tb=Fj3QzcDJNd763vYFBGMdfL4h9Uovy2g5pY2hfd+XEj/X/yJXzG3U3LOuUAdyKNTGOp\n\tEukpDMZxBm47J8YO2AL6/HUGvjJFAOo6ytshexpFllnB7ia/OZ34F6a+rlEkU923HPdO\n\tK71PALOTs5qW0WzUAPndTe5tOKKmMgRMkaDFVmE+7p0lEZQu/3sLrV1oP+cnt3Dz8pP1\n\tBjO8dFnfV0MyZH4sBJu9oOsYAXw+sDTKFIFQibMe0g1Pabq+6Lfe+rvHgc/fF4IjA5Q2\n\tjbEg19H0oOnuHk2UnzMoT2zSm/WsbYF1RlNxCpX9NdYV2pQque63bGLYKhIZvg3U+Syh\n\t2lrw==","X-Gm-Message-State":"AHPjjUgTfELtOodI8mSzWbocOI3qibCQ3vaQX534OL1HTqCEBwxChc8L\n\tdTJN04GCE05Z7FbJNA8=","X-Google-Smtp-Source":"AOwi7QChdSUZ5E1rg0JzHmaWOVSoFnjSaMhUcFMQYedE2ZBRro/6HflPieVpgB+3+hK8Vx3NttoCDQ==","X-Received":"by 10.237.49.100 with SMTP id 91mr7582495qtg.279.1504954096237; \n\tSat, 09 Sep 2017 03:48:16 -0700 (PDT)","From":"Rob Clark <robdclark@gmail.com>","To":"U-Boot Mailing List <u-boot@lists.denx.de>","Date":"Sat,  9 Sep 2017 06:47:43 -0400","Message-Id":"<20170909104746.5948-6-robdclark@gmail.com>","X-Mailer":"git-send-email 2.13.5","In-Reply-To":"<20170909104746.5948-1-robdclark@gmail.com>","References":"<20170909104746.5948-1-robdclark@gmail.com>","Cc":"Heinrich Schuchardt <xypron.glpk@gmx.de>","Subject":"[U-Boot] [PATCH v2 5/5] examples: add fallback memcpy","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"Solves build issue:\n\n  Building current source for 134 boards (12 threads, 1 job per thread)\n         arm:  +   lsxhl\n  +examples/api/vsprintf.o: In function `string16':\n  +lib/vsprintf.c:278: undefined reference to `memcpy'\n  +examples/api/uuid.o: In function `uuid_bin_to_str':\n  +lib/uuid.c:197: undefined reference to `memcpy'\n  +lib/uuid.c:199: undefined reference to `memcpy'\n  +make[3]: *** [examples/api/demo] Error 1\n  +make[2]: *** [examples/api] Error 2\n  +make[1]: *** [examples] Error 2\n  +make: *** [sub-make] Error 2\n    133    0    1 /134    sheevaplug\n\nSigned-off-by: Rob Clark <robdclark@gmail.com>\n---\n examples/api/glue.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)","diff":"diff --git a/examples/api/glue.c b/examples/api/glue.c\nindex 8aabf32c89..575c1e55f3 100644\n--- a/examples/api/glue.c\n+++ b/examples/api/glue.c\n@@ -416,3 +416,15 @@ void ub_display_clear(void)\n {\n \tsyscall(API_DISPLAY_CLEAR, NULL);\n }\n+\n+__weak void *memcpy(void *dest, const void *src, size_t size)\n+{\n+\tunsigned char *dptr = dest;\n+\tconst unsigned char *ptr = src;\n+\tconst unsigned char *end = src + size;\n+\n+\twhile (ptr < end)\n+\t\t*dptr++ = *ptr++;\n+\n+\treturn dest;\n+}\n","prefixes":["U-Boot","v2","5/5"]}