Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5127330yba; Wed, 10 Apr 2019 11:58:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqQy/i1b15apcK5usxSPc7KTlbVjI3I52ugRN/zxYIw8m7iuNyxqfDCpfjDrn8QOnySTwM X-Received: by 2002:a17:902:7206:: with SMTP id ba6mr46160978plb.301.1554922703749; Wed, 10 Apr 2019 11:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554922703; cv=none; d=google.com; s=arc-20160816; b=X/6luaQt28UXxdfNvwsXpzzREJf9Ahrb5r8sw32s+IovU2TDhprlmVtC4vB6JnIDlq WugErLKClkRUzjvqhVmIRtlJI/38nTSU8eHdwzhPB9HJQ0TTkHp+zAhfxXw4z56tBRJH 0vyaUIxVCmy9ypOVJy0OVF1QKCf5xZSx+/n663ACSyMUEOk6gHCuTaZV44U+Rt2LlWaT OZ90KVRm9b8HihqarJBfp/dNaf5xLpm2iP68ofzH9N8TsuGa8NbAfnXSodAtmizaZqzm jD+NiksXaRfNcbX8PcljmOiKdrZ/JIp6gWIoj742xcuJsl8MrSgwgsOfl0vsC2PNsLor Xbww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from:date; bh=4phXpMfZYwd0hGHj5Zl/4DgfF5Bm6OnePhz6jz2pF5c=; b=yTlbpUcmdGGCpw+SPlemIzZKcFoss8RXXGsgVcd1UkvTvnyHdIWhpc9hD2A7HLucMq N+fq/8/CJaWZELHUTy9r85iZm2uKJU6DSNuj40DIJjzRs7JyiVFkoexsavH0H+9l0+iO axs1gII28nQX5r8yes8wwbgyGE6sAtXKtUE1uZA01lAxWjXFTtjzXh080JgVW7dsDZhx NLX9u6fa4aO6EPa1Nk51+L1Fzb/vYpfr6lpbpgoKyRTL/VYK/TSPnNw3w7DXJFVjK7Zy jXzjB6LW/yJHOmcHN3YFScmsWG+OKXTjlH/HK+fcIx5kg4fg3nEi14I6CRgR4CcmAVsc OUDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si30597036pll.73.2019.04.10.11.58.08; Wed, 10 Apr 2019 11:58:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731949AbfDJQAx (ORCPT + 99 others); Wed, 10 Apr 2019 12:00:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44908 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728970AbfDJQAx (ORCPT ); Wed, 10 Apr 2019 12:00:53 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3AFxl8J070974 for ; Wed, 10 Apr 2019 12:00:52 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rshxs65c6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Apr 2019 12:00:51 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Apr 2019 17:00:48 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 10 Apr 2019 17:00:46 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3AG0jq645351048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Apr 2019 16:00:46 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 95B944C070; Wed, 10 Apr 2019 16:00:45 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 34D894C06F; Wed, 10 Apr 2019 16:00:45 +0000 (GMT) Received: from mschwideX1 (unknown [9.152.212.148]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 10 Apr 2019 16:00:45 +0000 (GMT) Date: Wed, 10 Apr 2019 18:00:44 +0200 From: Martin Schwidefsky To: Arnd Bergmann Cc: Heiko Carstens , clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/12] s390: syscall_wrapper: avoid clang warning In-Reply-To: <20190408212648.2407234-8-arnd@arndb.de> References: <20190408212648.2407234-1-arnd@arndb.de> <20190408212648.2407234-8-arnd@arndb.de> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19041016-0028-0000-0000-0000035F651B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19041016-0029-0000-0000-0000241E8857 Message-Id: <20190410180044.22fbba3f@mschwideX1> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-10_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=706 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904100111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 8 Apr 2019 23:26:21 +0200 Arnd Bergmann wrote: > Building system calls with clang results in a warning > about an alias from a global function to a static one: > > ../fs/namei.c:3847:1: warning: unused function '__se_sys_mkdirat' [-Wunused-function] > SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) > ^ > ../include/linux/syscalls.h:219:36: note: expanded from macro 'SYSCALL_DEFINE3' > #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) > ^ > ../include/linux/syscalls.h:228:2: note: expanded from macro 'SYSCALL_DEFINEx' > __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) > ^ > ../arch/s390/include/asm/syscall_wrapper.h:126:18: note: expanded from macro '__SYSCALL_DEFINEx' > asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \ > ^ > :31:1: note: expanded from here > __se_sys_mkdirat > ^ > > The only reference to the static __se_sys_mkdirat() here is the alias, but > this only gets evaluated later. Making this function global as well avoids > the warning. > > Signed-off-by: Arnd Bergmann Added to s390/linux:features for the next merge window. Thanks. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.