From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by kanga.kvack.org (Postfix) with ESMTP id 6F04B6B0005 for ; Thu, 11 Aug 2016 01:42:54 -0400 (EDT) Received: by mail-pa0-f72.google.com with SMTP id pp5so106281509pac.3 for ; Wed, 10 Aug 2016 22:42:54 -0700 (PDT) Received: from mga03.intel.com (mga03.intel.com. [134.134.136.65]) by mx.google.com with ESMTP id hp5si1363011pac.206.2016.08.10.22.42.53 for ; Wed, 10 Aug 2016 22:42:53 -0700 (PDT) Date: Thu, 11 Aug 2016 13:41:36 +0800 From: kbuild test robot Subject: [PATCH] rapidio: fix memdup_user.cocci warnings Message-ID: <20160811054136.GA58817@lkp-hsx03> References: <201608111329.drQ86SBC%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201608111329.drQ86SBC%fengguang.wu@intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Alexandre Bounine Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List drivers/rapidio/rio_cm.c:1849:7-14: WARNING opportunity for memdup_user Use memdup_user rather than duplicating its implementation This is a little bit restricted to reduce false positives Generated by: scripts/coccinelle/api/memdup_user.cocci CC: Alexandre Bounine Signed-off-by: Fengguang Wu --- 0 files changed rule starting on line 17: position variables or mixed modifs interfere with comm_assoc isobool ( ( ( (unknown *to == NULL) >>> IS_ERR(rule starting on line 17:to) | !unknown *to >>> IS_ERR(rule starting on line 17:to) ) | (unknown *NULL == unknown *to) >>> IS_ERR(rule starting on line 17:to) ) || ...) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org