Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3420162ybl; Sun, 2 Feb 2020 23:28:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzpcchtnqI3/KK3WYmLUmICFzjCcy974QjXdfYdVuhx2ALD1rLWEBauqrEQaZjhjkboY4Yh X-Received: by 2002:a9d:7f81:: with SMTP id t1mr15821234otp.95.1580714892472; Sun, 02 Feb 2020 23:28:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580714892; cv=none; d=google.com; s=arc-20160816; b=D9iDQVHT42veC+mP9eBxjvFVykqQ2KAmHtYI5f6EPIc4FhW6Bu5/qljAiXpSK7hnss nLm1HEYC5fPQYjzrL+DEQcQP86rXwYOxaY3dF1QvWM1MA90k+QQmJ/sTfc+x+eBS8Gn4 ++Esi2hIJsiSRpurI/YV4iR1nl69vK9LCuuaaL8AjjQabWyvHZPPY8R7WsqK+IROiv2U M0u2hJvQco+58ydbjEiRELXdYETiBPWitKX91xmhLQPkb5SDkOFLpMEKxxoCJSYjQNWv HYm41o5WKjLzV6ltVAhrBJubid23QjkUeIOMDKsWrs3/NG4MEE4noINdTMa58MixGbOa 9Psg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9+d8qo+ozrdIsUrp0JA0FSHTVynWI7Z+f0PmdYzfqFc=; b=WHhOSxskFabLU4vB8OZSL/6d22/9Tf2ppV6RvZ//mOoxDYdLPr3uXK1PN5RLx5TV2S 2WvP/lUq3sryP+O9MEe7RehFoEQAYE62sX1pkOMOEPGzNerIVlu0xUEXmIJo1DRucFVa RlbtCbBf6LDkQjEYInevc7DSgPMgFlXc556jglozjPl9O1sEYf1VjEQARhFTpSbMPXcK wfcuumgDWgbkhppkvt6EMg5uko5b2DShHK+z/bMGEetN2TydPKwZcu4zfok2B0Gzmf3t kD1Ah3TthfPC6UPZPT4AxRHIGZLFcedq9Q8eugr11TIJPggQ4BeuOkLtyBSTupEFd3y+ NiQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si8027780otr.265.2020.02.02.23.27.58; Sun, 02 Feb 2020 23:28:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbgBCFMj (ORCPT + 99 others); Mon, 3 Feb 2020 00:12:39 -0500 Received: from mga09.intel.com ([134.134.136.24]:65101 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgBCFMi (ORCPT ); Mon, 3 Feb 2020 00:12:38 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Feb 2020 21:12:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,396,1574150400"; d="scan'208";a="278639647" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 02 Feb 2020 21:12:33 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1iyU2D-00040h-80; Mon, 03 Feb 2020 13:12:33 +0800 Date: Mon, 3 Feb 2020 13:11:49 +0800 From: kbuild test robot To: Dan Carpenter Cc: kbuild-all@lists.01.org, Greg Kroah-Hartman , Ajay Gupta , "David S. Miller" , "Rafael J. Wysocki" , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , Steve Glendinning , Jassi Brar , Ilias Apalodimas , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Dmitry Torokhov , Andy Shevchenko , Sakari Ailus , Heikki Krogerus , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net] device property: change device_get_phy_mode() to prevent signedess bugs Message-ID: <202002031247.fhmzF9z1%lkp@intel.com> References: <20200131045953.wbj66jkvijnmf5s2@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200131045953.wbj66jkvijnmf5s2@kili.mountain> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net/master] [also build test WARNING on driver-core/driver-core-testing linus/master v5.5 next-20200131] [cannot apply to sparc-next/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Dan-Carpenter/device-property-change-device_get_phy_mode-to-prevent-signedess-bugs/20200203-043126 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git b7c3a17c6062701d97a0959890a2c882bfaac537 reproduce: # apt-get install sparse # sparse version: v0.6.1-154-g1dc00f87-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) arch/x86/boot/compressed/cmdline.c:5:20: sparse: sparse: multiple definitions for function 'set_fs' >> arch/x86/include/asm/uaccess.h:29:20: sparse: the previous one is here arch/x86/boot/compressed/../cmdline.c:28:5: sparse: sparse: symbol '__cmdline_find_option' was not declared. Should it be static? arch/x86/boot/compressed/../cmdline.c:100:5: sparse: sparse: symbol '__cmdline_find_option_bool' was not declared. Should it be static? vim +29 arch/x86/include/asm/uaccess.h ca23386216b9d4 include/asm-x86/uaccess.h Glauber Costa 2008-06-13 27 13d4ea097d18b4 arch/x86/include/asm/uaccess.h Andy Lutomirski 2016-07-14 28 #define get_fs() (current->thread.addr_limit) 5ea0727b163cb5 arch/x86/include/asm/uaccess.h Thomas Garnier 2017-06-14 @29 static inline void set_fs(mm_segment_t fs) 5ea0727b163cb5 arch/x86/include/asm/uaccess.h Thomas Garnier 2017-06-14 30 { 5ea0727b163cb5 arch/x86/include/asm/uaccess.h Thomas Garnier 2017-06-14 31 current->thread.addr_limit = fs; 5ea0727b163cb5 arch/x86/include/asm/uaccess.h Thomas Garnier 2017-06-14 32 /* On user-mode return, check fs is correct */ 5ea0727b163cb5 arch/x86/include/asm/uaccess.h Thomas Garnier 2017-06-14 33 set_thread_flag(TIF_FSCHECK); 5ea0727b163cb5 arch/x86/include/asm/uaccess.h Thomas Garnier 2017-06-14 34 } ca23386216b9d4 include/asm-x86/uaccess.h Glauber Costa 2008-06-13 35 :::::: The code at line 29 was first introduced by commit :::::: 5ea0727b163cb5575e36397a12eade68a1f35f24 x86/syscalls: Check address limit on user-mode return :::::: TO: Thomas Garnier :::::: CC: Thomas Gleixner --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation