Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp302572iob; Thu, 28 Apr 2022 02:45:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyNbMyNjQg3jj2/4u1FzJVpg9J5qmb5gnR+ER/Nz8G+MFijhcpfymDg7OZAxSNh1z5WuPh X-Received: by 2002:a17:907:7252:b0:6df:75cc:615e with SMTP id ds18-20020a170907725200b006df75cc615emr31026604ejc.683.1651139116249; Thu, 28 Apr 2022 02:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651139116; cv=none; d=google.com; s=arc-20160816; b=w+cTHS6gLOeNl6YOfGa0Qf5iQbp2cPfsjtqClZdZ1CZ+IqQcXAMQVVxjXMzhZRTpKM 97NFICs8ZxQ8M6VQvh7TAaLXEA1zh+m5f8UAohYiBArJQGtQKqMzO8YY7aCWC0nAupbS bq97uLPi7LL1UcfoYew7HLtK1OP+Mf4VoCi7zHS35YFDPp+nioOFzwCLOKZs/jFH/03e VbM/FsKZnIirHu73ns9Hyr45qXRAFvL9ps/GzGjBN0U9dFjDV4lbwAfJ3qpCHwitx8bC FG5rV1U18ub+dCNw3iYaoc5cwC7qtXA1g5vXhKTZ36xN2c5m0R4SVnqWSvUp6bKBdMq8 CmSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hrCLcUqpmHs2eZ1g6y4UQh/WUm5AW/tCEdSxtiPwzuc=; b=PoLXyE85+ymd7yArdFXuBN4vwyyo2BsAXSOgQOurYFFImYDftU4xxluUvVq1B1KUoT qr9Ni5Tis3Wy6+HZkeGwia5qfGl0HFK0gqBq5b8e3thF0OYp6z7+o7ZFddPwB08dpq7j rxfHc34XqNn4qNQStv9VWqWJ6IpvUPgXG3wXvGruQcPCR0qGOJDrJ55jUfGVM594Gjkq 3F6fwCxVOzhUEyaZP6o+JRxVYql/AwICvcsS/ENlskvDYqxCwTklf0+zpAHTYyEOgYF2 9W4F4H45o9UGRDcmsl5bFBx1rx0WhqGOZjMI63btKqolkdDmCEg3rhj7pLVBjUJJrKhk kStQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Lk8R6EMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a170906191200b006e8bd9bf296si3103332eje.279.2022.04.28.02.44.52; Thu, 28 Apr 2022 02:45:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Lk8R6EMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241040AbiD1CDn (ORCPT + 99 others); Wed, 27 Apr 2022 22:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbiD1CDk (ORCPT ); Wed, 27 Apr 2022 22:03:40 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF66E5EDF2 for ; Wed, 27 Apr 2022 19:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651111226; x=1682647226; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gfb2JQKIEUIcp5WzHorLM12KqDUQGOVwvksyMLMZF0Q=; b=Lk8R6EMNq/T2vvkp7yJ0gxJgfrZxL4NLn7WDlG0605z1hsXAS9u3HIAQ Pyf0iE0PqasHleO4xfw+J78aYbQX9b2ttr3kDt6vq6D1XM4dUI15ORJzL uZE6lQwqtu797G+5b1JYjWroVDVhYarGuMZ+KRLxOf4RT6NEThvsAuf+4 gT9TTmt/jZdzzlMzVrkh1zkMG5rVuVzf7XmkudFgkG8MnKGWlGWWkfQOx edgVMT8M9kPlVRmW0yHd2uyloRNhRzqKC5ftHIsc0PnU3Y0bNfT/j8Hve iTfirdwnih2Zj/EUYjyahiZbQ6GBlu5fEHs3/TnFdUyIvOkWMDnYn5Lgm Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="246047751" X-IronPort-AV: E=Sophos;i="5.90,294,1643702400"; d="scan'208";a="246047751" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 19:00:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,294,1643702400"; d="scan'208";a="651004367" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 27 Apr 2022 19:00:24 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1njtSB-0004xq-Le; Thu, 28 Apr 2022 02:00:23 +0000 Date: Thu, 28 Apr 2022 09:59:45 +0800 From: kernel test robot To: Li kunyu , ebiederm@xmission.com, keescook@chromium.org, tglx@linutronix.de, elver@google.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, oleg@redhat.com, legion@kernel.org, linux-kernel@vger.kernel.org, Li kunyu Subject: Re: [PATCH] kernel: Optimize unused integer return values Message-ID: <202204280331.Wzldxt2P-lkp@intel.com> References: <20220427073448.10730-1-kunyu@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427073448.10730-1-kunyu@nfschina.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Li, Thank you for the patch! Yet something to improve: [auto build test ERROR on kees/for-next/pstore] [also build test ERROR on linus/master linux/master v5.18-rc4 next-20220427] [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/intel-lab-lkp/linux/commits/Li-kunyu/kernel-Optimize-unused-integer-return-values/20220427-153840 base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/pstore config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220428/202204280331.Wzldxt2P-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1cddcfdc3c683b393df1a5c9063252eb60e52818) 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/intel-lab-lkp/linux/commit/ddb369ae612f4391ae754aca94dec2ffc0ea68aa git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Li-kunyu/kernel-Optimize-unused-integer-return-values/20220427-153840 git checkout ddb369ae612f4391ae754aca94dec2ffc0ea68aa # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> kernel/signal.c:3536:2: error: void function 'post_copy_siginfo_from_user32' should not return a value [-Wreturn-type] return 0; ^ ~ 1 error generated. vim +/post_copy_siginfo_from_user32 +3536 kernel/signal.c ea64d5acc8f033 Eric W. Biederman 2018-01-15 3463 ddb369ae612f43 Li kunyu 2022-04-27 3464 static void post_copy_siginfo_from_user32(kernel_siginfo_t *to, 601d5abfeaf244 Eric W. Biederman 2018-10-05 3465 const struct compat_siginfo *from) 212a36a17efe4d Eric W. Biederman 2017-07-31 3466 { 212a36a17efe4d Eric W. Biederman 2017-07-31 3467 clear_siginfo(to); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3468 to->si_signo = from->si_signo; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3469 to->si_errno = from->si_errno; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3470 to->si_code = from->si_code; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3471 switch(siginfo_layout(from->si_signo, from->si_code)) { 212a36a17efe4d Eric W. Biederman 2017-07-31 3472 case SIL_KILL: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3473 to->si_pid = from->si_pid; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3474 to->si_uid = from->si_uid; 212a36a17efe4d Eric W. Biederman 2017-07-31 3475 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3476 case SIL_TIMER: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3477 to->si_tid = from->si_tid; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3478 to->si_overrun = from->si_overrun; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3479 to->si_int = from->si_int; 212a36a17efe4d Eric W. Biederman 2017-07-31 3480 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3481 case SIL_POLL: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3482 to->si_band = from->si_band; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3483 to->si_fd = from->si_fd; 212a36a17efe4d Eric W. Biederman 2017-07-31 3484 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3485 case SIL_FAULT: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3486 to->si_addr = compat_ptr(from->si_addr); 9abcabe3111811 Eric W. Biederman 2021-04-30 3487 break; 9abcabe3111811 Eric W. Biederman 2021-04-30 3488 case SIL_FAULT_TRAPNO: 9abcabe3111811 Eric W. Biederman 2021-04-30 3489 to->si_addr = compat_ptr(from->si_addr); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3490 to->si_trapno = from->si_trapno; 31931c93dfe05a Eric W. Biederman 2018-04-24 3491 break; 31931c93dfe05a Eric W. Biederman 2018-04-24 3492 case SIL_FAULT_MCEERR: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3493 to->si_addr = compat_ptr(from->si_addr); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3494 to->si_addr_lsb = from->si_addr_lsb; 31931c93dfe05a Eric W. Biederman 2018-04-24 3495 break; 31931c93dfe05a Eric W. Biederman 2018-04-24 3496 case SIL_FAULT_BNDERR: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3497 to->si_addr = compat_ptr(from->si_addr); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3498 to->si_lower = compat_ptr(from->si_lower); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3499 to->si_upper = compat_ptr(from->si_upper); 31931c93dfe05a Eric W. Biederman 2018-04-24 3500 break; 31931c93dfe05a Eric W. Biederman 2018-04-24 3501 case SIL_FAULT_PKUERR: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3502 to->si_addr = compat_ptr(from->si_addr); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3503 to->si_pkey = from->si_pkey; 212a36a17efe4d Eric W. Biederman 2017-07-31 3504 break; f4ac73023449e6 Eric W. Biederman 2021-04-30 3505 case SIL_FAULT_PERF_EVENT: fb6cc127e0b6e6 Marco Elver 2021-04-08 3506 to->si_addr = compat_ptr(from->si_addr); 0683b53197b553 Eric W. Biederman 2021-05-02 3507 to->si_perf_data = from->si_perf_data; 0683b53197b553 Eric W. Biederman 2021-05-02 3508 to->si_perf_type = from->si_perf_type; fb6cc127e0b6e6 Marco Elver 2021-04-08 3509 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3510 case SIL_CHLD: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3511 to->si_pid = from->si_pid; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3512 to->si_uid = from->si_uid; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3513 to->si_status = from->si_status; 212a36a17efe4d Eric W. Biederman 2017-07-31 3514 #ifdef CONFIG_X86_X32_ABI 212a36a17efe4d Eric W. Biederman 2017-07-31 3515 if (in_x32_syscall()) { 601d5abfeaf244 Eric W. Biederman 2018-10-05 3516 to->si_utime = from->_sifields._sigchld_x32._utime; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3517 to->si_stime = from->_sifields._sigchld_x32._stime; 212a36a17efe4d Eric W. Biederman 2017-07-31 3518 } else 212a36a17efe4d Eric W. Biederman 2017-07-31 3519 #endif 212a36a17efe4d Eric W. Biederman 2017-07-31 3520 { 601d5abfeaf244 Eric W. Biederman 2018-10-05 3521 to->si_utime = from->si_utime; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3522 to->si_stime = from->si_stime; 212a36a17efe4d Eric W. Biederman 2017-07-31 3523 } 212a36a17efe4d Eric W. Biederman 2017-07-31 3524 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3525 case SIL_RT: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3526 to->si_pid = from->si_pid; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3527 to->si_uid = from->si_uid; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3528 to->si_int = from->si_int; 212a36a17efe4d Eric W. Biederman 2017-07-31 3529 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3530 case SIL_SYS: 601d5abfeaf244 Eric W. Biederman 2018-10-05 3531 to->si_call_addr = compat_ptr(from->si_call_addr); 601d5abfeaf244 Eric W. Biederman 2018-10-05 3532 to->si_syscall = from->si_syscall; 601d5abfeaf244 Eric W. Biederman 2018-10-05 3533 to->si_arch = from->si_arch; 212a36a17efe4d Eric W. Biederman 2017-07-31 3534 break; 212a36a17efe4d Eric W. Biederman 2017-07-31 3535 } 212a36a17efe4d Eric W. Biederman 2017-07-31 @3536 return 0; 212a36a17efe4d Eric W. Biederman 2017-07-31 3537 } 601d5abfeaf244 Eric W. Biederman 2018-10-05 3538 -- 0-DAY CI Kernel Test Service https://01.org/lkp