From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] lightnvm: fix memdup_user.cocci warnings Date: Wed, 28 Oct 2015 00:15:54 +0800 Message-ID: <20151027161554.GA3884@lkp-ib03> References: <201510280028.QgqMel7f%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kbuild-all@01.org, axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, hch@infradead.org, jg@lightnvm.io, Stephen.Bates@pmcs.com, keith.busch@intel.com, Matias =?iso-8859-1?Q?Bj=F8rling?= To: Matias =?iso-8859-1?Q?Bj=F8rling?= Return-path: Content-Disposition: inline In-Reply-To: <1445957719-5368-2-git-send-email-m@bjorling.me> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org drivers/lightnvm/core.c:657:8-15: 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: Matias Bj=F8rling 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 =3D=3D NULL) >>> IS_ERR(rule starting on line 17:to) | !unknown *to >>> IS_ERR(rule starting on line 17:to) ) | (unknown *NULL =3D=3D unknown *to) >>> IS_ERR(rule starting on line 17:to) ) || ...)