From: "Namjae Jeon" <namjae.jeon@samsung.com>
To: "'Stephen Rothwell'" <sfr@canb.auug.org.au>,
"'Steve French'" <smfrench@gmail.com>
Cc: "'Steve French'" <stfrench@microsoft.com>,
"'Hyunchul Lee'" <hyc.lee@gmail.com>,
"'Sergey Senozhatsky'" <sergey.senozhatsky@gmail.com>,
"'Ronnie Sahlberg'" <lsahlber@redhat.com>,
"'Linux Kernel Mailing List'" <linux-kernel@vger.kernel.org>,
"'Linux Next Mailing List'" <linux-next@vger.kernel.org>
Subject: RE: linux-next: build failure after merge of the cifsd tree
Date: Wed, 17 Mar 2021 17:19:53 +0900 [thread overview]
Message-ID: <012901d71b06$4ef96580$ecec3080$@samsung.com> (raw)
In-Reply-To: <20210317185304.6b92290c@canb.auug.org.au>
Hi Stephen,
> Hi all,
>
> After merging the cifsd tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
>
> ld: fs/cifsd/misc.o:(.opd+0xc0): multiple definition of `extract_sharename'; fs/cifs/unc.o:(.opd+0x18):
> first defined here
> ld: fs/cifsd/misc.o: in function `.extract_sharename':
> misc.c:(.text.extract_sharename+0x0): multiple definition of `.extract_sharename';
> fs/cifs/unc.o:unc.c:(.text.extract_sharename+0x0): first defined here
>
> Caused by commit
>
> cabcebc31de4 ("cifsd: introduce SMB3 kernel server")
>
> I applied the following patch for today:
I send a pull request included this patch to Steve.
Thanks for your patch.
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Wed, 17 Mar 2021 18:35:55 +1100
> Subject: [PATCH] cifsd: uniquify extract_sharename()
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> fs/cifsd/misc.c | 4 ++--
> fs/cifsd/misc.h | 2 +-
> fs/cifsd/smb2pdu.c | 2 +-
> fs/cifsd/unicode.h | 2 +-
> 4 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/fs/cifsd/misc.c b/fs/cifsd/misc.c index 9e689c33f7bb..2e83cfc43be9 100644
> --- a/fs/cifsd/misc.c
> +++ b/fs/cifsd/misc.c
> @@ -210,12 +210,12 @@ void ksmbd_conv_path_to_windows(char *path) }
>
> /**
> - * extract_sharename() - get share name from tree connect request
> + * cifsd_extract_sharename() - get share name from tree connect request
> * @treename: buffer containing tree name and share name
> *
> * Return: share name on success, otherwise error
> */
> -char *extract_sharename(char *treename)
> +char *cifsd_extract_sharename(char *treename)
> {
> char *name = treename;
> char *dst;
> diff --git a/fs/cifsd/misc.h b/fs/cifsd/misc.h index d67843aad509..4cb0d4bebb21 100644
> --- a/fs/cifsd/misc.h
> +++ b/fs/cifsd/misc.h
> @@ -25,7 +25,7 @@ void ksmbd_conv_path_to_unix(char *path); void ksmbd_strip_last_slash(char *path);
> void ksmbd_conv_path_to_windows(char *path);
>
> -char *extract_sharename(char *treename);
> +char *cifsd_extract_sharename(char *treename);
>
> char *convert_to_unix_name(struct ksmbd_share_config *share, char *name);
>
> diff --git a/fs/cifsd/smb2pdu.c b/fs/cifsd/smb2pdu.c index b20cc07ee809..3da96ebeae8b 100644
> --- a/fs/cifsd/smb2pdu.c
> +++ b/fs/cifsd/smb2pdu.c
> @@ -1709,7 +1709,7 @@ int smb2_tree_connect(struct ksmbd_work *work)
> goto out_err1;
> }
>
> - name = extract_sharename(treename);
> + name = cifsd_extract_sharename(treename);
> if (IS_ERR(name)) {
> status.ret = KSMBD_TREE_CONN_STATUS_ERROR;
> goto out_err1;
> diff --git a/fs/cifsd/unicode.h b/fs/cifsd/unicode.h index 228a02c9b95d..16269c098f86 100644
> --- a/fs/cifsd/unicode.h
> +++ b/fs/cifsd/unicode.h
> @@ -69,7 +69,7 @@ char *smb_strndup_from_utf16(const char *src, const int maxlen,
> const struct nls_table *codepage);
> extern int smbConvertToUTF16(__le16 *target, const char *source, int srclen,
> const struct nls_table *cp, int mapchars); -extern char *extract_sharename(char
> *treename);
> +extern char *cifsd_extract_sharename(char *treename);
> #endif
>
> wchar_t cifs_toupper(wchar_t in);
> --
> 2.30.0
>
> --
> Cheers,
> Stephen Rothwell
prev parent reply other threads:[~2021-03-17 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210317075311epcas1p495b35e81ffa13c1ab7319cb910d6e23e@epcas1p4.samsung.com>
2021-03-17 7:53 ` linux-next: build failure after merge of the cifsd tree Stephen Rothwell
2021-03-17 8:05 ` Sergey Senozhatsky
2021-03-17 8:19 ` Namjae Jeon [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='012901d71b06$4ef96580$ecec3080$@samsung.com' \
--to=namjae.jeon@samsung.com \
--cc=hyc.lee@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=lsahlber@redhat.com \
--cc=sergey.senozhatsky@gmail.com \
--cc=sfr@canb.auug.org.au \
--cc=smfrench@gmail.com \
--cc=stfrench@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.