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]
Message-ID: <202111180632.vznM0G3j-lkp@intel.com>
Date:   Thu, 18 Nov 2021 06:06:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     Nikita Shubin <nikita.shubin@...uefel.me>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Arnd Bergmann <arnd@...db.de>,
        Alexander Sverdlin <alexander.sverdlin@...il.com>
Subject: drivers/clk/clk-gemini.c:64: warning: expecting prototype for struct
 gemini_data_data. Prototype was for struct gemini_gate_data instead

Hi Nikita,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ee1703cda8dc777e937dec172da55beaf1a74919
commit: 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 ep93xx: clock: convert in-place to COMMON_CLK
date:   4 weeks ago
config: arm-randconfig-r005-20211116 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/torvalds/linux.git/commit/?id=9645ccc7bd7a16cd73c3be9dee70cd702b03be37
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 9645ccc7bd7a16cd73c3be9dee70cd702b03be37
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/clk/ drivers/gpu/drm/tegra/

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

All warnings (new ones prefixed by >>):

>> drivers/clk/clk-gemini.c:64: warning: expecting prototype for struct gemini_data_data. Prototype was for struct gemini_gate_data instead
--
   drivers/gpu/drm/tegra/dc.c: In function 'tegra_crtc_update_memory_bandwidth':
   drivers/gpu/drm/tegra/dc.c:1848:53: warning: variable 'new_dc_state' set but not used [-Wunused-but-set-variable]
    1848 |         const struct tegra_dc_state *old_dc_state, *new_dc_state;
         |                                                     ^~~~~~~~~~~~
   drivers/gpu/drm/tegra/dc.c:1848:38: warning: variable 'old_dc_state' set but not used [-Wunused-but-set-variable]
    1848 |         const struct tegra_dc_state *old_dc_state, *new_dc_state;
         |                                      ^~~~~~~~~~~~
   drivers/gpu/drm/tegra/dc.c: In function 'tegra_crtc_calculate_memory_bandwidth':
>> drivers/gpu/drm/tegra/dc.c:2228:38: warning: variable 'old_state' set but not used [-Wunused-but-set-variable]
    2228 |         const struct drm_crtc_state *old_state;
         |                                      ^~~~~~~~~


vim +64 drivers/clk/clk-gemini.c

846423f96721d5 Linus Walleij 2017-06-21  51  
846423f96721d5 Linus Walleij 2017-06-21  52  /**
846423f96721d5 Linus Walleij 2017-06-21  53   * struct gemini_data_data - Gemini gated clocks
846423f96721d5 Linus Walleij 2017-06-21  54   * @bit_idx: the bit used to gate this clock in the clock register
846423f96721d5 Linus Walleij 2017-06-21  55   * @name: the clock name
846423f96721d5 Linus Walleij 2017-06-21  56   * @parent_name: the name of the parent clock
846423f96721d5 Linus Walleij 2017-06-21  57   * @flags: standard clock framework flags
846423f96721d5 Linus Walleij 2017-06-21  58   */
846423f96721d5 Linus Walleij 2017-06-21  59  struct gemini_gate_data {
846423f96721d5 Linus Walleij 2017-06-21  60  	u8 bit_idx;
846423f96721d5 Linus Walleij 2017-06-21  61  	const char *name;
846423f96721d5 Linus Walleij 2017-06-21  62  	const char *parent_name;
846423f96721d5 Linus Walleij 2017-06-21  63  	unsigned long flags;
846423f96721d5 Linus Walleij 2017-06-21 @64  };
846423f96721d5 Linus Walleij 2017-06-21  65  

:::::: The code at line 64 was first introduced by commit
:::::: 846423f96721d5c1c2fad6b43b3f1359002907d5 clk: Add Gemini SoC clock controller

:::::: TO: Linus Walleij <linus.walleij@...aro.org>
:::::: CC: Stephen Boyd <sboyd@...eaurora.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (34170 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ