Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp72758iof; Sun, 5 Jun 2022 21:30:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6r85a/IydW6268XvEn+k0goM9m8/Fb2++y73OHs38sujuQ26NVc8UZYknSZ6D4v/EN4+g X-Received: by 2002:a17:90a:bf94:b0:1e2:e640:37dd with SMTP id d20-20020a17090abf9400b001e2e64037ddmr43981360pjs.169.1654489838052; Sun, 05 Jun 2022 21:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654489838; cv=none; d=google.com; s=arc-20160816; b=YoYT06Ozg87I/OYzKmH5P8n0KMoX+BgTpI6lWu+OZB+U+hjLEl0nRA4n0ytE0XUttY SWfTmJb1Fo2sx9DuB/60CGX1jD1VAwBePB9sU8e34vt09YCpeB1bUwR5JpljmjJN4izk Xz+C31y8IT9OYfJkjOoGf7gC4lPU7PoKLrD/UIgZ4fS3F4eMtSIuB9Qe5YQlxxtrjyHT Y9UcTh3rDJNZrhVLJMk+vSQviVcGv4oAKJI4swUa5ZCiu6gM3ByMzqon0b+Px6DaCF5U prdbTCf7oNDAkipuHeV0GkPtfcO3xpiNsX4hJb3DuawvgSF2SJxXmGtVCO8oZel40tt7 oa9w== 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=H5ig/xPgkfeYPum7yvsY5e8R5iibwFbaH4f20p8F2Wg=; b=Zb5X45303jKFLvpV7r4RfGxCHTMcG0YhEjSohQw1kb1M3+t7lav0HbsJC/T8ByQWoh vWqAJDDH3H8KdrsHhbN9/SE8bLxlcHVHPpob848rPF3ow9pWcUAM59Jq5u8KVYZOrwWK Tsa6Vo79qGWM5h3+Jumwe7lM/zdB8q5BdBl8Ar5jkrWSam9IzzrVOrJLglAVycew+h2k urdu8awwHz4rFNPa8q/JW1Ruv3zH286u0S+Y9NEgP+DbimRkBwligbwYmwdzn8WXNmqZ /p+d5++uR1mNzxeLPZQavQE31qVFvChN0DPPkIdiMPnj+XQpYlmLXQ15xAa6+sMUZ5A3 ycRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M63oJoyz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t34-20020a056a0013a200b0051c274ce486si1095759pfg.298.2022.06.05.21.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M63oJoyz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 76A6D13F3F; Sun, 5 Jun 2022 20:57:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348028AbiFEVyF (ORCPT + 99 others); Sun, 5 Jun 2022 17:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233452AbiFEVyC (ORCPT ); Sun, 5 Jun 2022 17:54:02 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9AA25D9 for ; Sun, 5 Jun 2022 14:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654466041; x=1686002041; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=S3EW8RPbsmeWe2P3TetCDIDC1Ez1339KoCM37Z2SAgs=; b=M63oJoyzCm8zOD2SRXhP8YllTAlTPeUyybL9lIE5CIOuMiFI/+cX5evZ uv6RFcp4pPqHr6Scd70uo3ZX02uus9kwnLQa43mlSHwvwX+pJrYC+Bmd2 X5y7x3OPiVeXyhZkOJS7MFOn5/GPHKJglwmNIX2z5j1/PZWPrh6cBWLXw sVdZJLmpaGExoXunaytEQXcjjdXdxwPWGtK6axXv0z2Z0BhbLeeMcZMtH vXY46dfMP2Ge3Z944Po3c+L5SUI4CfPNB3TwVQA1FJC8LSaVCIl/52eJh q7mj+mpuesrM2Fhjn04bTCMD9m6TfXZwQmeSpAWL3xrwdpv+zcWxEPYBM g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276406636" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276406636" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 14:54:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="531869373" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 05 Jun 2022 14:53:58 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nxyC6-000CHd-3k; Sun, 05 Jun 2022 21:53:58 +0000 Date: Mon, 6 Jun 2022 05:53:52 +0800 From: kernel test robot To: Andy Shevchenko , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Andrew Morton , Linux Memory Management List Subject: Re: [PATCH v1 1/1] kernel.h: Move sysfs related macro to sysfs.h Message-ID: <202206060529.iKPUpMUp-lkp@intel.com> References: <20220603172101.49950-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220603172101.49950-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Andy, I love your patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v5.18 next-20220603] [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/Andy-Shevchenko/kernel-h-Move-sysfs-related-macro-to-sysfs-h/20220606-004344 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: arm-at91_dt_defconfig (https://download.01.org/0day-ci/archive/20220606/202206060529.iKPUpMUp-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0 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/0fad3ce70c6f6736d3913e3238642a056f70b123 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andy-Shevchenko/kernel-h-Move-sysfs-related-macro-to-sysfs-h/20220606-004344 git checkout 0fad3ce70c6f6736d3913e3238642a056f70b123 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/arm/mm/alignment.c:11: >> include/linux/moduleparam.h:294:13: error: implicit declaration of function 'VERIFY_OCTAL_PERMISSIONS' [-Werror=implicit-function-declaration] 294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } } | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/moduleparam.h:330:9: note: in expansion of macro '__module_param_call' 330 | __module_param_call("", name, ¶m_ops_##type, &var, perm, -1, 0) | ^~~~~~~~~~~~~~~~~~~ arch/arm/mm/alignment.c:87:1: note: in expansion of macro 'core_param' 87 | core_param(alignment, ai_usermode, int, 0600); | ^~~~~~~~~~ >> include/linux/moduleparam.h:294:13: error: initializer element is not constant 294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } } | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/moduleparam.h:330:9: note: in expansion of macro '__module_param_call' 330 | __module_param_call("", name, ¶m_ops_##type, &var, perm, -1, 0) | ^~~~~~~~~~~~~~~~~~~ arch/arm/mm/alignment.c:87:1: note: in expansion of macro 'core_param' 87 | core_param(alignment, ai_usermode, int, 0600); | ^~~~~~~~~~ include/linux/moduleparam.h:294:13: note: (near initialization for '__param_alignment.perm') 294 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } } | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/moduleparam.h:330:9: note: in expansion of macro '__module_param_call' 330 | __module_param_call("", name, ¶m_ops_##type, &var, perm, -1, 0) | ^~~~~~~~~~~~~~~~~~~ arch/arm/mm/alignment.c:87:1: note: in expansion of macro 'core_param' 87 | core_param(alignment, ai_usermode, int, 0600); | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/VERIFY_OCTAL_PERMISSIONS +294 include/linux/moduleparam.h 91d35dd93e14c3 Ivan Kokshaysky 2008-02-13 284 ^1da177e4c3f41 Linus Torvalds 2005-04-16 285 /* This is the fundamental function for registering boot/module 546970bc6afc7f Rusty Russell 2010-08-11 286 parameters. */ 91f9d330cc1493 Jani Nikula 2014-08-27 287 #define __module_param_call(prefix, name, ops, arg, perm, level, flags) \ 9774a1f54f173a Alexey Dobriyan 2006-12-06 288 /* Default value instead of permissions? */ \ 22e48eaf587d04 Jan Beulich 2007-10-16 289 static const char __param_str_##name[] = prefix #name; \ 91d35dd93e14c3 Ivan Kokshaysky 2008-02-13 290 static struct kernel_param __moduleparam_const __param_##name \ fe2f4fe139b321 Johan Hovold 2020-11-23 291 __used __section("__param") \ fe2f4fe139b321 Johan Hovold 2020-11-23 292 __aligned(__alignof__(struct kernel_param)) \ b51d23e4e9fea6 Dan Streetman 2015-06-17 293 = { __param_str_##name, THIS_MODULE, ops, \ b51d23e4e9fea6 Dan Streetman 2015-06-17 @294 VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } } ^1da177e4c3f41 Linus Torvalds 2005-04-16 295 -- 0-DAY CI Kernel Test Service https://01.org/lkp