OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns
Kees Cook 063246641d format-security: move static strings to const
While examining output from trial builds with -Wformat-security enabled,
many strings were found that should be defined as "const", or as a char
array instead of char pointer.  This makes some static analysis easier,
by producing fewer false positives.

As these are all trivial changes, it seemed best to put them all in a
single patch rather than chopping them up per maintainer.

Link: http://lkml.kernel.org/r/20170405214711.GA5711@beast
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Jes Sorensen <jes@trained-monkey.org>	[runner.c]
Cc: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Yisen Zhuang <yisen.zhuang@huawei.com>
Cc: Salil Mehta <salil.mehta@huawei.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Jarod Wilson <jarod@redhat.com>
Cc: Florian Westphal <fw@strlen.de>
Cc: Antonio Quartulli <a@unstable.cc>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Kejian Yan <yankejian@huawei.com>
Cc: Daode Huang <huangdaode@hisilicon.com>
Cc: Qianqian Xie <xieqianqian@huawei.com>
Cc: Philippe Reynes <tremyfr@gmail.com>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Christian Gromm <christian.gromm@microchip.com>
Cc: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Cc: Jason Litzinger <jlitzingerdev@gmail.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-05-08 17:15:14 -07:00
..
Makefile net: add Hisilicon Network Subsystem basic ethernet support 2015-09-20 21:42:58 -07:00
hnae.c net: hns: Avoid Hip06 chip TX packet line bug 2017-04-03 14:48:43 -07:00
hnae.h net: hns: Some checkpatch.pl script & warning fixes 2017-04-03 14:48:43 -07:00
hns_ae_adapt.c net: hns: Avoid Hip06 chip TX packet line bug 2017-04-03 14:48:43 -07:00
hns_dsaf_gmac.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_gmac.h
hns_dsaf_mac.c net: hns: support deferred probe when no mdio 2017-04-30 22:39:24 -04:00
hns_dsaf_mac.h format-security: move static strings to const 2017-05-08 17:15:14 -07:00
hns_dsaf_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-06 08:24:51 -07:00
hns_dsaf_main.h net: hns: Some checkpatch.pl script & warning fixes 2017-04-03 14:48:43 -07:00
hns_dsaf_misc.c net: hns: Add ACPI support to check SFP present 2017-04-01 12:10:58 -07:00
hns_dsaf_misc.h net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_ppe.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_ppe.h net: hns: separate debug dsaf device from service dsaf device 2016-04-26 01:09:17 -04:00
hns_dsaf_rcb.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_rcb.h net: hns: support deferred probe when can not obtain irq 2017-04-30 22:39:24 -04:00
hns_dsaf_reg.h net: hns: Avoid Hip06 chip TX packet line bug 2017-04-03 14:48:43 -07:00
hns_dsaf_xgmac.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_xgmac.h net: hns: fix to intimate the link-status change by adding LF/RF method 2016-11-10 11:45:37 -05:00
hns_enet.c net: hns: Some checkpatch.pl script & warning fixes 2017-04-03 14:48:43 -07:00
hns_enet.h net: hns: Optimize hns_nic_common_poll for better performance 2017-04-03 14:48:43 -07:00
hns_ethtool.c net: hns: Some checkpatch.pl script & warning fixes 2017-04-03 14:48:43 -07:00