Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7667187rwi; Mon, 24 Oct 2022 18:35:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57RXoZ17dNCzEzZEOsSPde79e4F1LTZYEXFlohQmvkxFpQAS2PP600KFYm0vfM50ig7FQw X-Received: by 2002:a05:6402:11ce:b0:45c:a364:2c3d with SMTP id j14-20020a05640211ce00b0045ca3642c3dmr33822786edw.204.1666661726986; Mon, 24 Oct 2022 18:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666661726; cv=none; d=google.com; s=arc-20160816; b=xXX7LaLhlq6lJTBKUS+GzIG0oj89NCSc1PtbxCOAluGnQ8fFi6BxjjutJ8KZ2OI1wO WrYnB4zFiPTsh+QelpzVM3O9ZCEqrHIcNJbokJhufMJT7+iZCvSoBB03A5AGKTW+aaqu 3mHZfDhQiMM/kL3bG45oVESKKcu5D5oeI6E25sLJmnp7UV2oSeqIidLz5G/9M1GOtM2w SrOTpqPTO3Vhu+f5d4yUVbIaWz8buE6KJ//oto6zOWO1YbkHjGUYwacv/CJoXHysmyQp aELjvtCli9ABi3ZV9J68/JQzYBLeZYNBw4A5ZvhPul/79U+0Qf5KmDlnbk9U6kYtEpWc qeZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=+6Pv2zcCmGbJI6EaGYw5AjBJkwW6ifpBMliNhx3vYG4=; b=GmmRw1r7PNcUIK4AUxMXsz5tOpqqDX6fQUMvo66Hqz530bBHJc6WHGyOyYFJBvCUg8 ZLekcC/j1AHGY4HNuBAF7278ghnnZLnHo2L0XHtTz8UxhA2duot+1uEQoeu7dzZZdhZT bzHLWskcULYBMjiHORF9NWzyLezXNdYbtD6F7uABDHFLRzAKQRHA9Juhy91zuHJAZAd7 lAAGnC7lWouIDS57XXzIWp9EXE6IS0S1w8WAEHKCnnwrJqq6bJWJSGZoHc3fVP5Q4gV/ zZlEQsL4/SywpzzqxEUJfM67+YDHrAyzLxQHeJOAIyH8z1EZFwmvj4N4IS5c6813JE6T vOYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="AjduT+M/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a1709060b0200b0079b40c09982si1103302ejg.340.2022.10.24.18.35.09; Mon, 24 Oct 2022 18:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="AjduT+M/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbiJYBWZ (ORCPT + 65 others); Mon, 24 Oct 2022 21:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231481AbiJYBWJ (ORCPT ); Mon, 24 Oct 2022 21:22:09 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966C751A17; Mon, 24 Oct 2022 17:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666658987; x=1698194987; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=zHGjl5+fq8Hm5PhqDVUfsGIFrV7NvXdcbmgRNAqSgqM=; b=AjduT+M/IjzyyTKwQlJcPfsEK3sWOMlZpcqhnyeI+oluB9E/Lepwr4hv DHL4BlplMXcOV/5hHiWePpu80N1kfWct3FtqolmnIKgqf2OMaij3baqxL T/mZRvWMAhCm/d/2b4gnl1xeOSBdeDmuCpi8TezSkOCXMCZvzlQ7i7Jtm RdWYT44syzaXF24gGxVWbW635esNcOsre5ziy/IWR0GdPlULSd2ztJb/T 0FhV5TcE0lreiJgXqgNSc/cgmTZpULb1uVs+ClWHTKeopmMGhYg4OwIEF NI0d+dIiqC8uU78jQ6rAkcf2Yfs0pONMLiclLnjWuw7r8ygFKmrrosEjS w==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="287275725" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="287275725" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 17:49:45 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="626249275" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="626249275" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.254.208.181]) ([10.254.208.181]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 17:49:43 -0700 Subject: Re: [kbuild-all] Re: include/trace/trace_events.h:261:16: error: function 'trace_event_get_offsets_iwlwifi_dbg' might be a candidate for 'gnu_printf' format attribute To: Steven Rostedt Cc: kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Gregory Greenman , linux-wireless@vger.kernel.org References: <202210212134.QTpb11ug-lkp@intel.com> <20221021101026.1708a426@gandalf.local.home> <20221024103524.43e13ab3@gandalf.local.home> From: "Chen, Rong A" Message-ID: Date: Tue, 25 Oct 2022 08:49:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20221024103524.43e13ab3@gandalf.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,URIBL_BLOCKED autolearn=ham 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-wireless@vger.kernel.org On 10/24/2022 10:35 PM, Steven Rostedt wrote: > On Mon, 24 Oct 2022 15:26:00 +0800 > "Chen, Rong A" wrote: > >> On 10/21/2022 10:10 PM, Steven Rostedt wrote: >>> On Fri, 21 Oct 2022 22:07:17 +0800 >>> kernel test robot wrote: >>> >>>> Hi Steven, >>>> >>>> FYI, the error/warning still remains. >>> >>> WONT FIX >>> >>> I thought we already discussed getting rid of this warning? >> >> Hi Steve, >> >> Sorry for the noise, the bot doesn't ignore this warning with prefix >> 'error:', we will fix it. > > Ug. Let me guess, is this compiled with -Werror? > > Because a warning about a macro that may or may not create printf > formatting, where gcc thinks it needs a gcc printf attribute and warns > about it, is not something to fail the build on. > > For any build that fails on warnings, that specific warning needs to be > silenced. > > I mean, "-Werror=suggest-attribute=format", really? yes, it's compiled with -Werror if using 'W=1' option: >>>>>> include/trace/trace_events.h:261:16: error: function 'trace_event_get_offsets_iwlwifi_dbg' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] Best Regards, Rong Chen > > -- Steve > >>> >>>> >>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>>> head: e35184f321518acadb681928a016da21a9a20c13 >>>> commit: c7c37bb87590886e08d24dec53089f74b89f5fbb tracing/iwlwifi: Use the new __vstring() helper >>>> date: 3 months ago >>>> config: x86_64-sof-customedconfig-edison-defconfig >>>> compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 >>>> reproduce (this is a W=1 build): >>>> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c7c37bb87590886e08d24dec53089f74b89f5fbb >>>> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >>>> git fetch --no-tags linus master >>>> git checkout c7c37bb87590886e08d24dec53089f74b89f5fbb >>>> # save the config file >>>> mkdir build_dir && cp config build_dir/.config >>>> make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/wireless/intel/iwlwifi/ >>>> >>>> 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 include/trace/define_trace.h:102, >>>> from drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h:71, >>>> from drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h:91, >>>> from drivers/net/wireless/intel/iwlwifi/iwl-devtrace.c:15: >>>> drivers/net/wireless/intel/iwlwifi/./iwl-devtrace-msg.h: In function 'trace_event_get_offsets_iwlwifi_dbg': >>>>>> include/trace/trace_events.h:261:16: error: function 'trace_event_get_offsets_iwlwifi_dbg' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] >>>> 261 | struct trace_event_raw_##call __maybe_unused *entry; \ >>>> | ^~~~~~~~~~~~~~~~ >>>> include/trace/trace_events.h:40:9: note: in expansion of macro 'DECLARE_EVENT_CLASS' >>>> 40 | DECLARE_EVENT_CLASS(name, \ >>>> | ^~~~~~~~~~~~~~~~~~~ >>>> drivers/net/wireless/intel/iwlwifi/./iwl-devtrace-msg.h:49:1: note: in expansion of macro 'TRACE_EVENT' >>>> 49 | TRACE_EVENT(iwlwifi_dbg, >>>> | ^~~~~~~~~~~ > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org >