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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3B19C433F5 for ; Fri, 7 Jan 2022 14:15:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7CB646B0071; Fri, 7 Jan 2022 09:15:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 779826B0073; Fri, 7 Jan 2022 09:15:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 668B46B0074; Fri, 7 Jan 2022 09:15:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 593206B0071 for ; Fri, 7 Jan 2022 09:15:05 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 01DDE90F68 for ; Fri, 7 Jan 2022 14:15:05 +0000 (UTC) X-FDA: 79003687770.07.774AF9D Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf16.hostedemail.com (Postfix) with ESMTP id 395DA180011 for ; Fri, 7 Jan 2022 14:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641564904; x=1673100904; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QGn+yGeVoCBsRYC4Z0Q2iIHTyTv3rgfF0gDAaX5K5mc=; b=faVnyB5lEZd/1F3GJhvYBYOgH6n8UpEb6sDLR7PR7m/xdHtLCTQkXyVP qukgtK6NJd2gCkbnamPwtus/DkYyAKXMy4hsOFcriGbOWcUIWZ96Cc3eb 4NdCPgcGxIO3cq7p3KQfYZgCpIMnrRPA/cHMF06bKYwQEs/e1/uQueeH2 6MYnfvzrMF081pRU6RxhGXuwxrASxkBDVHvs97ue6dMSleMCcI2OJUWY6 0PmdfzDAhO0yGvX9TgT5HEUK1XUKg4Q9Q6TDMMfMl4QqdBBH6lnSVCZim lQCGQ4GEPI/su+AWJ9mwWpPnTpreqozN0sI6ygR/lAoQceg4kAgcGhfPt A==; X-IronPort-AV: E=McAfee;i="6200,9189,10219"; a="223568637" X-IronPort-AV: E=Sophos;i="5.88,270,1635231600"; d="scan'208";a="223568637" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2022 06:15:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,270,1635231600"; d="scan'208";a="489297945" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 07 Jan 2022 06:14:59 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n5q1C-000Ika-TU; Fri, 07 Jan 2022 14:14:58 +0000 Date: Fri, 7 Jan 2022 22:14:46 +0800 From: kernel test robot To: Hongchen Zhang , Marco Elver , Andrew Morton , "Eric W. Biederman" , "Peter Zijlstra (Intel)" , Thomas Gleixner , Al Viro , Ye Guojin , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List Subject: Re: [PATCH] signal: strict valid signal check Message-ID: <202201072220.gCthUkw6-lkp@intel.com> References: <1641530757-3835-1-git-send-email-zhanghongchen@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1641530757-3835-1-git-send-email-zhanghongchen@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 395DA180011 X-Stat-Signature: q9yzqnhou6ukrpba9wo49k4nz6fp4ro4 Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=faVnyB5l; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf16.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=lkp@intel.com X-HE-Tag: 1641564903-48226 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Hongchen, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux/master] [also build test ERROR on linus/master hnaz-mm/master v5.16-rc8 next-20220106] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Hongchen-Zhang/signal-strict-valid-signal-check/20220107-124756 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 136057256686de39cc3a07c2e39ef6bc43003ff6 config: hexagon-randconfig-r041-20220107 (https://download.01.org/0day-ci/archive/20220107/202201072220.gCthUkw6-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 32167bfe64a4c5dd4eb3f7a58e24f4cba76f5ac2) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/d6ab2033eb509bf064e07f58074e58562098dfcc git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Hongchen-Zhang/signal-strict-valid-signal-check/20220107-124756 git checkout d6ab2033eb509bf064e07f58074e58562098dfcc # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/tty/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/tty/tty_io.c:71: >> include/linux/signal.h:277:16: error: implicit declaration of function 'min' [-Werror,-Wimplicit-function-declaration] return sig <= min(_NSIG, 127) ? 1 : 0; ^ 1 error generated. vim +/min +277 include/linux/signal.h 269 270 /* Test if 'sig' is valid signal. Use this instead of testing _NSIG directly */ 271 static inline int valid_signal(unsigned long sig) 272 { 273 /* max usable signal number is limited by both _NSIG and task's 274 * exit_code, and the max available signal number encoded in 275 * task's exit_code is 127. 276 */ > 277 return sig <= min(_NSIG, 127) ? 1 : 0; 278 } 279 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org