From patchwork Mon Jul 4 23:43:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emese Revfy X-Patchwork-Id: 9213227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35BEF60752 for ; Mon, 4 Jul 2016 23:36:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FA9A287D0 for ; Mon, 4 Jul 2016 23:36:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10F3F287DE; Mon, 4 Jul 2016 23:36:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9089B287D0 for ; Mon, 4 Jul 2016 23:36:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753515AbcGDXgz (ORCPT ); Mon, 4 Jul 2016 19:36:55 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36702 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753366AbcGDXgz (ORCPT ); Mon, 4 Jul 2016 19:36:55 -0400 Received: by mail-wm0-f65.google.com with SMTP id c82so24776687wme.3; Mon, 04 Jul 2016 16:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4BsEsDK2Dliwko5W0YjiPpviR4/ddRbUdW8bc1sMOYQ=; b=qiUDQjAPzRmK9VZKwpYVuMNEiYR6yANS3NzMzBzIr7OoiMlPJc8S7kAv8g3/RjHkfZ F2EMHizgthISAFsX4j6pR/9sWnwPuAMgfNTET7bKI7ygvvXtWhGNqJ5cey0+uPNFFx23 muHdyVWZIrbSIQ4q1sa1mAWWbxEPFiBJy8pm0Bl9QUQV1BNw0V2/aHPEEs1yNrbSdFLy t3BpO0kEt/kroe6TeirMjkqeewAytisrBdoAmnJHV99MqBi6H3bSMalwuFBxkIl/dqnd f5sY1TB3d3dwgdjbfwQrZMJQtKRqDCOLmu6u12Itdn9ub67iQCWJMejH1kq00oi2Bgm/ Z1ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4BsEsDK2Dliwko5W0YjiPpviR4/ddRbUdW8bc1sMOYQ=; b=a08U0gsdbFfyJcn1e3OEkxMaVJqZaZsXn6KgtqrxXGObiX1p4cOjdcW/9c0jbr658p FSBiLuNi5T9cZCWP5GhbS8hG8hZFzRLBfG+9CwRI3Ldpd8grJ12m5UEq49ltn45wi+2V FeamyCcEH6mpaV53QW5ZL1x9iYNIWcn/4E2Mq4n3JPwcZq5xRvftG7a9c+olsIpw7DwK IA4EMEj/FI95Qgigxe1sHthU2AjpgMEE1DZTFzG7mfjl7xMFYPwrnFGFUvbYS15ijrOK RZiu5/heAYgGdQFQDJqz4njtRE3FhF7z/mV0CRaJ/aTHvT8hs+GjHdUKMd2EdMhs9PF3 gFVg== X-Gm-Message-State: ALyK8tL37DaL516DK6zlSzE/xcbg9DhfY8nzlOpQZlbm3ZfBab8uY9YRTE1xCg2zdzMA5g== X-Received: by 10.28.131.200 with SMTP id f191mr13163021wmd.80.1467675413465; Mon, 04 Jul 2016 16:36:53 -0700 (PDT) Received: from localhost (beleg.madhouse-project.org. [128.199.36.147]) by smtp.gmail.com with ESMTPSA id m5sm5626610wmm.10.2016.07.04.16.36.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 16:36:52 -0700 (PDT) Date: Tue, 5 Jul 2016 01:43:15 +0200 From: Emese Revfy To: kernel-hardening@lists.openwall.com Cc: pageexec@freemail.hu, spender@grsecurity.net, mmarek@suse.com, keescook@chromium.org, linux-kernel@vger.kernel.org, yamada.masahiro@socionext.com, linux-kbuild@vger.kernel.org, minipli@ld-linux.so, linux@armlinux.org.uk, catalin.marinas@arm.com, linux@rasmusvillemoes.dk, david.brown@linaro.org, benh@kernel.crashing.org, tglx@linutronix.de, akpm@linux-foundation.org, jlayton@poochiereds.net, arnd@arndb.de, sam@ravnborg.org, isdn@linux-pingi.de Subject: [PATCH v2 3/3] Constify some function parameters Message-Id: <20160705014315.c44b7c41fcb6900e10d9f4a2@gmail.com> In-Reply-To: <20160705013928.396ce4a7cbbc40e6c09efc43@gmail.com> References: <20160705013928.396ce4a7cbbc40e6c09efc43@gmail.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Initify needs const pointer types, the initify plugin caught some __printf arguments that weren't const yet. Signed-off-by: Emese Revfy --- drivers/isdn/hisax/config.c | 4 ++-- drivers/isdn/hisax/hisax.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index bf04d2a..a7d53c9 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c @@ -659,7 +659,7 @@ int jiftime(char *s, long mark) static u_char tmpbuf[HISAX_STATUS_BUFSIZE]; -void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, +void VHiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, va_list args) { /* if head == NULL the fmt contains the full info */ @@ -729,7 +729,7 @@ void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, } } -void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...) +void HiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, ...) { va_list args; diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h index 6ead6314..338d040 100644 --- a/drivers/isdn/hisax/hisax.h +++ b/drivers/isdn/hisax/hisax.h @@ -1288,9 +1288,9 @@ int jiftime(char *s, long mark); int HiSax_command(isdn_ctrl *ic); int HiSax_writebuf_skb(int id, int chan, int ack, struct sk_buff *skb); __printf(3, 4) -void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...); +void HiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, ...); __printf(3, 0) -void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, va_list args); +void VHiSax_putstatus(struct IsdnCardState *cs, char *head, const char *fmt, va_list args); void HiSax_reportcard(int cardnr, int sel); int QuickHex(char *txt, u_char *p, int cnt); void LogFrame(struct IsdnCardState *cs, u_char *p, int size);