From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9690AC4646D for ; Mon, 13 Aug 2018 09:27:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C00E21763 for ; Mon, 13 Aug 2018 09:27:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3C00E21763 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728920AbeHMMIh (ORCPT ); Mon, 13 Aug 2018 08:08:37 -0400 Received: from exmail.andestech.com ([59.124.169.137]:6183 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbeHMMIh (ORCPT ); Mon, 13 Aug 2018 08:08:37 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w7D9PjZ4066542; Mon, 13 Aug 2018 17:25:45 +0800 (GMT-8) (envelope-from zong@andestech.com) Received: from atcsqa06.andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Mon, 13 Aug 2018 17:27:01 +0800 From: Zong Li To: , , CC: , Zong Li Subject: [PATCH 0/3] Fix get_user and put_user pointer issue Date: Mon, 13 Aug 2018 17:26:50 +0800 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w7D9PjZ4066542 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches fix the issue of expand macro with pointer argument, clean up the coding style and refactor the macro by extracting the checking and getting pointer to another macro definition. Zong Li (3): nds32: Fix get_user/put_user macro expand pointer problem nds32: Clean up the coding style nds32: Extract the checking and getting pointer to a macro arch/nds32/include/asm/uaccess.h | 229 ++++++++++++++++++++------------------- 1 file changed, 119 insertions(+), 110 deletions(-) -- 2.7.4