From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 336DAC433FF for ; Thu, 8 Aug 2019 14:23:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 039B22171F for ; Thu, 8 Aug 2019 14:23:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732665AbfHHOX5 (ORCPT ); Thu, 8 Aug 2019 10:23:57 -0400 Received: from mga07.intel.com ([134.134.136.100]:54198 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732375AbfHHOX4 (ORCPT ); Thu, 8 Aug 2019 10:23:56 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2019 07:23:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,361,1559545200"; d="scan'208";a="350187610" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 08 Aug 2019 07:23:54 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hvjKc-0009E8-1b; Thu, 08 Aug 2019 22:23:54 +0800 Date: Thu, 8 Aug 2019 22:23:40 +0800 From: kbuild test robot To: Gabriel Beauchamp Cc: kbuild-all@01.org, gregkh@linuxfoundation.org, christian.gromm@microchip.com, colin.king@canonical.com, gustavo@embeddedor.com, joe@perches.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Gabriel Beauchamp Subject: Re: [PATCH v3] Staging: most: fix coding style issues Message-ID: <201908082224.xkj3s0FR%lkp@intel.com> References: <20190630165604.2452-1-beauchampgabriel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190630165604.2452-1-beauchampgabriel@gmail.com> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gabriel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [cannot apply to v5.3-rc3 next-20190808] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gabriel-Beauchamp/Staging-most-fix-coding-style-issues/20190701-203804 reproduce: # apt-get install sparse # sparse version: v0.6.1-rc1-7-g2b96cd8-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/staging/most/core.c:308:30: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected char *type @@ got char const *char *type @@ >> drivers/staging/most/core.c:308:30: sparse: expected char *type >> drivers/staging/most/core.c:308:30: sparse: got char const *const name vim +308 drivers/staging/most/core.c 296 297 static ssize_t set_datatype_show(struct device *dev, 298 struct device_attribute *attr, 299 char *buf) 300 { 301 int i; 302 char *type = "unconfigured\n"; 303 304 struct most_channel *c = to_channel(dev); 305 306 for (i = 0; i < ARRAY_SIZE(ch_data_type); i++) { 307 if (c->cfg.data_type & ch_data_type[i].most_ch_data_type) { > 308 type = ch_data_type[i].name; 309 break; 310 } 311 } 312 return snprintf(buf, PAGE_SIZE, "%s", type); 313 } 314 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation