lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 20 Oct 2022 15:29:04 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mark:arm64/ftrace/per-callsite-ops 7/8]
 arch/powerpc/crypto/sha1.c:132:1: error: 'text_section' attribute directive
 ignored

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head:   6f1081e05f384a1a27dfe00afd807546e97cf1c0
commit: 86131b1b57b94d8e7131f90808c9313ac6e3b9b1 [7/8] WIP: arm64: ftrace: use pre-function NOPs
config: powerpc-randconfig-m031-20221019
compiler: powerpc-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=86131b1b57b94d8e7131f90808c9313ac6e3b9b1
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/ftrace/per-callsite-ops
        git checkout 86131b1b57b94d8e7131f90808c9313ac6e3b9b1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/crypto/ arch/powerpc/kernel/ arch/powerpc/kexec/ arch/powerpc/lib/ arch/powerpc/platforms/52xx/ arch/powerpc/platforms/83xx/ arch/powerpc/platforms/powermac/ arch/powerpc/sysdev/ drivers/dma/ drivers/gpio/ drivers/macintosh/ drivers/power/supply/ drivers/scsi/ drivers/video/fbdev/ drivers/watchdog/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All error/warnings (new ones prefixed by >>):

>> arch/powerpc/crypto/sha1.c:132:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     132 | module_init(sha1_powerpc_mod_init);
         | ^~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/firmware.c:40:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
      40 | core_initcall(check_kvm_guest); // before kvm_guest_init()
         | ^~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/legacy_serial.c:382:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     382 | early_initcall(ioremap_legacy_serial_console);
         | ^~~~~~~~~~~~~~
   arch/powerpc/kernel/legacy_serial.c:594:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     594 | device_initcall(serial_dev_init);
         | ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/dma-swiotlb.c:30:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
      30 | subsys_initcall(check_swiotlb_enabled);
         | ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/pci_32.c:300:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     300 | subsys_initcall(pcibios_init);
         | ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/pci-common.c:422:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     422 | arch_initcall(ppc_pci_register_irq_notifier);
         | ^~~~~~~~~~~~~
   arch/powerpc/kernel/pci-common.c:1735:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
    1735 | core_initcall(discover_phbs);
         | ^~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/epapr_paravirt.c:74:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
      74 | postcore_initcall(epapr_idle_init);
         | ^~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kernel/kvm.c:723:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     723 | postcore_initcall(kvm_guest_init);
         | ^~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/kexec/core.c:277:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     277 | late_initcall(kexec_setup);
         | ^~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> arch/powerpc/lib/test-code-patching.c:362:1: error: 'text_section' attribute directive ignored [-Werror=attributes]
     362 | late_initcall(test_code_patching);
         | ^~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> drivers/dma/fsldma.c:1426:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    1426 | subsys_initcall(fsldma_init);
         | ^~~~~~~~~~~~~~~
..


vim +/text_section +132 arch/powerpc/crypto/sha1.c

323a6bf1d6f4ec Michael Ellerman 2012-09-13  131  
323a6bf1d6f4ec Michael Ellerman 2012-09-13 @132  module_init(sha1_powerpc_mod_init);
323a6bf1d6f4ec Michael Ellerman 2012-09-13  133  module_exit(sha1_powerpc_mod_fini);
323a6bf1d6f4ec Michael Ellerman 2012-09-13  134  

:::::: The code at line 132 was first introduced by commit
:::::: 323a6bf1d6f4ec7907d9d8aacb4ae9590f755dda powerpc: Add a powerpc implementation of SHA-1

:::::: TO: Michael Ellerman <michael@...erman.id.au>
:::::: CC: Benjamin Herrenschmidt <benh@...nel.crashing.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (155455 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ