Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753796AbbFWAb3 (ORCPT ); Mon, 22 Jun 2015 20:31:29 -0400 Received: from mail-bl2on0139.outbound.protection.outlook.com ([65.55.169.139]:2884 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752704AbbFWAbU (ORCPT ); Mon, 22 Jun 2015 20:31:20 -0400 Authentication-Results: c-s.fr; dkim=none (message not signed) header.d=none; Message-ID: <1435019470.2818.2.camel@freescale.com> Subject: Re: [PATCH 1/2] powerpc32: checksum_wrappers_64 becomes checksum_wrappers From: Scott Wood To: Christophe Leroy CC: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , , , "Joakim Tjernlund" Date: Mon, 22 Jun 2015 19:31:10 -0500 In-Reply-To: <0636b88c7d11acb6a4d638e39bfcbb98c1d86045.1434978970.git.christophe.leroy@c-s.fr> References: <0636b88c7d11acb6a4d638e39bfcbb98c1d86045.1434978970.git.christophe.leroy@c-s.fr> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BLUPR17CA0056.namprd17.prod.outlook.com (25.162.85.152) To CY1PR03MB1488.namprd03.prod.outlook.com (25.163.17.18) X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;2:zjBaYxNWPJrHA8OvHjQvjTI8aTk+SrT5tiwitM3WNWOXz6t1HJaSkNu93jhfo9u0;3:t9UyN8lrWQa14cBiStSjA9FpZY2oIR/uflZUzdtW8LunoLYjLG7TNkKvcYuXeWma6AbsiivkUzlPVZxf7HAiUToMedltszV4xQaSIWLs+ZWJmYUlUjBVfOIqBZ4mTYMRyi/NvA/RGmAbbyP4vniGpA==;20:lrSZnGQm7rQXZtAv4t/tLvI7TwJeuZIjq3h0Qss69Z7g4mQ6WbJCUXTd1iCVF0lCR7AvtsBDh2E9LULu20bswLBAWWo7kC4lhIGZQIfT3nay7zoReg5J18kqKtQ/KakxiYfbWqskEpigw6jZ5V5xBLoS4a2fvHQD3COXXou+jNUAiWGVh2KrAVQUbk8kPdEtUy9/GttoPR729qgGYXRgK/PBqjEfZlq+DyX1jpXSf91Kkano1jS75XBeVzPOlgTc/raZAWvK7sZzDfIWCiDqtgFYoC3uMpMqUNIHgYWkWLfqZPrR3gCIAs1QqVxHBdLUzRr7pDJiEdrmqC6i+GnUurJEvKvlV4Jo3ldrJdJ20ZqYqAKE9O5NYgFDs39PwXhfsNI3ZnlP/G9EORLArr+L07yWbM+W8FvIIzsEPQWz6PnaCHFx7zKF8G690ySxv304GNgRSO92BQCIIW9dtuSeEE1ioKoNsWyyIgWvuutQq+nhtwJSXgz/vR0D6Ig7Avth X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1488; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR03MB1488;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1488; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;4:VVxRQtuLOwAsNgE5Gi2sOuhBocHyxWuJb3JdGGKf4W52ueW2hwXBbhdl637ohi5yGfcoj0jUbsuVoeyWk0IY8d3H6DUhYI3pTuaOLMGdzliszUkrsdXcHgTnbUmkK4dpq13hsV6GYe84V6cbUqufjykPoiBjBsxrFCBEXUFIymNPiRgPuL9y9z18tk6xfDWwdRDVLMXZ1diB9IMd8776VZ+Sn0no5d5VtQPn7TV244baslvgROfjhXphGDX1TO2TXWf2+ZZeUidViFn6a1RhkzW7ofKYhqPJF7tV8a8gmrw= X-Forefront-PRVS: 06167FAD59 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(51704005)(377424004)(50986999)(122386002)(103116003)(40100003)(33646002)(50226001)(77096005)(19580405001)(86362001)(42186005)(23676002)(50466002)(5001920100001)(92566002)(189998001)(5001960100002)(110136002)(62966003)(77156002)(36756003)(46102003)(76176999)(5820100001)(47776003)(2950100001)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1488;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;23:llngcCuw34QZe7OerazljQipJKTd6xLI0gHtkB9FUQl7TLgtIh2h7N8ad0pRgayQGTtTuMbkqzo7onx3X+0kAlzeUEz3uxm4AGZbUoLTuzdIVkVipyw9v2vJQzv/dc8y3ijMxu/tbLOHFSjk8CBUECGIv2PtAyunEoookgWVlI2/RC/XohiAl3srwoWEFXCHKXwnWxOgsWIzwgL1JnNG2cJIiQ0cJ6wPXv2z8ZAVLhFRhSI/InLk76HK/LKxbnCxMfnJQefrEORCZ4SJhbUUai74KLPbKx4/znUljlouoGpzd6bp+wtuNKt1BAf3JWNJBBGJOU86gCiWPs6rLyBoDQKC4wnufCZquLpeS4fb5DvXmGY4Hq9e2py5MFLrTMy11YmJmkcW+3YfzbdBgnHRhp6UfIczNtf65xSZ3APX3n2HHxo/YdbvVaSC8C0yibyvqaBp9ahRDXLcelV7yl5POc/l90MXEBUHtEPoX4d7kPS7YIXKHB/phoFvg8EIPBU7K7dfEgkg4f9SEp4u4ckOOuKaSlraZgZSV7bSf98ZiAnCcb7PrCytKONdTgeSToVAQRSylta3Q4308DWdQLmfozz5Kktu3mfeJcsmtJ6e/XAozg0dmLh9DFPgZ+/1ZjnxMiQmbvJkl/amLm8A1/BSamrO//iIAIcTG6hjdEaFnP7+irMAKZF6OuqDzu54IPKAaM8HlxpyTFaduVYVirP9AW7XNAYgwumMaAA2Fz7gS3Hx4XpefQ/w0f8JOpkChyTF5jydkGdwK5J91rNTsc6LrXwk/rIsEBlAJ7MjYReCqonkj2AgNmPvRvQu/StctqEoyuvUzvOViIyPZW6oQwl7+g== X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;5:A/oTt2ixfl5TtTw2ZtIZvrU/LTrCrekbzMrVYwRgr7q+OCFQqnjpChdoNjXjxsdZsNo3iDgEEmr2jVOxLryT1Zxawyen6ja4+MuZcm9m5dndDNbBSrw60sM0l+Cp4rTSB1CI5GBtrKACbTLrK1sgLw==;24:wi24a9ZTBMhmZ7g3vLll1haYO4DRud+8PnyxHE4e2TNDQy5L4t7EziK4wk63BB8JpKsseW2Z8maXYetidSlEE/lVlUzS1qUzVDJL9iJCd7o=;20:f2ZtEog2UytK/i7rH3jAxBP9SI6oBPGEiSloPgL9Ge+s4hC5s2k4O9Fqiu0hD54ZUfkZYqPkJKPRwXl6fh8nig== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2015 00:31:17.6557 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1488 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 Lines: 32 On Mon, 2015-06-22 at 19:01 +0200, Christophe Leroy wrote: > The powerpc64 checksum wrapper functions adds the > csum_and_copy_to_user() which > otherwise is implemented in include/net/checksum.h by using > csum_partial() then > copy_to_user() > > Those two wrapper fonctions are also applicable to powerpc32 as it > is based on > the use of csum_partial_copy_generic() which also exists on powerpc32 > > This patch renames arch/powerpc/lib/checksum_wrappers_64.c to > arch/powerpc/lib/checksum_wrappers.c and > makes it non-conditional to CONFIG_WORD_SIZE > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/checksum.h | 9 --- > arch/powerpc/lib/Makefile | 3 +- > arch/powerpc/lib/checksum_wrappers.c | 102 > ++++++++++++++++++++++++++++++++ > arch/powerpc/lib/checksum_wrappers_64.c | 102 ---------------------- > ---------- Please pass "-M -C" to git format-patch so we can see if anything changed while being moved. -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/