LKML Archive on
help / color / mirror / Atom feed
From: kernel test robot <>
To: Dan Williams <>
	Alison Schofield <>,
	Vishal Verma <>,
	Ira Weiny <>,
	Ben Widawsky <>,
	Dan Williams <>,,
	Jonathan Cameron <>
Subject: [cxl-cxl:pending 20/38] drivers/nvdimm/label.c:749:25: warning: no previous prototype for function 'uuid_to_nvdimm_cclass'
Date: Sat, 14 Aug 2021 13:32:31 +0800	[thread overview]
Message-ID: <> (raw)

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

tree: pending
head:   fa809cc6feedcd2575b63def7135dfaf066266bb
commit: ed37942d3f53ae55c077704f6a8e6306d96169f6 [20/38] libnvdimm/labels: Add address-abstraction uuid definitions
config: x86_64-randconfig-a011-20210814 (attached as .config)
compiler: clang version 14.0.0 ( 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add cxl-cxl
        git fetch --no-tags cxl-cxl pending
        git checkout ed37942d3f53ae55c077704f6a8e6306d96169f6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/nvdimm/label.c:749:25: warning: no previous prototype for function 'uuid_to_nvdimm_cclass' [-Wmissing-prototypes]
   enum nvdimm_claim_class uuid_to_nvdimm_cclass(uuid_t *uuid)
   drivers/nvdimm/label.c:749:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum nvdimm_claim_class uuid_to_nvdimm_cclass(uuid_t *uuid)
   1 warning generated.

vim +/uuid_to_nvdimm_cclass +749 drivers/nvdimm/label.c

   748	/* CXL labels store UUIDs instead of GUIDs for the same data */
 > 749	enum nvdimm_claim_class uuid_to_nvdimm_cclass(uuid_t *uuid)
   750	{
   751		if (uuid_equal(uuid, &nvdimm_btt_uuid))
   752			return NVDIMM_CCLASS_BTT;
   753		else if (uuid_equal(uuid, &nvdimm_btt2_uuid))
   754			return NVDIMM_CCLASS_BTT2;
   755		else if (uuid_equal(uuid, &nvdimm_pfn_uuid))
   756			return NVDIMM_CCLASS_PFN;
   757		else if (uuid_equal(uuid, &nvdimm_dax_uuid))
   758			return NVDIMM_CCLASS_DAX;
   759		else if (uuid_equal(uuid, &uuid_null))
   760			return NVDIMM_CCLASS_NONE;
   763	}

0-DAY CI Kernel Test Service, Intel Corporation

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

                 reply	other threads:[~2021-08-14  5:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [cxl-cxl:pending 20/38] drivers/nvdimm/label.c:749:25: warning: no previous prototype for function '\''uuid_to_nvdimm_cclass'\''' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).