linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/clk/clk-gemini.c:64: warning: expecting prototype for struct gemini_data_data. Prototype was for struct gemini_gate_data instead
@ 2021-11-17 22:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-17 22:06 UTC (permalink / raw)
  To: Nikita Shubin; +Cc: kbuild-all, linux-kernel, Arnd Bergmann, Alexander Sverdlin

[-- Attachment #1: Type: text/plain, Size: 3762 bytes --]

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@intel.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@linaro.org>
:::::: CC: Stephen Boyd <sboyd@codeaurora.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34170 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-17 22:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 22:06 drivers/clk/clk-gemini.c:64: warning: expecting prototype for struct gemini_data_data. Prototype was for struct gemini_gate_data instead kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).