Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272AbdFTUoj (ORCPT ); Tue, 20 Jun 2017 16:44:39 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:63122 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbdFTUoh (ORCPT ); Tue, 20 Jun 2017 16:44:37 -0400 From: Arnd Bergmann To: Jeremy Kerr Cc: Arnd Bergmann , Greg Kroah-Hartman , Joel Stanley , Christopher Bostic , Chris Bostic , linux-kernel@vger.kernel.org Subject: [PATCH] drivers/fsi: fix fsi_slave_mode prototype Date: Tue, 20 Jun 2017 22:43:42 +0200 Message-Id: <20170620204417.854521-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kIbmBT8y0zRrSL2oGbMbuzosVWVStKM51bBZnmPa9lDO3yBd1fr kND9CK0TYX9r74QIfnJoBFRg8BL1csalohi0Bpd+j6HSeqG0bSxLtVPzqbzfAP62AHHVVb6 9KCklEpc0sbpJoTVM9ch2kVjm7DvcSbDMcMGqaKA92JNQ/f+i+xeJ3WvXqnvg4sR6xFPNvv 666ImybSy4rELXigT1PJA== X-UI-Out-Filterresults: notjunk:1;V01:K0:pZovvfUBJOs=:vhn7hxtX3+4pPw7aisAus9 zkdXbV7pU+7H/xEqNCQTmBsnKZvGmh/g3l64lp6dpnwoUgNkXtvGMdRfTw/aj1R0RfpH+pgjS CusvB9W9fdhISQerr9MFYVJIXgKva01PpKIXnYiOb0XFQn8YgXK8HOPuy+yoMPAM/umik8aEh vb9RpfE/5roOf8wcCBDSBWuS24IYFoabKYd+Zk4qhdLrDmgaZ326r0gEkZ4GK+epiDGEiYkmz HYgjxEB3vB0IzDsoA353VpniNVO1j7SuL7ScQaJs+DEerChRjp4XfBjZjp2ruCO+AOwnc7xW7 /TaB4zAxuyrvi1xe1RjKGc4BNRQ6l2hsJQEXukGM5cyOe6vkfsZLmDJOdMKGHP0fa8AawxnX5 XV5erEhlINcpqU/vvfQu4pLYXCxR26oHQeSlWRkAunvN0yHfVaMYFFt25M/6vSuiihv4jbqw9 Ki01Q1CEo+fCtDQwENAYzk5xi60nC6VODmFCBX6bOFl67PFDScE/0zauDkMzLyqjP47WuXicu 8L9b7yDYwKoWM0wtgxoMhi84CKd8medDaFT1v6eVUPsJKrok9VCA2+hDNIBC2yNowWuA0ut4f Sr5VVQ6N92d7oTpgwdec2rup2bNq+kJisRPSlHwk+GV14s0ovyDLqa5QWiBxK2fWe6uu0pA9f ARa7RNlZ/LxKEPlPx41AXUV96pFh6zi+2nynGcJqUkkOYW1JDzXnCaGPoxVnHUBMNgUg= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 27 gcc warns about the return type of this function: drivers/fsi/fsi-core.c:535:8: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] This removes the 'const' attribute, as suggested by the warning. Fixes: 2b37c3e285f9 ("drivers/fsi: Set slave SMODE to init communication") Signed-off-by: Arnd Bergmann --- drivers/fsi/fsi-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c index a485864cb512..f2e08932e2d9 100644 --- a/drivers/fsi/fsi-core.c +++ b/drivers/fsi/fsi-core.c @@ -532,7 +532,7 @@ static inline uint32_t fsi_smode_sid(int x) return (x & FSI_SMODE_SID_MASK) << FSI_SMODE_SID_SHIFT; } -static const uint32_t fsi_slave_smode(int id) +static uint32_t fsi_slave_smode(int id) { return FSI_SMODE_WSC | FSI_SMODE_ECRC | fsi_smode_sid(id) -- 2.9.0